public abstract class AbstractDoubleElementType extends AbstractElementType<Double>
Constructor and Description |
---|
AbstractDoubleElementType() |
Modifier and Type | Method and Description |
---|---|
Double |
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 |
isCompatible(Object value)
Checks if the value is compatible with the element type
|
boolean |
isSimple()
Determines if this type is simple or not.
|
_singleValueToJSON, _singleValueToSAX, getManagedClass, getManagedClassArray, parseConfiguration, toString, valueToJSONForClient, valueToSAX
getId, setPluginInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
setPluginInfo
public AbstractDoubleElementType()
public Double castValue(String value) throws BadItemTypeException
ElementType
value
- the value to castBadItemTypeException
- if the String value can't be cast to the typepublic Object fromJSONForClient(Object json)
ElementType
json
- the JSON object to convertpublic boolean isSimple()
ElementType
true
if the type is simple, false
otherwisepublic boolean isCompatible(Object value)
ElementType
isCompatible
in interface ElementType<Double>
isCompatible
in class AbstractElementType<Double>
value
- the value to checktrue
if the value matches the current type, false
otherwise