public abstract class XSSimpleTypeRestrictionImpl extends XSSimpleTypeImpl
| Modifier | Constructor and Description |
|---|---|
protected |
XSSimpleTypeRestrictionImpl(XSType pParent,
XSType pRestrictedType,
XsGSimpleRestrictionModel pRestriction) |
| Modifier and Type | Method and Description |
|---|---|
protected XSSimpleType |
getBaseType() |
XSEnumeration[] |
getEnumerations()
Returns the values of the "enumeration" facets.
|
java.lang.String[][] |
getPattern()
Returns the value of the "pattern" facet or null, if the pattern has not been set.
|
XSType |
getRestrictedType()
If the simple type is a restriction, returns the restricted
simple type.
|
protected XsGSimpleRestrictionModel |
getRestriction() |
boolean |
isRestriction()
Returns whether the type is a restriction of another
simple type.
|
getAtomicType, getListType, getUnionType, isAtomic, isList, isUnionprotected XSSimpleTypeRestrictionImpl(XSType pParent, XSType pRestrictedType, XsGSimpleRestrictionModel pRestriction) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected XSSimpleType getBaseType()
public boolean isRestriction()
XSSimpleTypeReturns whether the type is a restriction of another
simple type. (Almost all simple types are, the exception being
the ur type XSAnySimpleType.
public XSType getRestrictedType()
XSSimpleTypeIf the simple type is a restriction, returns the restricted simple type.
protected XsGSimpleRestrictionModel getRestriction()
public java.lang.String[][] getPattern()
XSSimpleTypeReturns 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.
public XSEnumeration[] getEnumerations()
XSSimpleTypeReturns the values of the "enumeration" facets.