com.sun.msv.grammar
Class ElementExp
- NameClassAndExpression, Serializable
public abstract class ElementExp
Element declaration.
For RELAX, this is a base implementation of 'elementRule' declaration.
For TREX, this is a base implementation of 'element' pattern.
Each grammar must/can provide only one concrete implementation.
Therefore, they cannot override visit method.
This class can be extended.
equals , getExpandedExp , hashCode , isEpsilonReducible , peelOccurence , visit , visit , visit , visit , visit , visit , visit , visit |
contentModel
public Expression contentModel
content model of this element declaration.
ignoreUndeclaredAttributes
public boolean ignoreUndeclaredAttributes
a flag that indicates undeclared attributes should be ignored.
ElementExp
public ElementExp(Expression contentModel,
boolean ignoreUndeclaredAttributes)
getNameClass
public abstract NameClass getNameClass()
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.
- getNameClass in interface NameClassAndExpression