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

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.XsTExtensionTypeImpl
All 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
protected 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()
           
 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()
           
 XsTTypeDefParticle getTypeDefParticle()
           
 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

XsTExtensionTypeImpl

protected XsTExtensionTypeImpl(XsObject pParent)
Method Detail

setBase

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

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 XsTExtensionType

createGroup

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

createAll

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

createChoice

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

createSequence

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

getTypeDefParticle

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

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