public abstract class AbstractSimpleType extends AbstractBuiltinType implements XSSimpleType
Constructor and Description |
---|
AbstractSimpleType() |
Modifier and Type | Method and Description |
---|---|
XSAtomicType |
getAtomicType()
Returns the atomic type details.
|
XSComplexType |
getComplexType()
Returns the complex types information.
|
XSEnumeration[] |
getEnumerations()
Returns the values of the "enumeration" facets.
|
XSListType |
getListType()
Returns the list type details.
|
XSObject |
getParentObject()
Returns either of the following:
If the object is the schema itself, returns null.
|
java.lang.String[][] |
getPattern()
Returns the value of the "pattern" facet or null, if the pattern has not been set.
|
XSSimpleType |
getSimpleType()
Returns the simple types information.
|
XSUnionType |
getUnionType()
Returns the union type details.
|
XSObjectFactory |
getXSObjectFactory() |
boolean |
isAtomic()
Returns whether the simple type is atomic.
|
boolean |
isList()
Returns whether the simple type is a list.
|
boolean |
isSimple()
Returns whether the type is simple or not.
|
boolean |
isTopLevelObject()
Returns whether the object is a top-level object.
|
boolean |
isUnion()
Returns whether the simple type is a union.
|
getAnnotations, getLocator, getOpenAttributes, getSchemaHeader, getXSSchema, isGlobal, setGlobal, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRestrictedType, isRestriction
public boolean isSimple()
XSType
Returns whether the type is simple or not.
public boolean isAtomic()
XSSimpleType
Returns whether the simple type is atomic.
isAtomic
in interface XSSimpleType
public boolean isList()
XSSimpleType
Returns whether the simple type is a list.
isList
in interface XSSimpleType
public boolean isUnion()
XSSimpleType
Returns whether the simple type is a union.
isUnion
in interface XSSimpleType
public XSSimpleType getSimpleType()
XSType
Returns the simple types information.
getSimpleType
in interface XSType
public java.lang.String[][] getPattern()
XSSimpleType
Returns the value of the "pattern" facet or null, if the pattern has not been set.
The returned value is an array of pattern arrays. The latter arrays are the patterns defined in one restriction step. These have to be combined by "OR". The resulting, combined arrays are being grouped by an "AND". This is according to http://www.w3.org/TR/xmlschema-2/index.html#rf-pattern, 4.3.4.3.
getPattern
in interface XSSimpleType
public XSEnumeration[] getEnumerations()
XSSimpleType
Returns the values of the "enumeration" facets.
getEnumerations
in interface XSSimpleType
public XSObject getParentObject()
XSObject
Returns either of the following:
getParentObject
in interface XSObject
public boolean isTopLevelObject()
XSObject
Returns whether the object is a top-level object. This is the case for the XsESchema itself and for all its childs only.
isTopLevelObject
in interface XSObject
public XSComplexType getComplexType()
XSType
Returns the complex types information.
getComplexType
in interface XSType
public XSAtomicType getAtomicType()
XSSimpleType
Returns the atomic type details.
getAtomicType
in interface XSSimpleType
public XSListType getListType()
XSSimpleType
Returns the list type details.
getListType
in interface XSSimpleType
public XSUnionType getUnionType()
XSSimpleType
Returns the union type details.
getUnionType
in interface XSSimpleType
public XSObjectFactory getXSObjectFactory()