public abstract class AbstractDateTimeElementType extends AbstractElementType<ZonedDateTime>
Constructor and Description |
---|
AbstractDateTimeElementType() |
Modifier and Type | Method and Description |
---|---|
protected Object |
_singleValueToJSON(ZonedDateTime value)
Convert the single value into a JSON object
|
ZonedDateTime |
castValue(String value)
Cast an untyped value (string) to an object of the corresponding type
|
Object |
fromJSONForClient(Object json)
Convert the given client side JSON object to the types value
|
boolean |
isSimple()
Determines if this type is simple or not.
|
String |
toString(ZonedDateTime value)
Cast a typed value to a String
|
_singleValueToSAX, getManagedClass, getManagedClassArray, isCompatible, parseConfiguration, valueToJSONForClient, valueToSAX
getId, setPluginInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
setPluginInfo
public AbstractDateTimeElementType()
public ZonedDateTime castValue(String value) throws BadItemTypeException
ElementType
value
- the value to castBadItemTypeException
- if the String value can't be cast to the typepublic String toString(ZonedDateTime value)
ElementType
toString
in interface ElementType<ZonedDateTime>
toString
in class AbstractElementType<ZonedDateTime>
value
- the value to castprotected Object _singleValueToJSON(ZonedDateTime value)
AbstractElementType
_singleValueToJSON
in class AbstractElementType<ZonedDateTime>
value
- the value to convertpublic Object fromJSONForClient(Object json)
ElementType
json
- the JSON object to convertpublic boolean isSimple()
ElementType
true
if the type is simple, false
otherwise