|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XSElementDecl
Element declaration.
Method Summary | |
---|---|
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. |
Methods inherited from interface com.sun.xml.xsom.XSDeclaration |
---|
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal |
Methods inherited from interface com.sun.xml.xsom.XSTerm |
---|
apply, apply, asElementDecl, asModelGroup, asModelGroupDecl, asWildcard, isElementDecl, isModelGroup, isModelGroupDecl, isWildcard, visit |
Methods inherited from interface com.sun.xml.xsom.XSComponent |
---|
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |