Class TypeMapper
- java.lang.Object
-
- org.gcube.informationsystem.types.TypeMapper
-
public class TypeMapper extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.gcube.com.fasterxml.jackson.databind.ObjectMappermapper
-
Constructor Summary
Constructors Constructor Description TypeMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E extends Element>
TypecreateTypeDefinition(Class<E> clz)static TypedeserializeTypeDefinition(String json)static List<Type>deserializeTypeDefinitions(String json)static <E extends Element,EImpl extends E>
Class<EImpl>getDynamicImplementation(Class<E> clz)static <E extends Element>
StringgetType(E e)static StringgetType(Class<? extends Element> clz)static Map<Version,String>getTypeChangelog(Class<? extends Element> clz)static StringgetTypeDescription(Class<? extends Element> clz)static VersiongetTypeVersion(Class<? extends Element> clz)static <E extends Element>
StringserializeType(Class<E> clz)static StringserializeTypeDefinition(Type type)static StringserializeTypeDefinitions(List<Type> typeDefinitions)
-
-
-
Method Detail
-
serializeTypeDefinition
public static String serializeTypeDefinition(Type type) throws Exception
- Throws:
Exception
-
deserializeTypeDefinition
public static Type deserializeTypeDefinition(String json) throws Exception
- Throws:
Exception
-
serializeTypeDefinitions
public static String serializeTypeDefinitions(List<Type> typeDefinitions) throws Exception
- Throws:
Exception
-
deserializeTypeDefinitions
public static List<Type> deserializeTypeDefinitions(String json) throws Exception
- Throws:
Exception
-
serializeType
public static <E extends Element> String serializeType(Class<E> clz) throws Exception
- Throws:
Exception
-
getDynamicImplementation
public static <E extends Element,EImpl extends E> Class<EImpl> getDynamicImplementation(Class<E> clz)
-
-