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.
|
getOpenAttributesgetLocator, getParentObject, getXsObject, getXSSchema, isTopLevelObject, validateAllInclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOpenAttributesgetLocator, getParentObject, getXSSchema, isTopLevelObjectprotected XSElementImpl(XSObject pParent, XsTElement pBaseElement) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected XsTElement getXsTElement()
public boolean isReference()
XSElementisReference in interface XSElementprotected boolean isInnerSimpleType()
protected boolean isInnerComplexType()
public boolean isGlobal()
XSElementReturns whether the element is global or not.
public boolean isNillable()
XSElementReturns whether the element is nillable or not.
isNillable in interface XSElementpublic XsQName getName()
XSElementReturns the elements name. Note that, unlike types, an element always has a name.
public XSType getType()
XSElementReturns the elements type.
protected boolean isValidated()
public void validate()
throws org.xml.sax.SAXException
XSObjectValidates the objects internal state.
validate in interface XSObjectvalidate in class XSObjectImplorg.xml.sax.SAXExceptionpublic XSAnnotation[] getAnnotations()
XSElementReturns the array of annotations.
getAnnotations in interface XSElementpublic java.lang.String getDefault()
XSElementReturns the elements "default" value or null, if no such attribute is set.
getDefault in interface XSElementpublic java.lang.String getFixed()
XSElementReturns the elements "fixed" value or null, if no such attribute is set.
public XsQName getSubstitutionGroupName()
XSElementReturns the name of an element, which may be substituted by this element.
getSubstitutionGroupName in interface XSElementpublic boolean isBlockedForSubstitution()
XSElementReturns whether this element is blocked for substitution.
isBlockedForSubstitution in interface XSElementpublic boolean isAbstract()
XSElementReturns whether the element is abstract or not.
isAbstract in interface XSElementpublic void setSubstitutionGroup(XSGroup pGroup)
XSElementIf 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 XSElementpublic XSGroup getSubstitutionGroup()
XSElementIf 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 XSElementpublic XSIdentityConstraint[] getIdentityConstraints()
XSElementgetIdentityConstraints in interface XSElementpublic XSKeyRef[] getKeyRefs()
XSElementgetKeyRefs in interface XSElement