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, setId
getOpenAttributes, setAttribute
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isGlobal
createAnnotation, getAnnotation, getId, setId
getOpenAttributes
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject
protected XsTElementImpl(XsObject pParent)
public XsTLocalSimpleType createSimpleType() throws org.xml.sax.SAXException
createSimpleType
in interface XsTElement
org.xml.sax.SAXException
public XsTLocalSimpleType getSimpleType()
getSimpleType
in interface XsTElement
public XsTLocalComplexType createComplexType() throws org.xml.sax.SAXException
createComplexType
in interface XsTElement
org.xml.sax.SAXException
public XsTLocalComplexType getComplexType()
getComplexType
in interface XsTElement
public void setType(XsQName pType) throws org.xml.sax.SAXException
setType
in interface XsTElement
org.xml.sax.SAXException
public void setType(java.lang.String pType) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public XsQName getType()
getType
in interface XsTElement
public void setSubstitutionGroup(XsQName pSubstitutionGroup) throws org.xml.sax.SAXException
setSubstitutionGroup
in interface XsTElement
org.xml.sax.SAXException
public void setSubstitutionGroup(java.lang.String pSubstitutionGroup) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public XsQName getSubstitutionGroup()
getSubstitutionGroup
in interface XsTElement
public void setDefault(java.lang.String pDefault)
setDefault
in interface XsTElement
public java.lang.String getDefault()
getDefault
in interface XsTElement
public void setFixed(java.lang.String pFixed)
setFixed
in interface XsTElement
public java.lang.String getFixed()
getFixed
in interface XsTElement
public void setNillable(boolean pNillable)
setNillable
in interface XsTElement
public boolean getNillable()
getNillable
in interface XsTElement
public void setAbstract(boolean pAbstract)
setAbstract
in interface XsTElement
public boolean getAbstract()
getAbstract
in interface XsTElement
public void setFinal(XsDerivationSet pFinal)
setFinal
in interface XsTElement
public XsDerivationSet getFinal()
getFinal
in interface XsTElement
public void setBlock(XsBlockSet pBlock)
setBlock
in interface XsTElement
public XsBlockSet getBlock()
getBlock
in interface XsTElement
public void setForm(XsFormChoice pForm)
setForm
in interface XsTElement
public XsFormChoice getForm()
getForm
in interface XsTElement
public void validate() throws org.xml.sax.SAXException
XsObject
validate
in interface XsAGDefRef
validate
in interface XsAGOccurs
validate
in interface XsObject
validate
in class XsObjectImpl
org.xml.sax.SAXException
public void setName(XsNCName pName)
setName
in interface XsAGDefRef
public XsNCName getName()
getName
in interface XsAGDefRef
public void setRef(XsQName pRef)
setRef
in interface XsAGDefRef
public void setRef(java.lang.String pRef) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public XsQName getRef()
getRef
in interface XsAGDefRef
public void setMaxOccurs(java.lang.String pMaxOccurs)
XsAGOccurs
Either of 'unbounded' or a nonnegative integer value.
setMaxOccurs
in interface XsAGOccurs
public int getMaxOccurs()
XsAGOccurs
-1 for 'unbounded'
getMaxOccurs
in interface XsAGOccurs
public void setMinOccurs(int pMinOccurs)
setMinOccurs
in interface XsAGOccurs
public int getMinOccurs()
getMinOccurs
in interface XsAGOccurs
public XsEUnique createUnique()
createUnique
in interface XsGIdentityConstraint
public XsEKey createKey()
createKey
in interface XsGIdentityConstraint
public XsEKeyref createKeyref()
createKeyref
in interface XsGIdentityConstraint
public XsTIdentityConstraint[] getIdentityConstraints()
getIdentityConstraints
in interface XsGIdentityConstraint