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

java.lang.Object
  extended by org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
      extended by org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl
          extended by org.apache.ws.jaxme.xs.xml.impl.XsTAnnotatedImpl
              extended by org.apache.ws.jaxme.xs.xml.impl.XsTRestrictionTypeImpl
All Implemented Interfaces:
XsGAttrDecls, XsGSimpleRestrictionModel, XsGTypeDefParticle, XsObject, XsTAnnotated, XsTOpenAttrs, XsTRestrictionType
Direct Known Subclasses:
XsTComplexRestrictionTypeImpl, XsTSimpleRestrictionTypeImpl

public class XsTRestrictionTypeImpl
extends XsTAnnotatedImpl
implements XsTRestrictionType

Implementation of xs:restrictionType, as specified by the following:

  <xs:complexType name="restrictionType">
    <xs:complexContent>
      <xs:extension base="xs:annotated">
        <xs:sequence>
          <xs:choice>
            <xs:group ref="xs:typeDefParticle" minOccurs="0"/>
            <xs:group ref="xs:simpleRestrictionModel" minOccurs="0"/>
          </xs:choice>
          <xs:group ref="xs:attrDecls"/>
        </xs:sequence>
        <xs:attribute name="base" type="xs:QName" use="required"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
 

Author:
Jochen Wiedmann

Constructor Summary
protected XsTRestrictionTypeImpl(XsObject pParent)
           
 
Method Summary
 XsTAll createAll()
           
 XsTWildcard createAnyAttribute()
          Creates a new instance of XsTWildcard.
 XsTAttribute createAttribute()
          Creates a new instance of XsTAttribute.
 XsTAttributeGroupRef createAttributeGroup()
          Creates a new instance of XsTAttributeGroup.
 XsEChoice createChoice()
           
 XsEEnumeration createEnumeration()
           
 XsEFractionDigits createFractionDigits()
           
 XsTGroupRef createGroup()
           
 XsELength createLength()
           
 XsEMaxExclusive createMaxExclusive()
           
 XsEMaxInclusive createMaxInclusive()
           
 XsEMaxLength createMaxLength()
           
 XsEMinExclusive createMinExclusive()
           
 XsEMinInclusive createMinInclusive()
           
 XsEMinLength createMinLength()
           
 XsEPattern createPattern()
           
 XsESequence createSequence()
           
 XsTLocalSimpleType createSimpleType()
           
 XsETotalDigits createTotalDigits()
           
 XsEWhiteSpace createWhiteSpace()
           
 java.lang.Object[] getAllAttributes()
          Returns all objects created by XsGAttrDecls.createAttribute(), XsGAttrDecls.createAttributeGroup(), or XsGAttrDecls.createAnyAttribute(), in the order of the corresponding method calls.
 XsTWildcard getAnyAttribute()
          Returns the instance created by XsGAttrDecls.createAnyAttribute(), or null, if the method wasn't called.
 XsTAttributeGroupRef[] getAttributeGroups()
          Returns an array of all attribute groups created by XsGAttrDecls.createAttributeGroup();
 XsTAttribute[] getAttributes()
          Returns an array of all attributes created by XsGAttrDecls.createAttribute().
 XsQName getBase()
           
 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()
           
 XsTTypeDefParticle getTypeDefParticle()
           
 XsEWhiteSpace getWhiteSpace()
           
 boolean hasFacets()
          Returns whether any facet has been defined.
 void setBase(java.lang.String pBase)
           
 void setBase(XsQName pBase)
           
 void validate()
          Validates the internal state of the type, attribute, element, or whatever object.
 
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsTAnnotatedImpl
createAnnotation, getAnnotation, getId, setId
 
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl
getOpenAttributes, setAttribute
 
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsTAnnotated
createAnnotation, getAnnotation, getId, setId
 
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsTOpenAttrs
getOpenAttributes
 
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsObject
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject
 

Constructor Detail

XsTRestrictionTypeImpl

protected XsTRestrictionTypeImpl(XsObject pParent)
Method Detail

setBase

public void setBase(XsQName pBase)
Specified by:
setBase in interface XsTRestrictionType

setBase

public void setBase(java.lang.String pBase)
             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getBase

public XsQName getBase()
Specified by:
getBase in interface XsTRestrictionType

createGroup

public XsTGroupRef createGroup()
Specified by:
createGroup in interface XsGTypeDefParticle

createAll

public XsTAll createAll()
Specified by:
createAll in interface XsGTypeDefParticle

createSequence

public XsESequence createSequence()
Specified by:
createSequence in interface XsGTypeDefParticle

createChoice

