Package manifold.api.json.codegen.schema
Class JsonFormatType
- java.lang.Object
-
- manifold.api.json.codegen.schema.JsonFormatType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IJsonTypecopyWithAttributes(TypeAttributes attributes)StringgetFormat()StringgetIdentifier()The identifier must be the name of the class used in the generated JSON API.Class<?>getJavaType()The type that is generated as part of the JSON Java API.StringgetName()IJsonParentTypegetParent()Format types never have a parent.static JsonFormatTypegetPrototype(String format, Class<?> javaType)TypeAttributesgetTypeAttributes()JsonFormatTypemerge(IJsonType type)-
Methods inherited from class java.lang.Object
clone, emptyArray, equals, finalize, getClass, hashCode, jailbreak, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface manifold.api.json.codegen.IJsonType
equalsStructurally, getDefinitions, setDefinitions
-
-
-
-
Method Detail
-
getPrototype
public static JsonFormatType getPrototype(String format, Class<?> javaType)
-
getJavaType
public Class<?> getJavaType()
The type that is generated as part of the JSON Java API.
-
getFormat
public String getFormat()
-
getParent
public IJsonParentType getParent()
Format types never have a parent.
-
getTypeAttributes
public TypeAttributes getTypeAttributes()
- Specified by:
getTypeAttributesin interfaceIJsonType
-
copyWithAttributes
public IJsonType copyWithAttributes(TypeAttributes attributes)
- Specified by:
copyWithAttributesin interfaceIJsonType
-
merge
public JsonFormatType merge(IJsonType type)
-
getIdentifier
public String getIdentifier()
The identifier must be the name of the class used in the generated JSON API.- Specified by:
getIdentifierin interfaceIJsonType
-
-