Class ElementRule
java.lang.Object
com.sun.msv.grammar.Expression
com.sun.msv.grammar.ElementExp
com.sun.msv.grammar.relax.ElementRule
- All Implemented Interfaces:
NameClassAndExpression, Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ExpressionAttribute-free content modelfinal TagClauseconstraints over start tag of the elementprotected ElementRulesprivate static final longFields inherited from class ElementExp
contentModel, ignoreUndeclaredAttributesFields inherited from class Expression
anyString, epsilon, nullSet, verifierTag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal NameClassobtains a constraint over tag name.gets the parent ElementRules object.Methods inherited from class ElementExp
calcEpsilonReducibility, calcHashCode, equals, getContentModel, visit, visit, visit, visitMethods inherited from class Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit
-
Field Details
-
clause
constraints over start tag of the element -
attributeFreeContentModel
Attribute-free content model -
parent
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ElementRule
-
-
Method Details
-
getParent
gets the parent ElementRules object. when this object is used as a named, no-inline elementRule, this variable holds a reference to the parent ElementRules object. otherwise, null -
getNameClass
Description copied from class:ElementExpobtains 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.- Specified by:
getNameClassin interfaceNameClassAndExpression- Specified by:
getNameClassin classElementExp
-