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

Class XsTExtensionTypeImpl

Implemented Interfaces:
XsGAttrDecls, XsGTypeDefParticle, XsObject, XsTAnnotated, XsTExtensionType, XsTOpenAttrs

public class XsTExtensionTypeImpl
extends XsTAnnotatedImpl
implements XsTExtensionType

Implementation of the xs:extensionType type, as specified by:
  <xs:complexType name="extensionType">
    <xs:complexContent>
      <xs:extension base="xs:annotated">
        <xs:sequence>
          <xs:group ref="xs:typeDefParticle" minOccurs="0"/>
          <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

XsTExtensionTypeImpl(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()
XsTGroupRef
createGroup()
XsESequence
createSequence()
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()
XsTTypeDefParticle
getTypeDefParticle()
void
setBase(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, validate

Constructor Details

XsTExtensionTypeImpl

protected XsTExtensionTypeImpl(XsObject pParent)

Method Details

createAll

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

createAnyAttribute

public XsTWildcard createAnyAttribute()
Creates a new instance of XsTWildcard.
Specified by:
createAnyAttribute in interface XsGAttrDecls

createAttribute

public XsTAttribute createAttribute()
Creates a new instance of XsTAttribute.
Specified by:
createAttribute in interface XsGAttrDecls

createAttributeGroup

public XsTAttributeGroupRef createAttributeGroup()
Creates a new instance of XsTAttributeGroup.
Specified by:
createAttributeGroup in interface XsGAttrDecls

createChoice

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

createGroup

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

createSequence

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

getAllAttributes

public Object[] getAllAttributes()
Specified by:
getAllAttributes in interface XsGAttrDecls

getAnyAttribute

public XsTWildcard getAnyAttribute()
Returns the instance created by XsGAttrDecls.createAnyAttribute(), or null, if the method wasn't called.
Specified by:
getAnyAttribute in interface XsGAttrDecls

getAttributeGroups

public XsTAttributeGroupRef[] getAttributeGroups()
Returns an array of all attribute groups created by XsGAttrDecls.createAttributeGroup();
Specified by:
getAttributeGroups in interface XsGAttrDecls

getAttributes

public XsTAttribute[] getAttributes()
Returns an array of all attributes created by XsGAttrDecls.createAttribute().
Specified by:
getAttributes in interface XsGAttrDecls

getBase

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

getTypeDefParticle

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

setBase

public void setBase(String pBase)
            throws SAXException

setBase

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

validate

public void validate()
            throws SAXException
Validates the internal state of the type, attribute, element, or whatever object.
Specified by:
validate in interface XsObject
Overrides:
validate in interface XsObjectImpl