public final class IntegerType extends PrimitiveType
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static IntegerType |
INSTANCE |
EMPTY_SUPERTYPES| 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.
|
boolean |
validate(Object object)
Tests whether the given object is of this type.
|
getPrimitiveType, getSuperType, getTypeHierarchy, isPrimitive, isSimpleTypegetName, getSchema, getSchemaName, isAny, isAnyType, isComplexType, isCompositeType, isListType, isSuperTypeOf, newInstanceequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getSchema, getSchemaName, isAnyType, isComplexType, isCompositeType, isListType, isSuperTypeOf, newInstancepublic static final String ID
public static final IntegerType 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 convertCopyright © 2014 Nuxeo SA. All Rights Reserved.