public class XSElementImpl extends XSOpenAttrsImpl implements XSElement
Modifier | Constructor and Description |
---|---|
protected |
XSElementImpl(XSObject pParent,
XsTElement pBaseElement) |
Modifier and Type | Method and Description |
---|---|
XSAnnotation[] |
getAnnotations()
Returns the array of annotations.
|
java.lang.String |
getDefault()
Returns the elements "default" value or null, if no such
attribute is set.
|
java.lang.String |
getFixed()
Returns the elements "fixed" value or null, if no such
attribute is set.
|
XSIdentityConstraint[] |
getIdentityConstraints()
Fetch all of the identity constraints that this element places
upon its child tags.
|
XSKeyRef[] |
getKeyRefs()
Fetch all of the keyref's declared by this element.
|
XsQName |
getName()
Returns the elements name.
|
XSGroup |
getSubstitutionGroup()
If the element may be substituted by other elements (in other
words: if it is the head of a substitution group), returns the choice
group of all the elements that may be used to replace the element.
|
XsQName |
getSubstitutionGroupName()
Returns the name of an element, which may be substituted
by this element.
|
XSType |
getType()
Returns the elements type.
|
protected XsTElement |
getXsTElement() |
boolean |
isAbstract()
Returns whether the element is abstract or not.
|
boolean |
isBlockedForSubstitution()
Returns whether this element is blocked for substitution.
|
boolean |
isGlobal()
Returns whether the element is global or not.
|
protected boolean |
isInnerComplexType() |
protected boolean |
isInnerSimpleType() |
boolean |
isNillable()
Returns whether the element is nillable or not.
|
boolean |
isReference()
Returns, whether the element is created by referencing another element.
|
protected boolean |
isValidated() |
void |
setSubstitutionGroup(XSGroup pGroup)
If the element may be substituted by other elements (in other
words: if it is the head of a substitution group), sets the choice
group of all the elements that may be used to replace the element.
|
void |
validate()
Validates the objects internal state.
|
getOpenAttributes
getLocator, getParentObject, getXsObject, getXSSchema, isTopLevelObject, validateAllIn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOpenAttributes
getLocator, getParentObject, getXSSchema, isTopLevelObject
protected XSElementImpl(XSObject pParent, XsTElement pBaseElement) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected XsTElement getXsTElement()
public boolean isReference()
XSElement
isReference
in interface XSElement
protected boolean isInnerSimpleType()
protected boolean isInnerComplexType()
public boolean isGlobal()
XSElement
Returns whether the element is global or not.
public boolean isNillable()
XSElement
Returns whether the element is nillable or not.
isNillable
in interface XSElement
public XsQName getName()
XSElement
Returns the elements name. Note that, unlike types, an element always has a name.
public XSType getType()
XSElement
Returns the elements type.
protected boolean isValidated()
public void validate() throws org.xml.sax.SAXException
XSObject
Validates the objects internal state.
validate
in interface XSObject
validate
in class XSObjectImpl
org.xml.sax.SAXException
public XSAnnotation[] getAnnotations()
XSElement
Returns the array of annotations.
getAnnotations
in interface XSElement
public java.lang.String getDefault()
XSElement
Returns the elements "default" value or null, if no such attribute is set.
getDefault
in interface XSElement
public java.lang.String getFixed()
XSElement
Returns the elements "fixed" value or null, if no such attribute is set.
public XsQName getSubstitutionGroupName()
XSElement
Returns the name of an element, which may be substituted by this element.
getSubstitutionGroupName
in interface XSElement
public boolean isBlockedForSubstitution()
XSElement
Returns whether this element is blocked for substitution.
isBlockedForSubstitution
in interface XSElement
public boolean isAbstract()
XSElement
Returns whether the element is abstract or not.
isAbstract
in interface XSElement
public void setSubstitutionGroup(XSGroup pGroup)
XSElement
If the element may be substituted by other elements (in other words: if it is the head of a substitution group), sets the choice group of all the elements that may be used to replace the element. The element itself is part of the substitution group if, and only if, the element is not abstract.
setSubstitutionGroup
in interface XSElement
public XSGroup getSubstitutionGroup()
XSElement
If the element may be substituted by other elements (in other words: if it is the head of a substitution group), returns the choice group of all the elements that may be used to replace the element. The element itself is part of the substitution group if, and only if, the element is not abstract.
getSubstitutionGroup
in interface XSElement
public XSIdentityConstraint[] getIdentityConstraints()
XSElement
getIdentityConstraints
in interface XSElement
public XSKeyRef[] getKeyRefs()
XSElement
getKeyRefs
in interface XSElement