public final class DoubleType extends PrimitiveType
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static DoubleType |
INSTANCE |
constraints, EMPTY_SUPERTYPES, name, schema, superType| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object value)
Converts the given value to an object compatible with the associated type.
|
Object |
decode(String str)
Decodes the string representation into an object of this type.
|
String |
encode(Object object)
Encodes the given object that is assumed to be of this type into a string representation.
|
protected Object |
readResolve() |
boolean |
support(Class<? extends Constraint> constraint) |
boolean |
validate(Object object)
Tests whether the given object is of this type.
|
getConstraints, getObjectResolver, getPrimitiveType, getSuperType, getTypeHierarchy, isPrimitive, isSimpleTypeaddConstraints, getName, getSchema, getSchemaName, isAny, isAnyType, isComplexType, isCompositeType, isListType, isSuperTypeOf, newInstance, validateConstraintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getSchema, getSchemaName, isAnyType, isComplexType, isCompositeType, isListType, isSuperTypeOf, newInstancepublic static final String ID
public static final DoubleType INSTANCE
public boolean validate(Object object)
Typevalidate in interface Typevalidate in class PrimitiveTypeobject - the object to testpublic Object convert(Object value)
Typevalue - the value to convertpublic Object decode(String str)
TypeReturns null if the string can not be decoded.
decode in interface Typedecode in class AbstractTypestr - the string to decodepublic String encode(Object object)
TypeNull is returned if the object cannot be converted.
encode in interface Typeencode in class AbstractTypeobject - the object to convertprotected Object readResolve()
public boolean support(Class<? extends Constraint> constraint)
support in class PrimitiveTypeCopyright © 2018 Nuxeo. All rights reserved.