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>
| Modifier | Constructor and Description |
|---|---|
protected |
XsTElementImpl(XsObject pParent) |
| Modifier and Type | Method and Description |
|---|---|
XsTLocalComplexType |
createComplexType() |
XsEKey |
createKey() |
XsEKeyref |
createKeyref() |
XsTLocalSimpleType |
createSimpleType() |
XsEUnique |
createUnique() |
boolean |
getAbstract() |
XsBlockSet |
getBlock() |
XsTLocalComplexType |
getComplexType() |
java.lang.String |
getDefault() |
XsDerivationSet |
getFinal() |
java.lang.String |
getFixed() |
XsFormChoice |
getForm() |
XsTIdentityConstraint[] |
getIdentityConstraints() |
int |
getMaxOccurs()
-1 for 'unbounded'
|
int |
getMinOccurs() |
XsNCName |
getName() |
boolean |
getNillable() |
XsQName |
getRef() |
XsTLocalSimpleType |
getSimpleType() |
XsQName |
getSubstitutionGroup() |
XsQName |
getType() |
void |
setAbstract(boolean pAbstract) |
void |
setBlock(XsBlockSet pBlock) |
void |
setDefault(java.lang.String pDefault) |
void |
setFinal(XsDerivationSet pFinal) |
void |
setFixed(java.lang.String pFixed) |
void |
setForm(XsFormChoice pForm) |
void |
setMaxOccurs(java.lang.String pMaxOccurs)
Either of 'unbounded' or a nonnegative integer value.
|
void |
setMinOccurs(int pMinOccurs) |
void |
setName(XsNCName pName) |
void |
setNillable(boolean pNillable) |
void |
setRef(java.lang.String pRef) |
void |
setRef(XsQName pRef) |
void |
setSubstitutionGroup(java.lang.String pSubstitutionGroup) |
void |
setSubstitutionGroup(XsQName pSubstitutionGroup) |
void |
setType(java.lang.String pType) |
void |
setType(XsQName pType) |
void |
validate()
Validates the internal state of the type, attribute, element,
or whatever object.
|
createAnnotation, getAnnotation, getId, setIdgetOpenAttributes, setAttributeasXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidatedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisGlobalcreateAnnotation, getAnnotation, getId, setIdgetOpenAttributesgetLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObjectprotected XsTElementImpl(XsObject pParent)
public XsTLocalSimpleType createSimpleType() throws org.xml.sax.SAXException
createSimpleType in interface XsTElementorg.xml.sax.SAXExceptionpublic XsTLocalSimpleType getSimpleType()
getSimpleType in interface XsTElementpublic XsTLocalComplexType createComplexType() throws org.xml.sax.SAXException
createComplexType in interface XsTElementorg.xml.sax.SAXExceptionpublic XsTLocalComplexType getComplexType()
getComplexType in interface XsTElementpublic void setType(XsQName pType) throws org.xml.sax.SAXException
setType in interface XsTElementorg.xml.sax.SAXExceptionpublic void setType(java.lang.String pType)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic XsQName getType()
getType in interface XsTElementpublic void setSubstitutionGroup(XsQName pSubstitutionGroup) throws org.xml.sax.SAXException
setSubstitutionGroup in interface XsTElementorg.xml.sax.SAXExceptionpublic void setSubstitutionGroup(java.lang.String pSubstitutionGroup)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic XsQName getSubstitutionGroup()
getSubstitutionGroup in interface XsTElementpublic void setDefault(java.lang.String pDefault)
setDefault in interface XsTElementpublic java.lang.String getDefault()
getDefault in interface XsTElementpublic void setFixed(java.lang.String pFixed)
setFixed in interface XsTElementpublic java.lang.String getFixed()
getFixed in interface XsTElementpublic void setNillable(boolean pNillable)
setNillable in interface XsTElementpublic boolean getNillable()
getNillable in interface XsTElementpublic void setAbstract(boolean pAbstract)
setAbstract in interface XsTElementpublic boolean getAbstract()
getAbstract in interface XsTElementpublic void setFinal(XsDerivationSet pFinal)
setFinal in interface XsTElementpublic XsDerivationSet getFinal()
getFinal in interface XsTElementpublic void setBlock(XsBlockSet pBlock)
setBlock in interface XsTElementpublic XsBlockSet getBlock()
getBlock in interface XsTElementpublic void setForm(XsFormChoice pForm)
setForm in interface XsTElementpublic XsFormChoice getForm()
getForm in interface XsTElementpublic void validate()
throws org.xml.sax.SAXException
XsObjectvalidate in interface XsAGDefRefvalidate in interface XsAGOccursvalidate in interface XsObjectvalidate in class XsObjectImplorg.xml.sax.SAXExceptionpublic void setName(XsNCName pName)
setName in interface XsAGDefRefpublic XsNCName getName()
getName in interface XsAGDefRefpublic void setRef(XsQName pRef)
setRef in interface XsAGDefRefpublic void setRef(java.lang.String pRef)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic XsQName getRef()
getRef in interface XsAGDefRefpublic void setMaxOccurs(java.lang.String pMaxOccurs)
XsAGOccursEither of 'unbounded' or a nonnegative integer value.
setMaxOccurs in interface XsAGOccurspublic int getMaxOccurs()
XsAGOccurs-1 for 'unbounded'
getMaxOccurs in interface XsAGOccurspublic void setMinOccurs(int pMinOccurs)
setMinOccurs in interface XsAGOccurspublic int getMinOccurs()
getMinOccurs in interface XsAGOccurspublic XsEUnique createUnique()
createUnique in interface XsGIdentityConstraintpublic XsEKey createKey()
createKey in interface XsGIdentityConstraintpublic XsEKeyref createKeyref()
createKeyref in interface XsGIdentityConstraintpublic XsTIdentityConstraint[] getIdentityConstraints()
getIdentityConstraints in interface XsGIdentityConstraint