public class TypeMapper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.gcube.com.fasterxml.jackson.databind.ObjectMapper |
mapper |
| Constructor and Description |
|---|
TypeMapper() |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Element> |
createTypeDefinition(Class<E> clz) |
static Type |
deserializeTypeDefinition(String json) |
static List<Type> |
deserializeTypeDefinitions(String json) |
static String |
getStaticStringFieldByName(Class<? extends Element> clz,
String fieldName,
String defaultValue) |
static String |
getType(Class<? extends Element> clz) |
static <E extends Element> |
serializeType(Class<E> clz) |
static String |
serializeTypeDefinition(Type type) |
static String |
serializeTypeDefinitions(List<Type> typeDefinitions) |
protected static final org.gcube.com.fasterxml.jackson.databind.ObjectMapper mapper
public static String serializeTypeDefinition(Type type) throws Exception
Exceptionpublic static Type deserializeTypeDefinition(String json) throws Exception
Exceptionpublic static String serializeTypeDefinitions(List<Type> typeDefinitions) throws Exception
Exceptionpublic static List<Type> deserializeTypeDefinitions(String json) throws Exception
Exceptionpublic static <E extends Element> String serializeType(Class<E> clz) throws Exception
ExceptionCopyright © 2020. All Rights Reserved.