public abstract class PrimitiveType extends AbstractType implements SimpleType
constraints, EMPTY_SUPERTYPES, name, schema, superType| Modifier | Constructor and Description |
|---|---|
protected |
PrimitiveType(String name) |
| Modifier and Type | Method and Description |
|---|---|
Set<Constraint> |
getConstraints() |
ObjectResolver |
getObjectResolver()
Provides a
ObjectResolver if this type is a reference to an external entity. |
PrimitiveType |
getPrimitiveType() |
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 |
support(Class<? extends Constraint> constraint) |
abstract boolean |
validate(Object object)
Tests whether the given object is of this type.
|
addConstraints, decode, encode, getName, getSchema, getSchemaName, isAny, isAnyType, isComplexType, isCompositeType, isListType, isSuperTypeOf, newInstance, validateConstraintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvert, decode, encode, getName, getSchema, getSchemaName, isAnyType, isComplexType, isCompositeType, isListType, isSuperTypeOf, newInstanceprotected PrimitiveType(String name)
public abstract boolean validate(Object object)
Typevalidate in interface Typevalidate in class AbstractTypeobject - the object to testpublic ObjectResolver getObjectResolver()
TypeObjectResolver if this type is a reference to an external entity.getObjectResolver in interface TypegetObjectResolver in class AbstractTypepublic 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 PrimitiveType getPrimitiveType()
getPrimitiveType in interface SimpleTypepublic abstract boolean support(Class<? extends Constraint> constraint)
public Set<Constraint> getConstraints()
getConstraints in interface TypegetConstraints in class AbstractTypeCopyright © 2016 Nuxeo SA. All rights reserved.