net.sf.jaxme.xs.xml.impl
Class XsTElementImpl
java.lang.Object
net.sf.jaxme.xs.xml.impl.XsObjectImpl
net.sf.jaxme.xs.xml.impl.XsTOpenAttrsImpl
net.sf.jaxme.xs.xml.impl.XsTAnnotatedImpl
net.sf.jaxme.xs.xml.impl.XsTElementImpl
- All Implemented Interfaces:
- XsAGDefRef, XsAGOccurs, XsGIdentityConstraint, XsObject, XsTAnnotated, XsTElement, XsTOpenAttrs
- Direct Known Subclasses:
- XsTLocalElementImpl, XsTTopLevelElementImpl
- public 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XsTElementImpl
protected XsTElementImpl(XsObject pParent)
createSimpleType
public XsTLocalSimpleType createSimpleType()
throws org.xml.sax.SAXException
- Specified by:
createSimpleType
in interface XsTElement
- Throws:
org.xml.sax.SAXException
getSimpleType
public XsTLocalSimpleType getSimpleType()
- Specified by:
getSimpleType
in interface XsTElement
createComplexType
public XsTLocalComplexType createComplexType()
throws org.xml.sax.SAXException
- Specified by:
createComplexType
in interface XsTElement
- Throws:
org.xml.sax.SAXException
getComplexType
public XsTLocalComplexType getComplexType()
- Specified by:
getComplexType
in interface XsTElement
setType
public void setType(XsQName pType)
throws org.xml.sax.SAXException
- Specified by:
setType
in interface XsTElement
- Throws:
org.xml.sax.SAXException
setType
public void setType(java.lang.String pType)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
getType
public XsQName getType()
- Specified by:
getType
in interface XsTElement
setSubstitutionGroup
public void setSubstitutionGroup(XsQName pSubstitutionGroup)
- Specified by:
setSubstitutionGroup
in interface XsTElement
setSubstitutionGroup
public void setSubstitutionGroup(java.lang.String pSubstitutionGroup)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
getSubstitutionGroup
public XsQName getSubstitutionGroup()
- Specified by:
getSubstitutionGroup
in interface XsTElement
setDefault
public void setDefault(java.lang.String pDefault)
- Specified by:
setDefault
in interface XsTElement
getDefault
public java.lang.String getDefault()
- Specified by:
getDefault
in interface XsTElement
setFixed
public void setFixed(java.lang.String pFixed)
- Specified by:
setFixed
in interface XsTElement
getFixed
public java.lang.String getFixed()
- Specified by:
getFixed
in interface XsTElement
setNillable
public void setNillable(boolean pNillable)
- Specified by:
setNillable
in interface XsTElement
getNillable
public boolean getNillable()
- Specified by:
getNillable
in interface XsTElement
setAbstract
public void setAbstract(boolean pAbstract)
- Specified by:
setAbstract
in interface XsTElement
getAbstract
public boolean getAbstract()
- Specified by:
getAbstract
in interface XsTElement
setFinal
public void setFinal(XsDerivationSet pFinal)
- Specified by:
setFinal
in interface XsTElement
getFinal
public XsDerivationSet getFinal()
- Specified by:
getFinal
in interface XsTElement
setBlock
public void setBlock(XsBlockSet pBlock)
- Specified by:
setBlock
in interface XsTElement
getBlock
public XsBlockSet getBlock()
- Specified by:
getBlock
in interface XsTElement
setForm
public void setForm(XsFormChoice pForm)
- Specified by:
setForm
in interface XsTElement
getForm
public XsFormChoice getForm()
- Specified by:
getForm
in interface XsTElement
validate
public void validate()
throws org.xml.sax.SAXException
- Description copied from interface:
XsAGDefRef
Validates whether the attribute groups constraints are met.
- Specified by:
validate
in interface XsObject
- Overrides:
validate
in class XsObjectImpl
- Throws:
org.xml.sax.SAXException
setName
public void setName(XsNCName pName)
- Specified by:
setName
in interface XsAGDefRef
getName
public XsNCName getName()
- Specified by:
getName
in interface XsAGDefRef
setRef
public void setRef(XsQName pRef)
- Specified by:
setRef
in interface XsAGDefRef
setRef
public void setRef(java.lang.String pRef)
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
getRef
public XsQName getRef()
- Specified by:
getRef
in interface XsAGDefRef
setMaxOccurs
public void setMaxOccurs(java.lang.String pMaxOccurs)
- Description copied from interface:
XsAGOccurs
Either of 'unbounded' or a nonnegative integer value.
- Specified by:
setMaxOccurs
in interface XsAGOccurs
getMaxOccurs
public int getMaxOccurs()
- Description copied from interface:
XsAGOccurs
-1 for 'unbounded'
- Specified by:
getMaxOccurs
in interface XsAGOccurs
setMinOccurs
public void setMinOccurs(int pMinOccurs)
- Specified by:
setMinOccurs
in interface XsAGOccurs
getMinOccurs
public int getMinOccurs()
- Specified by:
getMinOccurs
in interface XsAGOccurs
createUnique
public XsEUnique createUnique()
- Specified by:
createUnique
in interface XsGIdentityConstraint
createKey
public XsEKey createKey()
- Specified by:
createKey
in interface XsGIdentityConstraint
createKeyref
public XsEKeyref createKeyref()
- Specified by:
createKeyref
in interface XsGIdentityConstraint
getIdentityConstraints
public XsTIdentityConstraint[] getIdentityConstraints()
- Specified by:
getIdentityConstraints
in interface XsGIdentityConstraint