public class JsonFormatType extends Object implements IJsonType
"format" type such as "date-time.
Implement the IJsonFormatTypeCoercer service provider to map your own formats with Java types.
| Modifier and Type | Method and Description |
|---|---|
IJsonType |
copyWithAttributes(TypeAttributes attributes) |
String |
getFormat() |
String |
getIdentifier()
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.
|
String |
getName() |
IJsonParentType |
getParent()
Format types never have a parent.
|
static JsonFormatType |
getPrototype(String format,
Class<?> javaType) |
TypeAttributes |
getTypeAttributes() |
JsonFormatType |
merge(IJsonType type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsStructurally, getDefinitions, setDefinitionspublic static JsonFormatType getPrototype(String format, Class<?> javaType)
public Class<?> getJavaType()
public String getFormat()
public IJsonParentType getParent()
public TypeAttributes getTypeAttributes()
getTypeAttributes in interface IJsonTypepublic IJsonType copyWithAttributes(TypeAttributes attributes)
copyWithAttributes in interface IJsonTypepublic JsonFormatType merge(IJsonType type)
public String getIdentifier()
getIdentifier in interface IJsonTypeCopyright © 2020. All rights reserved.