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

Class XsGSimpleRestrictionModelImpl

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

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(String pName)
XsTFacetBase[]
getFacets()
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()

Constructor Details

XsGSimpleRestrictionModelImpl

protected XsGSimpleRestrictionModelImpl(XsObject pOwner)

Method Details

addFacet

protected void addFacet(XsTFacetBase pFacet)

addUniqueFacet

protected void addUniqueFacet(XsTFacetBase pFacet)

createEnumeration

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

createFractionDigits

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

createLength

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

createMaxExclusive

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

createMaxInclusive

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

createMaxLength

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

createMinExclusive

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

createMinInclusive

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

createMinLength

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

createPattern

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

createSimpleType

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

createTotalDigits

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

createWhiteSpace

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

getEnumerations

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

getFacetByName

protected XsTFacetBase getFacetByName(String pName)

getFacets

public XsTFacetBase[] getFacets()
Specified by:
getFacets in interface XsGSimpleRestrictionModel

getFractionDigits

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

getLength

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

getMaxExclusive

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

getMaxInclusive

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

getMaxLength

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

getMinExclusive

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

getMinInclusive

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

getMinLength

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

getPatterns

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

getSimpleType

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

getTotalDigits

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

getWhiteSpace

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

hasFacets

public boolean hasFacets()
Specified by:
hasFacets in interface XsGSimpleRestrictionModel