org.apache.ws.jaxme.xs.xml
Interface XsGSimpleRestrictionModel

All Known Subinterfaces:
XsERestriction, XsTComplexRestrictionType, XsTRestrictionType, XsTSimpleRestrictionType
All Known Implementing Classes:
XsERestrictionImpl, XsGSimpleRestrictionModelImpl, XsTComplexRestrictionTypeImpl, XsTRestrictionTypeImpl, XsTSimpleRestrictionTypeImpl

public interface XsGSimpleRestrictionModel

Interface of xs:simpleRestrictionModel, following this specification:

  <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

Method Summary
 XsEEnumeration createEnumeration()
           
 XsEFractionDigits createFractionDigits()
           
 XsELength createLength()
           
 XsEMaxExclusive createMaxExclusive()
           
 XsEMaxInclusive createMaxInclusive()
           
 XsEMaxLength createMaxLength()
           
 XsEMinExclusive createMinExclusive()
           
 XsEMinInclusive createMinInclusive()
           
 XsEMinLength createMinLength()
           
 XsEPattern createPattern()
           
 XsTLocalSimpleType createSimpleType()
           
 XsETotalDigits createTotalDigits()
           
 XsEWhiteSpace createWhiteSpace()
           
 XsEEnumeration[] getEnumerations()
           
 XsTFacetBase[] getFacets()
          Returns an array of all facets.
 XsEFractionDigits getFractionDigits()
           
 XsELength getLength()
           
 XsEMaxExclusive getMaxExclusive()
           
 XsEMaxInclusive getMaxInclusive()
           
 XsEMaxLength getMaxLength()
           
 XsEMinExclusive getMinExclusive()
           
 XsEMinInclusive getMinInclusive()
           
 XsEMinLength getMinLength()
           
 XsEPattern[] getPatterns()
           
 XsTLocalSimpleType getSimpleType()
           
 XsETotalDigits getTotalDigits()
           
 XsEWhiteSpace getWhiteSpace()
           
 boolean hasFacets()
          Returns whether any facet has been defined.
 

Method Detail

createSimpleType

public XsTLocalSimpleType createSimpleType()
                                    throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getSimpleType

public XsTLocalSimpleType getSimpleType()

createMinExclusive

public XsEMinExclusive createMinExclusive()
                                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getMinExclusive

public XsEMinExclusive getMinExclusive()

createMinInclusive

public XsEMinInclusive createMinInclusive()
                                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getMinInclusive

public XsEMinInclusive getMinInclusive()

createMaxExclusive

public XsEMaxExclusive createMaxExclusive()
                                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getMaxExclusive

public XsEMaxExclusive getMaxExclusive()

createMaxInclusive

public XsEMaxInclusive createMaxInclusive()
                                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getMaxInclusive

public XsEMaxInclusive getMaxInclusive()

createTotalDigits

public XsETotalDigits createTotalDigits()
                                 throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getTotalDigits

public XsETotalDigits getTotalDigits()

createFractionDigits

public XsEFractionDigits createFractionDigits()
                                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getFractionDigits

public XsEFractionDigits getFractionDigits()

createLength

public XsELength createLength()
                       throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getLength

public XsELength getLength()

createMinLength

public XsEMinLength createMinLength()
                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getMinLength

public XsEMinLength getMinLength()

createMaxLength

public XsEMaxLength createMaxLength()
                             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getMaxLength

public XsEMaxLength getMaxLength()

createWhiteSpace

public XsEWhiteSpace createWhiteSpace()
                               throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getWhiteSpace

public XsEWhiteSpace getWhiteSpace()

createPattern

public XsEPattern createPattern()
                         throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getPatterns

public XsEPattern[] getPatterns()

createEnumeration

public XsEEnumeration createEnumeration()
                                 throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getEnumerations

public XsEEnumeration[] getEnumerations()

hasFacets

public boolean hasFacets()

Returns whether any facet has been defined.


getFacets

public XsTFacetBase[] getFacets()

Returns an array of all facets.