org.apache.ws.jaxme.xs.xml.impl
Class XsGSimpleRestrictionModelImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.xml.impl.XsGSimpleRestrictionModelImpl
All Implemented Interfaces:
XsGSimpleRestrictionModel

public class XsGSimpleRestrictionModelImpl
extends java.lang.Object
implements 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

Constructor Summary
protected XsGSimpleRestrictionModelImpl(XsObject pOwner)
           
 
Method Summary
protected  void addFacet(XsTFacetBase pFacet)
           
protected  void addUniqueFacet(XsTFacetBase pFacet)
           
 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()
           
protected  XsTFacetBase getFacetByName(java.lang.String pName)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsGSimpleRestrictionModelImpl

protected XsGSimpleRestrictionModelImpl(XsObject pOwner)
Method Detail

createSimpleType

public XsTLocalSimpleType createSimpleType()
Specified by:
createSimpleType in interface XsGSimpleRestrictionModel

getSimpleType

public XsTLocalSimpleType getSimpleType()
Specified by:
getSimpleType in interface XsGSimpleRestrictionModel

getFacetByName

protected XsTFacetBase getFacetByName(java.lang.String pName)

addFacet

protected void addFacet(XsTFacetBase pFacet)

addUniqueFacet

protected void addUniqueFacet(XsTFacetBase pFacet)

createMinExclusive

public XsEMinExclusive createMinExclusive()
Specified by:
createMinExclusive in interface XsGSimpleRestrictionModel

getMinExclusive

public XsEMinExclusive getMinExclusive()
Specified by:
getMinExclusive in interface XsGSimpleRestrictionModel

createMinInclusive

public XsEMinInclusive createMinInclusive()
Specified by:
createMinInclusive in interface XsGSimpleRestrictionModel

getMinInclusive

public XsEMinInclusive getMinInclusive()
Specified by:
getMinInclusive in interface XsGSimpleRestrictionModel

createMaxExclusive

public XsEMaxExclusive createMaxExclusive()
Specified by:
createMaxExclusive in interface XsGSimpleRestrictionModel

getMaxExclusive

public XsEMaxExclusive getMaxExclusive()
Specified by:
getMaxExclusive in interface XsGSimpleRestrictionModel

createMaxInclusive

public XsEMaxInclusive createMaxInclusive()
Specified by:
createMaxInclusive in interface XsGSimpleRestrictionModel

getMaxInclusive

public XsEMaxInclusive getMaxInclusive()
Specified by:
getMaxInclusive in interface XsGSimpleRestrictionModel

createTotalDigits

public XsETotalDigits createTotalDigits()
Specified by:
createTotalDigits in interface XsGSimpleRestrictionModel

getTotalDigits

public XsETotalDigits getTotalDigits()
Specified by:
getTotalDigits in interface XsGSimpleRestrictionModel

createFractionDigits

public XsEFractionDigits createFractionDigits()
Specified by:
createFractionDigits in interface XsGSimpleRestrictionModel

getFractionDigits

public XsEFractionDigits getFractionDigits()
Specified by:
getFractionDigits in interface XsGSimpleRestrictionModel

createLength

public XsELength createLength()
Specified by:
createLength in interface XsGSimpleRestrictionModel

getLength

public XsELength getLength()
Specified by:
getLength in interface XsGSimpleRestrictionModel

createMinLength

public XsEMinLength createMinLength()
Specified by:
createMinLength in interface XsGSimpleRestrictionModel

getMinLength

public XsEMinLength getMinLength()
Specified by:
getMinLength in interface XsGSimpleRestrictionModel

createMaxLength

public XsEMaxLength createMaxLength()
Specified by:
createMaxLength in interface XsGSimpleRestrictionModel

getMaxLength

public XsEMaxLength getMaxLength()
Specified by:
getMaxLength in interface XsGSimpleRestrictionModel

createWhiteSpace

public XsEWhiteSpace createWhiteSpace()
Specified by:
createWhiteSpace in interface XsGSimpleRestrictionModel

getWhiteSpace

public XsEWhiteSpace getWhiteSpace()
Specified by:
getWhiteSpace in interface XsGSimpleRestrictionModel

createPattern

public XsEPattern createPattern()
Specified by:
createPattern in interface XsGSimpleRestrictionModel

getPatterns

public XsEPattern[] getPatterns()
Specified by:
getPatterns in interface XsGSimpleRestrictionModel

createEnumeration

public XsEEnumeration createEnumeration()
Specified by:
createEnumeration in interface XsGSimpleRestrictionModel

getEnumerations

public XsEEnumeration[] getEnumerations()
Specified by:
getEnumerations in interface XsGSimpleRestrictionModel

hasFacets

public boolean hasFacets()
Description copied from interface: XsGSimpleRestrictionModel

Returns whether any facet has been defined.

Specified by:
hasFacets in interface XsGSimpleRestrictionModel

getFacets

public XsTFacetBase[] getFacets()
Description copied from interface: XsGSimpleRestrictionModel

Returns an array of all facets.

Specified by:
getFacets in interface XsGSimpleRestrictionModel