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

Class XsTElementImpl

Implemented Interfaces:
XsAGDefRef, XsAGOccurs, XsGIdentityConstraint, XsObject, XsTAnnotated, XsTElement, XsTOpenAttrs
Known Direct Subclasses:
XsTLocalElementImpl, XsTTopLevelElementImpl

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

XsTElementImpl(XsObject pParent)

Method Summary

XsTLocalComplexType
createComplexType()
XsEKey
createKey()
XsEKeyref
createKeyref()
XsTLocalSimpleType
createSimpleType()
XsEUnique
createUnique()
boolean
getAbstract()
XsBlockSet
getBlock()
XsTLocalComplexType
getComplexType()
String
getDefault()
XsDerivationSet
getFinal()
String
getFixed()
XsFormChoice
getForm()
XsTIdentityConstraint[]
getIdentityConstraints()
int
getMaxOccurs()
int
getMinOccurs()
XsNCName
getName()
boolean
getNillable()
XsQName
getRef()
XsTLocalSimpleType
getSimpleType()
XsQName
getSubstitutionGroup()
XsQName
getType()
void
setAbstract(boolean pAbstract)
void
setBlock(XsBlockSet pBlock)
void
setDefault(String pDefault)
void
setFinal(XsDerivationSet pFinal)
void
setFixed(String pFixed)
void
setForm(XsFormChoice pForm)
void
setMaxOccurs(String pMaxOccurs)
void
setMinOccurs(int pMinOccurs)
void
setName(XsNCName pName)
void
setNillable(boolean pNillable)
void
setRef(String pRef)
void
setRef(XsQName pRef)
void
setSubstitutionGroup(String pSubstitutionGroup)
void
setSubstitutionGroup(XsQName pSubstitutionGroup)
void
setType(String pType)
void
setType(XsQName pType)
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

XsTElementImpl

protected XsTElementImpl(XsObject pParent)

Method Details

createComplexType

public XsTLocalComplexType createComplexType()
            throws SAXException
Specified by:
createComplexType in interface XsTElement

createKey

public XsEKey createKey()
Specified by:
createKey in interface XsGIdentityConstraint

createKeyref

public XsEKeyref createKeyref()
Specified by:
createKeyref in interface XsGIdentityConstraint

createSimpleType

public XsTLocalSimpleType createSimpleType()
            throws SAXException
Specified by:
createSimpleType in interface XsTElement

createUnique

public XsEUnique createUnique()
Specified by:
createUnique in interface XsGIdentityConstraint

getAbstract

public boolean getAbstract()
Specified by:
getAbstract in interface XsTElement

getBlock

public XsBlockSet getBlock()
Specified by:
getBlock in interface XsTElement

getComplexType

public XsTLocalComplexType getComplexType()
Specified by:
getComplexType in interface XsTElement

getDefault

public String getDefault()
Specified by:
getDefault in interface XsTElement

getFinal

public XsDerivationSet getFinal()
Specified by:
getFinal in interface XsTElement

getFixed

public String getFixed()
Specified by:
getFixed in interface XsTElement

getForm

public XsFormChoice getForm()
Specified by:
getForm in interface XsTElement

getIdentityConstraints

public XsTIdentityConstraint[] getIdentityConstraints()
Specified by:
getIdentityConstraints in interface XsGIdentityConstraint

getMaxOccurs

public int getMaxOccurs()
Specified by:
getMaxOccurs in interface XsAGOccurs

getMinOccurs

public int getMinOccurs()
Specified by:
getMinOccurs in interface XsAGOccurs

getName

public XsNCName getName()
Specified by:
getName in interface XsAGDefRef

getNillable

public boolean getNillable()
Specified by:
getNillable in interface XsTElement

getRef

public XsQName getRef()
Specified by:
getRef in interface XsAGDefRef

getSimpleType

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

getSubstitutionGroup

public XsQName getSubstitutionGroup()
Specified by:
getSubstitutionGroup in interface XsTElement

getType

public XsQName getType()
Specified by:
getType in interface XsTElement

setAbstract

public void setAbstract(boolean pAbstract)
Specified by:
setAbstract in interface XsTElement

setBlock

public void setBlock(XsBlockSet pBlock)
Specified by:
setBlock in interface XsTElement

setDefault

public void setDefault(String pDefault)
Specified by:
setDefault in interface XsTElement

setFinal

public void setFinal(XsDerivationSet pFinal)
Specified by:
setFinal in interface XsTElement

setFixed

public void setFixed(String pFixed)
Specified by:
setFixed in interface XsTElement

setForm

public void setForm(XsFormChoice pForm)
Specified by:
setForm in interface XsTElement

setMaxOccurs

public void setMaxOccurs(String pMaxOccurs)
Specified by:
setMaxOccurs in interface XsAGOccurs

setMinOccurs

public void setMinOccurs(int pMinOccurs)
Specified by:
setMinOccurs in interface XsAGOccurs

setName

public void setName(XsNCName pName)
Specified by:
setName in interface XsAGDefRef

setNillable

public void setNillable(boolean pNillable)
Specified by:
setNillable in interface XsTElement

setRef

public void setRef(String pRef)
            throws SAXException

setRef

public void setRef(XsQName pRef)
Specified by:
setRef in interface XsAGDefRef

setSubstitutionGroup

public void setSubstitutionGroup(String pSubstitutionGroup)
            throws SAXException

setSubstitutionGroup

public void setSubstitutionGroup(XsQName pSubstitutionGroup)
            throws SAXException
Specified by:
setSubstitutionGroup in interface XsTElement

setType

public void setType(String pType)
            throws SAXException

setType

public void setType(XsQName pType)
            throws SAXException
Specified by:
setType in interface XsTElement

validate

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