public interface XSElementDecl extends XSDeclaration, XSTerm
Modifier and Type | Method and Description |
---|---|
boolean |
canBeSubstitutedBy(XSElementDecl e)
Returns true if this element declaration can be validly substituted
by the given declaration.
|
XmlString |
getDefaultValue() |
XmlString |
getFixedValue() |
Boolean |
getForm()
Used for javadoc schema generation
|
List<XSIdentityConstraint> |
getIdentityConstraints()
Returns all the
XSIdentityConstraint s in this element decl. |
XSElementDecl |
getSubstAffiliation()
Gets the substitution head of this element, if any.
|
Set<? extends XSElementDecl> |
getSubstitutables()
Returns the element declarations that can substitute
this element.
|
XSType |
getType()
Gets the type of this element declaration.
|
boolean |
isAbstract() |
boolean |
isNillable() |
boolean |
isSubstitutionDisallowed(int method)
Checks the diallowed substitution property of the schema component.
|
boolean |
isSubstitutionExcluded(int method)
Checks the substitution excluded property of the schema component.
|
XSElementDecl[] |
listSubstitutables()
Deprecated.
this method allocates a new array every time, so it could be
inefficient when working with a large schema. Use
getSubstitutables() instead. |
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
apply, apply, asElementDecl, asModelGroup, asModelGroupDecl, asWildcard, isElementDecl, isModelGroup, isModelGroupDecl, isWildcard, visit
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
XSType getType()
boolean isNillable()
XSElementDecl getSubstAffiliation()
List<XSIdentityConstraint> getIdentityConstraints()
XSIdentityConstraint
s in this element decl.boolean isSubstitutionExcluded(int method)
final
attribute
(plus finalDefault
).method
- Possible values are XSType.EXTENSION
or
XSType.RESTRICTION
.boolean isSubstitutionDisallowed(int method)
block
attribute
(plus blockDefault
).method
- Possible values are XSType.EXTENSION
,
XSType.RESTRICTION
, or XSType.SUBSTITUTION
boolean isAbstract()
XSElementDecl[] listSubstitutables()
getSubstitutables()
instead.IOW, this set returns all the element decls that satisfies the "Substitution Group OK" constraint.
Set<? extends XSElementDecl> getSubstitutables()
IOW, this set returns all the element decls that satisfies the "Substitution Group OK" constraint.
Note that the above clause does NOT check for abstract elements. So abstract elements may still show up in the returned set.
boolean canBeSubstitutedBy(XSElementDecl e)
Just a short cut of getSubstitutables().contain(e);
XmlString getDefaultValue()
XmlString getFixedValue()
Boolean getForm()
Copyright © 2021 JBoss by Red Hat. All rights reserved.