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, setId
getOpenAttributes, setAttribute
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAnnotation, getAnnotation, getId, setId
getOpenAttributes
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate
protected XsERestrictionImpl(XsObject pParent)
public void setBase(XsQName pBase)
setBase
in interface XsERestriction
public void setBase(java.lang.String pBase) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public XsQName getBase()
getBase
in interface XsERestriction
public XsTLocalSimpleType createSimpleType() throws org.xml.sax.SAXException
createSimpleType
in interface XsERestriction
createSimpleType
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsTLocalSimpleType getSimpleType()
getSimpleType
in interface XsERestriction
getSimpleType
in interface XsGSimpleRestrictionModel
public XsEMinExclusive createMinExclusive() throws org.xml.sax.SAXException
createMinExclusive
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsEMinExclusive getMinExclusive()
getMinExclusive
in interface XsGSimpleRestrictionModel
public XsEMinInclusive createMinInclusive() throws org.xml.sax.SAXException
createMinInclusive
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsEMinInclusive getMinInclusive()
getMinInclusive
in interface XsGSimpleRestrictionModel
public XsEMaxExclusive createMaxExclusive() throws org.xml.sax.SAXException
createMaxExclusive
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsEMaxExclusive getMaxExclusive()
getMaxExclusive
in interface XsGSimpleRestrictionModel
public XsEMaxInclusive createMaxInclusive() throws org.xml.sax.SAXException
createMaxInclusive
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsEMaxInclusive getMaxInclusive()
getMaxInclusive
in interface XsGSimpleRestrictionModel
public XsETotalDigits createTotalDigits() throws org.xml.sax.SAXException
createTotalDigits
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsETotalDigits getTotalDigits()
getTotalDigits
in interface XsGSimpleRestrictionModel
public XsEFractionDigits createFractionDigits() throws org.xml.sax.SAXException
createFractionDigits
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsEFractionDigits getFractionDigits()
getFractionDigits
in interface XsGSimpleRestrictionModel
public XsELength createLength() throws org.xml.sax.SAXException
createLength
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsELength getLength()
getLength
in interface XsGSimpleRestrictionModel
public XsEMinLength createMinLength() throws org.xml.sax.SAXException
createMinLength
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsEMinLength getMinLength()
getMinLength
in interface XsGSimpleRestrictionModel
public XsEMaxLength createMaxLength() throws org.xml.sax.SAXException
createMaxLength
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsEMaxLength getMaxLength()
getMaxLength
in interface XsGSimpleRestrictionModel
public XsEWhiteSpace createWhiteSpace() throws org.xml.sax.SAXException
createWhiteSpace
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsEWhiteSpace getWhiteSpace()
getWhiteSpace
in interface XsGSimpleRestrictionModel
public XsEPattern createPattern() throws org.xml.sax.SAXException
createPattern
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsEPattern[] getPatterns()
getPatterns
in interface XsGSimpleRestrictionModel
public XsEEnumeration createEnumeration() throws org.xml.sax.SAXException
createEnumeration
in interface XsGSimpleRestrictionModel
org.xml.sax.SAXException
public XsEEnumeration[] getEnumerations()
getEnumerations
in interface XsGSimpleRestrictionModel
public boolean hasFacets()
XsGSimpleRestrictionModel
Returns whether any facet has been defined.
hasFacets
in interface XsGSimpleRestrictionModel
public XsTFacetBase[] getFacets()
XsGSimpleRestrictionModel
Returns an array of all facets.
getFacets
in interface XsGSimpleRestrictionModel