org.apache.ws.jaxme.xs.xml.impl
Class XsERestrictionImpl
java.lang.Object
   org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
       org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl
org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl
           org.apache.ws.jaxme.xs.xml.impl.XsTAnnotatedImpl
org.apache.ws.jaxme.xs.xml.impl.XsTAnnotatedImpl
               org.apache.ws.jaxme.xs.xml.impl.XsERestrictionImpl
org.apache.ws.jaxme.xs.xml.impl.XsERestrictionImpl
- All Implemented Interfaces: 
- XsERestriction, XsGSimpleRestrictionModel, XsObject, XsTAnnotated, XsTOpenAttrs
- 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>
 
- Author:
- Jochen Wiedmann
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
 
 
XsERestrictionImpl
protected XsERestrictionImpl(XsObject pParent)
setBase
public void setBase(XsQName pBase)
- 
- Specified by:
- setBasein interface- XsERestriction
 
- 
 
setBase
public void setBase(java.lang.String pBase)
             throws org.xml.sax.SAXException
- 
 
- 
- Throws:
- org.xml.sax.SAXException
 
getBase
public XsQName getBase()
- 
- Specified by:
- getBasein interface- XsERestriction
 
- 
 
createSimpleType
public XsTLocalSimpleType createSimpleType()
                                    throws org.xml.sax.SAXException
- 
- Specified by:
- createSimpleTypein interface- XsERestriction
 
- 
- Throws:
- org.xml.sax.SAXException
 
getSimpleType
public XsTLocalSimpleType getSimpleType()
- 
- Specified by:
- getSimpleTypein interface- XsERestriction
 
- 
 
createMinExclusive
public XsEMinExclusive createMinExclusive()
                                   throws org.xml.sax.SAXException
- 
- Specified by:
- createMinExclusivein interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getMinExclusive
public XsEMinExclusive getMinExclusive()
- 
- Specified by:
- getMinExclusivein interface- XsGSimpleRestrictionModel
 
- 
 
createMinInclusive
public XsEMinInclusive createMinInclusive()
                                   throws org.xml.sax.SAXException
- 
- Specified by:
- createMinInclusivein interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getMinInclusive
public XsEMinInclusive getMinInclusive()
- 
- Specified by:
- getMinInclusivein interface- XsGSimpleRestrictionModel
 
- 
 
createMaxExclusive
public XsEMaxExclusive createMaxExclusive()
                                   throws org.xml.sax.SAXException
- 
- Specified by:
- createMaxExclusivein interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getMaxExclusive
public XsEMaxExclusive getMaxExclusive()
- 
- Specified by:
- getMaxExclusivein interface- XsGSimpleRestrictionModel
 
- 
 
createMaxInclusive
public XsEMaxInclusive createMaxInclusive()
                                   throws org.xml.sax.SAXException
- 
- Specified by:
- createMaxInclusivein interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getMaxInclusive
public XsEMaxInclusive getMaxInclusive()
- 
- Specified by:
- getMaxInclusivein interface- XsGSimpleRestrictionModel
 
- 
 
createTotalDigits
public XsETotalDigits createTotalDigits()
                                 throws org.xml.sax.SAXException
- 
- Specified by:
- createTotalDigitsin interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getTotalDigits
public XsETotalDigits getTotalDigits()
- 
- Specified by:
- getTotalDigitsin interface- XsGSimpleRestrictionModel
 
- 
 
createFractionDigits
public XsEFractionDigits createFractionDigits()
                                       throws org.xml.sax.SAXException
- 
- Specified by:
- createFractionDigitsin interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getFractionDigits
public XsEFractionDigits getFractionDigits()
- 
- Specified by:
- getFractionDigitsin interface- XsGSimpleRestrictionModel
 
- 
 
createLength
public XsELength createLength()
                       throws org.xml.sax.SAXException
- 
- Specified by:
- createLengthin interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getLength
public XsELength getLength()
- 
- Specified by:
- getLengthin interface- XsGSimpleRestrictionModel
 
- 
 
createMinLength
public XsEMinLength createMinLength()
                             throws org.xml.sax.SAXException
- 
- Specified by:
- createMinLengthin interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getMinLength
public XsEMinLength getMinLength()
- 
- Specified by:
- getMinLengthin interface- XsGSimpleRestrictionModel
 
- 
 
createMaxLength
public XsEMaxLength createMaxLength()
                             throws org.xml.sax.SAXException
- 
- Specified by:
- createMaxLengthin interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getMaxLength
public XsEMaxLength getMaxLength()
- 
- Specified by:
- getMaxLengthin interface- XsGSimpleRestrictionModel
 
- 
 
createWhiteSpace
public XsEWhiteSpace createWhiteSpace()
                               throws org.xml.sax.SAXException
- 
- Specified by:
- createWhiteSpacein interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getWhiteSpace
public XsEWhiteSpace getWhiteSpace()
- 
- Specified by:
- getWhiteSpacein interface- XsGSimpleRestrictionModel
 
- 
 
createPattern
public XsEPattern createPattern()
                         throws org.xml.sax.SAXException
- 
- Specified by:
- createPatternin interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getPatterns
public XsEPattern[] getPatterns()
- 
- Specified by:
- getPatternsin interface- XsGSimpleRestrictionModel
 
- 
 
createEnumeration
public XsEEnumeration createEnumeration()
                                 throws org.xml.sax.SAXException
- 
- Specified by:
- createEnumerationin interface- XsGSimpleRestrictionModel
 
- 
- Throws:
- org.xml.sax.SAXException
 
getEnumerations
public XsEEnumeration[] getEnumerations()
- 
- Specified by:
- getEnumerationsin interface- XsGSimpleRestrictionModel
 
- 
 
hasFacets
public boolean hasFacets()
- Description copied from interface: XsGSimpleRestrictionModel
- Returns whether any facet has been defined. - 
 
- 
- Specified by:
- hasFacetsin interface- XsGSimpleRestrictionModel
 
- 
 
getFacets
public XsTFacetBase[] getFacets()
- Description copied from interface: XsGSimpleRestrictionModel
- Returns an array of all facets. - 
 
- 
- Specified by:
- getFacetsin interface- XsGSimpleRestrictionModel
 
-