the inherited exp field holds an expression that also matches to substituted element declarations.
The body field contains an expression that matches
only to this element declaration without no substituted element decls.
This table shows the mapping between "element declaration schema component properties" (which is defined in the spec) and corresponding method/field of this class.
| Property of the spec | method/field of this class |
| name |
The name field.
|
| target namespace |
the getTargetNamespace() method.
|
| type definition |
getTypeDefinition() method.
|
| scope | To be implemented |
| value constraint |
To be implemented. Accessible through the body field.
|
| nillable |
the isNillable field.
|
| identity constraints |
The identityConstraints field of the XSElementExp,
which in turn can be obtained throught the body field.
|
| substitution group affiliation |
The substitutionAffiliation field.
|
| substitution group exclusion |
The finalValue field.
|
| disallowed substitution |
The block field.
|
| abstract |
the isAbstract() method.
|
| annotation | Unaccessible. This information is removed during the parsing phase. |
The exp field and the self field are very similar.
In fact, the only difference is that the former is affected by the abstract
property, while the latter isn't.
So if it has to be affected by the
abstract property (like referencing a complex type as the element body),
you should use the exp field.
If you don't want to be affected by the abstract property
(like referencing a complex type as the base type of another complex type),
then you should refer to the body field.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ElementDeclExp.XSElementExp
XML Schema version of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public int | block
The disallowed substitution property of this schema component, implemented as a bit field. |
| public final ReferenceExp | body
The expression that represents the "body" of this expression. |
| private ElementDeclExp. | |
| public static final int | |
| public int | finalValue
The substitution group exclusions property of this schema component, implemented as a bit field. |
| public boolean | isNillable
gets the nillable property of this component as specified in the spec. |
| public final XMLSchemaSchema | parent
parent XMLSchemaSchema object to which this object belongs. |
| public static final int | |
| private static final long | |
| public static final int | |
| public ElementDeclExp | substitutionAffiliation
The substitution group affiliation property of this component, if any. |
| public final ReferenceExp | substitutions
choices of all elements that can validly substitute this element. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Expression | |
| public ElementDeclExp. | |
| public final String | |
| public XMLSchemaTypeExp | |
| public boolean | Returns: true if this method is abstract.checks if this element declaration is abstract. |
| public boolean | isDefined()
Overrides com. |
| public boolean | Returns: true if this component is global. false if this component is local.gets the scope property of this component as specified in the spec. |
| public boolean | |
| public boolean | |
| public void | |
| public void |
| ALL | back to summary |
|---|---|
| public static final int ALL | |
| block | back to summary |
|---|---|
| public int block The disallowed substitution property of this schema component, implemented as a bit field. a bit-wise OR of RESTRICTION, EXTENSION, and SUBSTITUTION. | |
| body | back to summary |
|---|---|
| public final ReferenceExp body The expression that represents the "body" of this expression. Usually, this refers to XSElementExp, but not necessarily. | |
| element | back to summary |
|---|---|
| private ElementDeclExp. | |
| EXTENSION | back to summary |
|---|---|
| public static final int EXTENSION | |
| finalValue | back to summary |
|---|---|
| public int finalValue The substitution group exclusions property of this schema component, implemented as a bit field. a bit-wise OR of RESTRICTION and EXTENSION. | |
| isNillable | back to summary |
|---|---|
| public boolean isNillable gets the nillable property of this component as specified in the spec. | |
| parent | back to summary |
|---|---|
| public final XMLSchemaSchema parent parent XMLSchemaSchema object to which this object belongs. | |
| RESTRICTION | back to summary |
|---|---|
| public static final int RESTRICTION | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SUBSTITUTION | back to summary |
|---|---|
| public static final int SUBSTITUTION | |
| substitutionAffiliation | back to summary |
|---|---|
| public ElementDeclExp substitutionAffiliation The substitution group affiliation property of this component, if any. Otherwise null. | |
| substitutions | back to summary |
|---|---|
| public final ReferenceExp substitutions choices of all elements that can validly substitute this element. | |
| ElementDeclExp | back to summary |
|---|---|
| public ElementDeclExp(XMLSchemaSchema schema, String typeLocalName) | |
| getContentModel | back to summary |
|---|---|
| public Expression getContentModel() gets the pattern that represents the content model of
this element declaration.
This method is just a short cut for | |
| getElementExp | back to summary |
|---|---|
| public ElementDeclExp. | |
| getTargetNamespace | back to summary |
|---|---|
| public final String getTargetNamespace() gets the target namespace property of this component as specified in the spec. If the property is absent, then this method returns the empty string.
This method is just a shortcut for | |
| getTypeDefinition | back to summary |
|---|---|
| public XMLSchemaTypeExp getTypeDefinition() gets the type definition property of this schema component. | |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() checks if this element declaration is abstract.
| |
| isDefined | back to summary |
|---|---|
| public boolean isDefined() Overrides com. Doc from com. checks if this ReferenceExp is properly defined. this method is used to detect undeclared definitions. Derived classes can override this method. | |
| isGlobal | back to summary |
|---|---|
| public boolean isGlobal() gets the scope property of this component as specified in the spec.
| |
| isRestrictionBlocked | back to summary |
|---|---|
| public boolean isRestrictionBlocked() | |
| isSubstitutionBlocked | back to summary |
|---|---|
| public boolean isSubstitutionBlocked() | |
| setAbstract | back to summary |
|---|---|
| public void setAbstract(boolean isAbstract) | |
| setElementExp | back to summary |
|---|---|
| public void setElementExp(ElementDeclExp. | |
ElementExp.
| Modifier and Type | Field and Description |
|---|---|
| public final String | |
| public final SimpleNameClass | |
| public final Vector | identityConstraints
identity constraints associated to this declaration. |
| public final ElementDeclExp |
| Access | Constructor and Description |
|---|---|
| public | XSElementExp(ElementDeclExp parent, SimpleNameClass elementName, Expression contentModel, String defaultValue)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final NameClass | getNameClass()
Implements abstract com. Implements com. |
| defaultValue | back to summary |
|---|---|
| public final String defaultValue | |
| elementName | back to summary |
|---|---|
| public final SimpleNameClass elementName | |
| identityConstraints | back to summary |
|---|---|
| public final Vector<Object> identityConstraints identity constraints associated to this declaration.
When no constraint exists, this field may be null (or empty vector).
Items are of derived types of These identity constraints are not enforced by the default Verifier implementation. | |
| parent | back to summary |
|---|---|
| public final ElementDeclExp parent | |
| XSElementExp | back to summary |
|---|---|
| public XSElementExp(ElementDeclExp parent, SimpleNameClass elementName, Expression contentModel, String defaultValue) | |
| XSElementExp | back to summary |
|---|---|
| public XSElementExp(ElementDeclExp parent, SimpleNameClass elementName, Expression contentModel) | |
| getNameClass | back to summary |
|---|---|
| public final NameClass getNameClass() Implements abstract com. Implements com. Doc from com. obtains a constraint over tag name. ElementExp is cannot be shared because NameClass has to be mutable to absorb the difference of RELAX and TREX. In case of TREX, name class will be determined when parsing ElementExp itself. Thus effectively it's immutable. In case of RELAX, name class will be determined when its corresponding Clause object is parsed. | |