public class XsERestrictionImpl extends XsTAnnotatedImpl implements XsERestriction
Implementation of xs:restriction, following
this specification:
<xs:element name="restriction" id="restriction">
<xs:complexType>
<xs:annotation>
<xs:documentation
source="http://www.w3.org/TR/xmlschema-2/#element-restriction">
base attribute and simpleType child are mutually
exclusive, but one or other is required
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="xs:annotated">
<xs:group ref="xs:simpleRestrictionModel"/>
<xs:attribute name="base" type="xs:QName" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:group name="simpleRestrictionModel">
<xs:sequence>
<xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0"/>
<xs:group ref="xs:facets" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:group>
<xs:group name="facets">
<xs:annotation>
<xs:documentation>
We should use a substitution group for facets, but
that's ruled out because it would allow users to
add their own, which we're not ready for yet.
</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element ref="xs:minExclusive"/>
<xs:element ref="xs:minInclusive"/>
<xs:element ref="xs:maxExclusive"/>
<xs:element ref="xs:maxInclusive"/>
<xs:element ref="xs:totalDigits"/>
<xs:element ref="xs:fractionDigits"/>
<xs:element ref="xs:length"/>
<xs:element ref="xs:minLength"/>
<xs:element ref="xs:maxLength"/>
<xs:element ref="xs:enumeration"/>
<xs:element ref="xs:whiteSpace"/>
<xs:element ref="xs:pattern"/>
</xs:choice>
</xs:group>
| Modifier | Constructor and Description |
|---|---|
protected |
XsERestrictionImpl(XsObject pParent) |
createAnnotation, getAnnotation, getId, setIdgetOpenAttributes, setAttributeasXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAnnotation, getAnnotation, getId, setIdgetOpenAttributesgetLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validateprotected XsERestrictionImpl(XsObject pParent)
public void setBase(XsQName pBase)
setBase in interface XsERestrictionpublic void setBase(java.lang.String pBase)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic XsQName getBase()
getBase in interface XsERestrictionpublic XsTLocalSimpleType createSimpleType() throws org.xml.sax.SAXException
createSimpleType in interface XsERestrictioncreateSimpleType in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsTLocalSimpleType getSimpleType()
getSimpleType in interface XsERestrictiongetSimpleType in interface XsGSimpleRestrictionModelpublic XsEMinExclusive createMinExclusive() throws org.xml.sax.SAXException
createMinExclusive in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsEMinExclusive getMinExclusive()
getMinExclusive in interface XsGSimpleRestrictionModelpublic XsEMinInclusive createMinInclusive() throws org.xml.sax.SAXException
createMinInclusive in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsEMinInclusive getMinInclusive()
getMinInclusive in interface XsGSimpleRestrictionModelpublic XsEMaxExclusive createMaxExclusive() throws org.xml.sax.SAXException
createMaxExclusive in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsEMaxExclusive getMaxExclusive()
getMaxExclusive in interface XsGSimpleRestrictionModelpublic XsEMaxInclusive createMaxInclusive() throws org.xml.sax.SAXException
createMaxInclusive in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsEMaxInclusive getMaxInclusive()
getMaxInclusive in interface XsGSimpleRestrictionModelpublic XsETotalDigits createTotalDigits() throws org.xml.sax.SAXException
createTotalDigits in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsETotalDigits getTotalDigits()
getTotalDigits in interface XsGSimpleRestrictionModelpublic XsEFractionDigits createFractionDigits() throws org.xml.sax.SAXException
createFractionDigits in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsEFractionDigits getFractionDigits()
getFractionDigits in interface XsGSimpleRestrictionModelpublic XsELength createLength() throws org.xml.sax.SAXException
createLength in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsELength getLength()
getLength in interface XsGSimpleRestrictionModelpublic XsEMinLength createMinLength() throws org.xml.sax.SAXException
createMinLength in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsEMinLength getMinLength()
getMinLength in interface XsGSimpleRestrictionModelpublic XsEMaxLength createMaxLength() throws org.xml.sax.SAXException
createMaxLength in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsEMaxLength getMaxLength()
getMaxLength in interface XsGSimpleRestrictionModelpublic XsEWhiteSpace createWhiteSpace() throws org.xml.sax.SAXException
createWhiteSpace in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsEWhiteSpace getWhiteSpace()
getWhiteSpace in interface XsGSimpleRestrictionModelpublic XsEPattern createPattern() throws org.xml.sax.SAXException
createPattern in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsEPattern[] getPatterns()
getPatterns in interface XsGSimpleRestrictionModelpublic XsEEnumeration createEnumeration() throws org.xml.sax.SAXException
createEnumeration in interface XsGSimpleRestrictionModelorg.xml.sax.SAXExceptionpublic XsEEnumeration[] getEnumerations()
getEnumerations in interface XsGSimpleRestrictionModelpublic boolean hasFacets()
XsGSimpleRestrictionModelReturns whether any facet has been defined.
hasFacets in interface XsGSimpleRestrictionModelpublic XsTFacetBase[] getFacets()
XsGSimpleRestrictionModelReturns an array of all facets.
getFacets in interface XsGSimpleRestrictionModel