| com.sun.xml.xsom.XSElementDecl
All known Subclasses: com.sun.xml.xsom.impl.ElementDecl,
XSElementDecl | public interface XSElementDecl extends XSDeclaration,XSTerm(Code) | | Element declaration.
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
canBeSubstitutedBy | boolean canBeSubstitutedBy(XSElementDecl e)(Code) | | Returns true if this element declaration can be validly substituted
by the given declaration.
Just a short cut of getSubstitutables().contain(e);
|
getSubstAffiliation | XSElementDecl getSubstAffiliation()(Code) | | Gets the substitution head of this element, if any.
Otherwise null.
|
getSubstitutables | Set<? extends XSElementDecl> getSubstitutables()(Code) | | Returns the element declarations that can substitute
this element.
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.
nun-null unmodifiable list.The returned list always contains this element decl itself. |
getType | XSType getType()(Code) | | Gets the type of this element declaration.
always non-null. |
isAbstract | boolean isAbstract()(Code) | | |
isNillable | boolean isNillable()(Code) | | |
isSubstitutionDisallowed | boolean isSubstitutionDisallowed(int method)(Code) | | Checks the diallowed substitution property of the schema component.
IOW, this checks the value of the block attribute
(plus blockDefault ).
Parameters: method - Possible values are XSType.EXTENSION,XSType.RESTRICTION , or XSType.SUBSTITUTION |
isSubstitutionExcluded | boolean isSubstitutionExcluded(int method)(Code) | | Checks the substitution excluded property of the schema component.
IOW, this checks the value of the final attribute
(plus finalDefault ).
Parameters: method - Possible values are XSType.EXTENSION orXSType.RESTRICTION . |
|
|