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

Class XsTElementImpl

public abstract class XsTElementImpl extends XsTAnnotatedImpl implements XsTElement

Implementation of the xs:element type, as specified by the following:

  <xs:complexType name="element" abstract="true">
    <xs:annotation>
      <xs:documentation>
        The element element can be used either
        at the top level to define an element-type binding globally,
        or within a content model to either reference a globally-defined
        element or type or declare an element-type binding locally.
        The ref form is not allowed at the top level.
      </xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="xs:annotated">
        <xs:sequence>
          <xs:choice minOccurs="0">
            <xs:element name="simpleType" type="xs:localSimpleType"/>
            <xs:element name="complexType" type="xs:localComplexType"/>
          </xs:choice>
          <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:attributeGroup ref="xs:defRef"/>
        <xs:attribute name="type" type="xs:QName"/>
        <xs:attribute name="substitutionGroup" type="xs:QName"/>
        <xs:attributeGroup ref="xs:occurs"/>
        <xs:attribute name="default" type="xs:string"/>
        <xs:attribute name="fixed" type="xs:string"/>
        <xs:attribute name="nillable" type="xs:boolean" use="optional" default="false"/>
        <xs:attribute name="abstract" type="xs:boolean" use="optional" default="false"/>
        <xs:attribute name="final" type="xs:derivationSet"/>
        <xs:attribute name="block" type="xs:blockSet"/>
        <xs:attribute name="form" type="xs:formChoice"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
 

Author: Jochen Wiedmann

Constructor Summary
protected XsTElementImpl(XsObject pParent)
Method Summary
XsTLocalComplexTypecreateComplexType()
XsEKeycreateKey()
XsEKeyrefcreateKeyref()
XsTLocalSimpleTypecreateSimpleType()
XsEUniquecreateUnique()
booleangetAbstract()
XsBlockSetgetBlock()
XsTLocalComplexTypegetComplexType()
StringgetDefault()
XsDerivationSetgetFinal()
StringgetFixed()
XsFormChoicegetForm()
XsTIdentityConstraint[]getIdentityConstraints()
intgetMaxOccurs()
intgetMinOccurs()
XsNCNamegetName()
booleangetNillable()
XsQNamegetRef()
XsTLocalSimpleTypegetSimpleType()
XsQNamegetSubstitutionGroup()
XsQNamegetType()
voidsetAbstract(boolean pAbstract)
voidsetBlock(XsBlockSet pBlock)
voidsetDefault(String pDefault)
voidsetFinal(XsDerivationSet pFinal)
voidsetFixed(String pFixed)
voidsetForm(XsFormChoice pForm)
voidsetMaxOccurs(String pMaxOccurs)
voidsetMinOccurs(int pMinOccurs)
voidsetName(XsNCName pName)
voidsetNillable(boolean pNillable)
voidsetRef(XsQName pRef)
voidsetRef(String pRef)
voidsetSubstitutionGroup(XsQName pSubstitutionGroup)
voidsetSubstitutionGroup(String pSubstitutionGroup)
voidsetType(XsQName pType)
voidsetType(String pType)
voidvalidate()

Constructor Detail

XsTElementImpl

protected XsTElementImpl(XsObject pParent)

Method Detail

createComplexType

public XsTLocalComplexType createComplexType()

createKey

public XsEKey createKey()

createKeyref

public XsEKeyref createKeyref()

createSimpleType

public XsTLocalSimpleType createSimpleType()

createUnique

public XsEUnique createUnique()

getAbstract

public boolean getAbstract()

getBlock

public XsBlockSet getBlock()

getComplexType

public XsTLocalComplexType getComplexType()

getDefault

public String getDefault()

getFinal

public XsDerivationSet getFinal()

getFixed

public String getFixed()

getForm

public XsFormChoice getForm()

getIdentityConstraints

public XsTIdentityConstraint[] getIdentityConstraints()

getMaxOccurs

public int getMaxOccurs()

getMinOccurs

public int getMinOccurs()

getName

public XsNCName getName()

getNillable

public boolean getNillable()

getRef

public XsQName getRef()

getSimpleType

public XsTLocalSimpleType getSimpleType()

getSubstitutionGroup

public XsQName getSubstitutionGroup()

getType

public XsQName getType()

setAbstract

public void setAbstract(boolean pAbstract)

setBlock

public void setBlock(XsBlockSet pBlock)

setDefault

public void setDefault(String pDefault)

setFinal

public void setFinal(XsDerivationSet pFinal)

setFixed

public void setFixed(String pFixed)

setForm

public void setForm(XsFormChoice pForm)

setMaxOccurs

public void setMaxOccurs(String pMaxOccurs)

setMinOccurs

public void setMinOccurs(int pMinOccurs)

setName

public void setName(XsNCName pName)

setNillable

public void setNillable(boolean pNillable)

setRef

public void setRef(XsQName pRef)

setRef

public void setRef(String pRef)

setSubstitutionGroup

public void setSubstitutionGroup(XsQName pSubstitutionGroup)

setSubstitutionGroup

public void setSubstitutionGroup(String pSubstitutionGroup)

setType

public void setType(XsQName pType)

setType

public void setType(String pType)

validate

public void validate()