public final class LongType extends PrimitiveType
Modifier and Type | Field and Description |
---|---|
static String |
ID |
static LongType |
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, isSimpleType
addConstraints, getName, getSchema, getSchemaName, isAny, isAnyType, isComplexType, isCompositeType, isListType, isSuperTypeOf, newInstance, validateConstraints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getSchema, getSchemaName, isAnyType, isComplexType, isCompositeType, isListType, isSuperTypeOf, newInstance
public static final String ID
public boolean validate(Object object)
Type
validate
in interface Type
validate
in class PrimitiveType
object
- the object to testpublic Object convert(Object value)
Type
value
- the value to convertpublic Object decode(String str)
Type
Returns null if the string can not be decoded.
decode
in interface Type
decode
in class AbstractType
str
- the string to decodepublic String encode(Object object)
Type
Null is returned if the object cannot be converted.
encode
in interface Type
encode
in class AbstractType
object
- the object to convertprotected Object readResolve()
public boolean support(Class<? extends Constraint> constraint)
support
in class PrimitiveType
Copyright © 2015 Nuxeo SA. All rights reserved.