public final class AnyType extends AbstractType
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static AnyType |
INSTANCE |
EMPTY_SUPERTYPES, F_NOTNULL, F_READONLY| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object object)
Converts the given value to an object compatible with the associated type.
|
Type |
getSuperType()
Gets the super type.
|
Type[] |
getTypeHierarchy()
Gets the entire hierarchy of super-types.
|
boolean |
isAnyType()
Tests whether this type is the ANY type.
|
boolean |
validate(Object object)
Tests whether the given object is of this type.
|
decode, encode, getHelper, getName, getRef, getSchema, getSchemaName, isAny, isComplexType, isCompositeType, isListType, isNotNull, isReadOnly, isSimpleType, isSuperTypeOf, newInstance, setNotNull, setReadOnlypublic static final String ID
public static final AnyType INSTANCE
public Type getSuperType()
TypegetSuperType in interface TypegetSuperType in class AbstractTypepublic Type[] getTypeHierarchy()
TypeThe array is ordered as follows:
The returned array is never null. An empty array is returned in the case
of ANY type.
getTypeHierarchy in interface TypegetTypeHierarchy in class AbstractTypepublic boolean isAnyType()
TypeisAnyType in interface TypeisAnyType in class AbstractTypepublic boolean validate(Object object)
Typevalidate in interface Typevalidate in class AbstractTypeobject - the object to testpublic Object convert(Object object)
ValueConverterobject - the value to convertCopyright © 2011 Nuxeo SA. All Rights Reserved.