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

java.lang.Object
  extended by org.apache.ws.jaxme.xs.xml.impl.XsGComplexTypeModelImpl
All Implemented Interfaces:
XsGAttrDecls, XsGComplexTypeModel, XsGTypeDefParticle

public class XsGComplexTypeModelImpl
extends java.lang.Object
implements XsGComplexTypeModel

Implementation of the group xs:complexTypeModel, as specified by the following:

  <xs:group name="complexTypeModel">
    <xs:choice>
      <xs:element ref="xs:simpleContent"/>
      <xs:element ref="xs:complexContent"/>
      <xs:sequence>
        <xs:annotation>
          <xs:documentation>
            This branch is short for &lt;complexContent&gt;
            &lt;restriction base="xs:anyType"&gt;
            ...
            &lt;/restriction&gt;
            &lt;/complexContent&gt;
          </xs:documentation>
        </xs:annotation>
        <xs:group ref="xs:typeDefParticle" minOccurs="0"/>
        <xs:group ref="xs:attrDecls"/>
      </xs:sequence>
    </xs:choice>
  </xs:group>
 

Author:
Jochen Wiedmann

Constructor Summary
protected XsGComplexTypeModelImpl(XsObject pOwner)
           
 
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()
           
 XsEComplexContent createComplexContent()
           
 XsTGroupRef createGroup()
           
 XsESequence createSequence()
           
 XsESimpleContent createSimpleContent()
           
 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().
 XsEComplexContent getComplexContent()
           
 XsESimpleContent getSimpleContent()
           
 XsTTypeDefParticle getTypeDefParticle()
           
 void validate()
           
protected  void validateOtherContent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsGComplexTypeModelImpl

protected XsGComplexTypeModelImpl(XsObject pOwner)
Method Detail

createSimpleContent

public XsESimpleContent createSimpleContent()
Specified by:
createSimpleContent in interface XsGComplexTypeModel

getSimpleContent

public XsESimpleContent getSimpleContent()
Specified by:
getSimpleContent in interface XsGComplexTypeModel

createComplexContent

public XsEComplexContent createComplexContent()
Specified by:
createComplexContent in interface XsGComplexTypeModel

getComplexContent

public XsEComplexContent getComplexContent()
Specified by:
getComplexContent in interface XsGComplexTypeModel

validateOtherContent

protected void validateOtherContent()

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
Throws:
org.xml.sax.SAXException

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