public class JsonSchemaGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GENERIC_BEGIN |
static String |
GENERIC_END |
static String |
MAP_FULL_QUALIFIED_CLASSNAME |
| Modifier and Type | Method and Description |
|---|---|
static List<de.fraunhofer.iese.ind2uce.api.component.description.TypeDescription> |
createTypeDescription(Type type,
Class typeClass)
Generates a list of
TypeDescription for a given class. |
static de.fraunhofer.iese.ind2uce.api.component.description.JsonType |
getJsonType(Class type)
Returns a jsonType for a given class.
|
public static final String MAP_FULL_QUALIFIED_CLASSNAME
public static final String GENERIC_BEGIN
public static final String GENERIC_END
public static List<de.fraunhofer.iese.ind2uce.api.component.description.TypeDescription> createTypeDescription(Type type, Class typeClass) throws ClassNotFoundException
TypeDescription for a given class.
JavaReflectionUtils.isInd2ucePrimitive(Class) this Method returns a
singleton list with a TypeDescription containing the name of the
primitive like java.lang.Long and JsonType.PRIMITIVETypeDescription containing the name of the generic content of the
list (e.g. for List<String> name will be java.lang.String) and
JsonType.ARRAY. If the generic Type of the list is a non primitive type,
this method also adds the description for this type (recursively).TypeDescription
containing the name Map < SOME_TYPE > and JsonType.OBJECT. If the
generic Type (SOME_TYPE) of the map is a non primitive type, this method
also adds the description for this type (recursively).type - TypetypeClass - ClassClassNotFoundException - class not foundpublic static de.fraunhofer.iese.ind2uce.api.component.description.JsonType getJsonType(Class type)
type - ClassCopyright © 2018. All rights reserved.