com.sun.msv.grammar.xmlschema
Class ElementDeclExp
- Serializable
public class ElementDeclExp
Element declaration.
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.
Element Declaration Schema Component Properties
This table shows the mapping between
"element declaration schema component properties"
(which is defined in the spec) and corresponding method/field of this class.
Abstractness
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.
equals , getExpandedExp , hashCode , isEpsilonReducible , peelOccurence , visit , visit , visit , visit , visit , visit , visit , visit |
ALL
public static final int ALL
EXTENSION
public static final int EXTENSION
RESTRICTION
public static final int RESTRICTION
SUBSTITUTION
public static final int SUBSTITUTION
body
public final ReferenceExp body
The expression that represents the "body" of this expression.
Usually, this refers to XSElementExp, but not necessarily.
finalValue
public int finalValue
isNillable
public boolean isNillable
parent
public final XMLSchemaSchema parent
parent XMLSchemaSchema object to which this object belongs.
substitutions
public final ReferenceExp substitutions
choices of all elements that can validly substitute this element.
ElementDeclExp
public ElementDeclExp(XMLSchemaSchema schema,
String typeLocalName)
getContentModel
public Expression getContentModel()
gets the pattern that represents the content model of
this element declaration.
This method is just a short cut for self.contentModel
.
getTargetNamespace
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
parent.targetNamespace
.
isAbstract
public boolean isAbstract()
checks if this element declaration is abstract.
- true if this method is abstract.
isGlobal
public boolean isGlobal()
- true if this component is global.
false if this component is local.
isRestrictionBlocked
public boolean isRestrictionBlocked()
isSubstitutionBlocked
public boolean isSubstitutionBlocked()
setAbstract
public void setAbstract(boolean isAbstract)