public abstract class PrimitiveType extends AbstractType implements SimpleType
EMPTY_SUPERTYPES, F_NOTNULL, F_READONLY| Modifier and Type | Method and Description |
|---|---|
SimpleType |
getPrimitiveType() |
TypeRef<PrimitiveType> |
getRef()
Gets a proxy (or reference to this type).
|
Type |
getSuperType()
Gets the super type.
|
Type[] |
getTypeHierarchy()
Gets the entire hierarchy of super-types.
|
boolean |
isPrimitive()
Tests whether this type is a primitive type.
|
boolean |
isSimpleType()
Tests whether this type is a simple type.
|
abstract boolean |
validate(Object object)
Tests whether the given object is of this type.
|
decode, encode, getHelper, getName, getSchema, getSchemaName, isAny, isAnyType, isComplexType, isCompositeType, isListType, isNotNull, isReadOnly, isSuperTypeOf, newInstance, setNotNull, setReadOnlyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecode, encode, getHelper, getName, getSchema, getSchemaName, isAnyType, isComplexType, isCompositeType, isListType, isNotNull, isReadOnly, isSuperTypeOf, newInstanceconvertpublic abstract boolean validate(Object object)
Typevalidate in interface Typevalidate in class AbstractTypeobject - the object to testpublic 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 isPrimitive()
SimpleTypeisPrimitive in interface SimpleTypepublic boolean isSimpleType()
TypeisSimpleType in interface TypeisSimpleType in class AbstractTypepublic SimpleType getPrimitiveType()
getPrimitiveType in interface SimpleTypepublic TypeRef<PrimitiveType> getRef()
TypegetRef in interface SimpleTypegetRef in interface TypegetRef in class AbstractTypeCopyright © 2011 Nuxeo SA. All Rights Reserved.