public XsEChoice createChoice()
Specified by:
createChoice in interface XsGTypeDefParticle

getTypeDefParticle

public XsTTypeDefParticle getTypeDefParticle()
Specified by:
getTypeDefParticle in interface XsGTypeDefParticle

createSimpleType

public XsTLocalSimpleType createSimpleType()
                                    throws org.xml.sax.SAXException
Specified by:
createSimpleType in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getSimpleType

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

createMinExclusive

public XsEMinExclusive createMinExclusive()
                                   throws org.xml.sax.SAXException
Specified by:
createMinExclusive in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getMinExclusive

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

createMinInclusive

public XsEMinInclusive createMinInclusive()
                                   throws org.xml.sax.SAXException
Specified by:
createMinInclusive in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getMinInclusive

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

createMaxExclusive

public XsEMaxExclusive createMaxExclusive()
                                   throws org.xml.sax.SAXException
Specified by:
createMaxExclusive in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getMaxExclusive

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

createMaxInclusive

public XsEMaxInclusive createMaxInclusive()
                                   throws org.xml.sax.SAXException
Specified by:
createMaxInclusive in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getMaxInclusive

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

createTotalDigits

public XsETotalDigits createTotalDigits()
                                 throws org.xml.sax.SAXException
Specified by:
createTotalDigits in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getTotalDigits

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

createFractionDigits

public XsEFractionDigits createFractionDigits()
                                       throws org.xml.sax.SAXException
Specified by:
createFractionDigits in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getFractionDigits

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

createLength

public XsELength createLength()
                       throws org.xml.sax.SAXException
Specified by:
createLength in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getLength

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

createMinLength

public XsEMinLength createMinLength()
                             throws org.xml.sax.SAXException
Specified by:
createMinLength in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getMinLength

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

createMaxLength

public XsEMaxLength createMaxLength()
                             throws org.xml.sax.SAXException
Specified by:
createMaxLength in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getMaxLength

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

createWhiteSpace

public XsEWhiteSpace createWhiteSpace()
                               throws org.xml.sax.SAXException
Specified by:
createWhiteSpace in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getWhiteSpace

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

createPattern

public XsEPattern createPattern()
                         throws org.xml.sax.SAXException
Specified by:
createPattern in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

getPatterns

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

createEnumeration

public XsEEnumeration createEnumeration()
                                 throws org.xml.sax.SAXException
Specified by:
createEnumeration in interface XsGSimpleRestrictionModel
Throws:
org.xml.sax.SAXException

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

createAttribute

public XsTAttribute createAttribute()
Description copied from interface: XsGAttrDecls

Creates a new instance of XsTAttribute.

Specified by:
createAttribute in interface XsGAttrDecls

getAttributes

public XsTAttribute[] getAttributes()
Description copied from interface: XsGAttrDecls

Returns an array of all attributes created by XsGAttrDecls.createAttribute().

Specified by:
getAttributes in interface XsGAttrDecls

createAttributeGroup

public XsTAttributeGroupRef createAttributeGroup()
Description copied from interface: XsGAttrDecls

Creates a new instance of XsTAttributeGroup.

Specified by:
createAttributeGroup in interface XsGAttrDecls

getAttributeGroups

public XsTAttributeGroupRef[] getAttributeGroups()
Description copied from interface: XsGAttrDecls

Returns an array of all attribute groups created by XsGAttrDecls.createAttributeGroup();

Specified by:
getAttributeGroups in interface XsGAttrDecls

createAnyAttribute

public XsTWildcard createAnyAttribute()
Description copied from interface: XsGAttrDecls

Creates a new instance of XsTWildcard.

Specified by:
createAnyAttribute in interface XsGAttrDecls

getAnyAttribute

public XsTWildcard getAnyAttribute()
Description copied from interface: XsGAttrDecls

Returns the instance created by XsGAttrDecls.createAnyAttribute(), or null, if the method wasn't called.

Specified by:
getAnyAttribute in interface XsGAttrDecls

getAllAttributes

public java.lang.Object[] getAllAttributes()
Description copied from interface: XsGAttrDecls

Returns all objects created by XsGAttrDecls.createAttribute(), XsGAttrDecls.createAttributeGroup(), or XsGAttrDecls.createAnyAttribute(), in the order of the corresponding method calls.

Specified by:
getAllAttributes in interface XsGAttrDecls

validate

public void validate()
              throws org.xml.sax.SAXException
Description copied from interface: XsObject
Validates the internal state of the type, attribute, element, or whatever object.

Specified by:
validate in interface XsObject
Overrides:
validate in class XsObjectImpl
Throws:
org.xml.sax.SAXException