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, emptyArray, equals, finalize, getClass, hashCode, jailbreak, notify, notifyAll, toString, wait, wait, wait
equalsStructurally, getDefinitions, setDefinitions
public static JsonFormatType getPrototype(String format, Class<?> javaType)
public Class<?> getJavaType()
public String getFormat()
public IJsonParentType getParent()
public TypeAttributes getTypeAttributes()
getTypeAttributes
in interface IJsonType
public IJsonType copyWithAttributes(TypeAttributes attributes)
copyWithAttributes
in interface IJsonType
public JsonFormatType merge(IJsonType type)
public String getIdentifier()
getIdentifier
in interface IJsonType
Copyright © 2024. All rights reserved.