org.apache.ws.jaxme.xs.impl
Class XSElementImpl
- XSElement, XSObject, XSOpenAttrs
public class XSElementImpl
XSElementImpl
protected XSElementImpl(XSObject pParent,
XsTElement pBaseElement)
throws SAXException
getDefault
public String getDefault()
Returns the elements "default" value or null, if no such
attribute is set.
- getDefault in interface XSElement
getFixed
public String getFixed()
Returns the elements "fixed" value or null, if no such
attribute is set.
- getFixed in interface XSElement
getIdentityConstraints
public XSIdentityConstraint[] getIdentityConstraints()
Fetch all of the identity constraints that this element places
upon its child tags. Note that a single xs:unique or xs:key tag
may expand to several elements in this array depending on their
xpath fields.
- getIdentityConstraints in interface XSElement
getName
public XsQName getName()
Returns the elements name. Note that, unlike types,
an element always has a name.
- getName in interface XSElement
getSubstitutionGroup
public 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.
The element itself is part of the substitution group if, and only
if, the element is not abstract.
- getSubstitutionGroup in interface XSElement
isAbstract
public boolean isAbstract()
Returns whether the element is abstract or not.
- isAbstract in interface XSElement
isBlockedForSubstitution
public boolean isBlockedForSubstitution()
Returns whether this element is blocked for substitution.
- isBlockedForSubstitution in interface XSElement
isGlobal
public boolean isGlobal()
Returns whether the element is global or not.
- isGlobal in interface XSElement
isInnerComplexType
protected boolean isInnerComplexType()
isInnerSimpleType
protected boolean isInnerSimpleType()
isNillable
public boolean isNillable()
Returns whether the element is nillable or not.
- isNillable in interface XSElement
isReference
protected boolean isReference()
isValidated
protected boolean isValidated()
setSubstitutionGroup
public 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.
The element itself is part of the substitution group if, and only
if, the element is not abstract.
- setSubstitutionGroup in interface XSElement