|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.xsom.impl.ComponentImpl
com.sun.xml.xsom.impl.ElementDecl
public class ElementDecl
| Field Summary |
|---|
| Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl |
|---|
ownerDocument |
| Constructor Summary | |
|---|---|
ElementDecl(PatcherManager reader,
SchemaDocumentImpl owner,
AnnotationImpl _annon,
Locator _loc,
ForeignAttributesImpl fa,
String _tns,
String _name,
boolean _anonymous,
XmlString _defv,
XmlString _fixedv,
boolean _nillable,
boolean _abstract,
Boolean _form,
Ref.Type _type,
Ref.Element _substHead,
int _substDisallowed,
int _substExcluded,
List<IdentityConstraintImpl> idConstraints)
|
|
| Method Summary | ||
|---|---|---|
protected void |
addSubstitutable(ElementDecl decl)
|
|
Object |
apply(XSFunction function)
Accepts a functor. |
|
Object |
apply(XSTermFunction function)
|
|
|
apply(XSTermFunctionWithParam<T,P> function,
P param)
|
|
XSElementDecl |
asElementDecl()
|
|
XSModelGroup |
asModelGroup()
|
|
XSModelGroupDecl |
asModelGroupDecl()
|
|
XSWildcard |
asWildcard()
|
|
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 XSIdentityConstraints in this element decl. |
|
String |
getName()
Gets the (local) name of the declaration. |
|
XSElementDecl |
getSubstAffiliation()
Gets the substitution head of this element, if any. |
|
Set<? extends XSElementDecl> |
getSubstitutables()
Returns the element declarations that can substitute this element. |
|
String |
getTargetNamespace()
Target namespace to which this component belongs. |
|
XSTerm |
getTerm()
Obtains a reference as a term. |
|
XSType |
getType()
Gets the type of this element declaration. |
|
boolean |
isAbstract()
|
|
boolean |
isAnonymous()
Deprecated. |
|
boolean |
isElementDecl()
|
|
boolean |
isGlobal()
Returns true if this declaration is a global declaration. |
|
boolean |
isLocal()
Returns true if this declaration is a local declaration. |
|
boolean |
isModelGroup()
|
|
boolean |
isModelGroupDecl()
|
|
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. |
|
boolean |
isWildcard()
|
|
XSElementDecl[] |
listSubstitutables()
Deprecated. |
|
void |
updateSubstitutabilityMap()
|
|
void |
visit(XSTermVisitor visitor)
|
|
void |
visit(XSVisitor visitor)
Accepts a visitor. |
|
| Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl |
|---|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.xml.xsom.XSDeclaration |
|---|
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal |
| Methods inherited from interface com.sun.xml.xsom.XSComponent |
|---|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle |
| Constructor Detail |
|---|
public ElementDecl(PatcherManager reader,
SchemaDocumentImpl owner,
AnnotationImpl _annon,
Locator _loc,
ForeignAttributesImpl fa,
String _tns,
String _name,
boolean _anonymous,
XmlString _defv,
XmlString _fixedv,
boolean _nillable,
boolean _abstract,
Boolean _form,
Ref.Type _type,
Ref.Element _substHead,
int _substDisallowed,
int _substExcluded,
List<IdentityConstraintImpl> idConstraints)
| Method Detail |
|---|
public XmlString getDefaultValue()
getDefaultValue in interface XSElementDeclpublic XmlString getFixedValue()
getFixedValue in interface XSElementDeclpublic boolean isNillable()
isNillable in interface XSElementDeclpublic boolean isAbstract()
isAbstract in interface XSElementDeclpublic XSType getType()
XSElementDecl
getType in interface XSElementDeclpublic XSElementDecl getSubstAffiliation()
XSElementDecl
getSubstAffiliation in interface XSElementDeclpublic boolean isSubstitutionDisallowed(int method)
XSElementDeclblock attribute
(plus blockDefault).
isSubstitutionDisallowed in interface XSElementDeclmethod - Possible values are XSType.EXTENSION,
XSType.RESTRICTION, or XSType.SUBSTITUTIONpublic boolean isSubstitutionExcluded(int method)
XSElementDeclfinal attribute
(plus finalDefault).
isSubstitutionExcluded in interface XSElementDeclmethod - Possible values are XSType.EXTENSION or
XSType.RESTRICTION.public List<XSIdentityConstraint> getIdentityConstraints()
XSElementDeclXSIdentityConstraints in this element decl.
getIdentityConstraints in interface XSElementDeclpublic Boolean getForm()
XSElementDecl
getForm in interface XSElementDeclpublic XSElementDecl[] listSubstitutables()
XSElementDeclIOW, this set returns all the element decls that satisfies the "Substitution Group OK" constraint.
listSubstitutables in interface XSElementDeclpublic Set<? extends XSElementDecl> getSubstitutables()
XSElementDeclIOW, 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.
getSubstitutables in interface XSElementDeclprotected void addSubstitutable(ElementDecl decl)
public void updateSubstitutabilityMap()
public boolean canBeSubstitutedBy(XSElementDecl e)
XSElementDeclJust a short cut of getSubstitutables().contain(e);
canBeSubstitutedBy in interface XSElementDeclpublic boolean isWildcard()
isWildcard in interface XSTermpublic boolean isModelGroupDecl()
isModelGroupDecl in interface XSTermpublic boolean isModelGroup()
isModelGroup in interface XSTermpublic boolean isElementDecl()
isElementDecl in interface XSTermpublic XSWildcard asWildcard()
asWildcard in interface XSTermpublic XSModelGroupDecl asModelGroupDecl()
asModelGroupDecl in interface XSTermpublic XSModelGroup asModelGroup()
asModelGroup in interface XSTermpublic XSElementDecl asElementDecl()
asElementDecl in interface XSTermpublic void visit(XSVisitor visitor)
XSComponent
visit in interface XSComponentpublic void visit(XSTermVisitor visitor)
visit in interface XSTermpublic Object apply(XSTermFunction function)
apply in interface XSTerm
public <T,P> T apply(XSTermFunctionWithParam<T,P> function,
P param)
apply in interface XSTermpublic Object apply(XSFunction function)
XSComponent
apply in interface XSComponentpublic XSTerm getTerm()
Ref.Term
getTerm in interface Ref.Termpublic String getName()
XSDeclaration
getName in interface XSDeclarationpublic String getTargetNamespace()
XSDeclaration"" is used to represent the default no namespace.
getTargetNamespace in interface XSDeclarationpublic boolean isAnonymous()
isAnonymous in interface XSDeclarationpublic final boolean isGlobal()
XSDeclaration
isGlobal in interface XSDeclarationpublic final boolean isLocal()
XSDeclaration!isGlobal()
isLocal in interface XSDeclaration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||