public final class AnyType extends AbstractType
Modifier and Type | Field and Description |
---|---|
static String |
ID |
static AnyType |
INSTANCE |
constraints, EMPTY_SUPERTYPES, name, schema, superType
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.
|
protected Object |
readResolve() |
boolean |
validate(Object object)
Tests whether the given object is of this type.
|
addConstraints, decode, encode, getConstraints, getName, getObjectResolver, getSchema, getSchemaName, isAny, isComplexType, isCompositeType, isListType, isSimpleType, isSuperTypeOf, newInstance, validateConstraints
public static final String ID
public Type getSuperType()
Type
getSuperType
in interface Type
getSuperType
in class AbstractType
public Type[] getTypeHierarchy()
Type
The 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 Type
getTypeHierarchy
in class AbstractType
public boolean isAnyType()
Type
isAnyType
in interface Type
isAnyType
in class AbstractType
public boolean validate(Object object)
Type
validate
in interface Type
validate
in class AbstractType
object
- the object to testpublic Object convert(Object object)
Type
object
- the value to convertprotected Object readResolve()
Copyright © 2018 Nuxeo. All rights reserved.