public class JsonFormatType extends java.lang.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) |
java.lang.String |
getFormat() |
java.lang.String |
getIdentifier()
The identifier must be the name of the class used in the generated JSON API.
|
java.lang.Class<?> |
getJavaType()
The type that is generated as part of the JSON Java API.
|
java.lang.String |
getName() |
IJsonParentType |
getParent()
Format types never have a parent.
|
static JsonFormatType |
getPrototype(java.lang.String format,
java.lang.Class<?> javaType) |
TypeAttributes |
getTypeAttributes() |
JsonFormatType |
merge(IJsonType type) |
clone, emptyArray, equals, finalize, getClass, hashCode, jailbreak, notify, notifyAll, toString, wait, wait, waitequalsStructurally, getDefinitions, setDefinitionspublic static JsonFormatType getPrototype(java.lang.String format, java.lang.Class<?> javaType)
public java.lang.Class<?> getJavaType()
public java.lang.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 java.lang.String getIdentifier()
getIdentifier in interface IJsonTypeCopyright © 2024. All rights reserved.