Top Description Fields Constructors Methods
com.sun.msv.grammar.relax

public Class ElementRule

extends ElementExp
Class Inheritance
Imports
com.sun.msv.grammar.ElementExp, .Expression, .ExpressionPool, .NameClass

ElementRule declaration of RELAX.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
public final Expression
attributeFreeContentModel

Attribute-free content model

public final TagClause
clause

constraints over start tag of the element

protected ElementRules
private static final long
Inherited from com.sun.msv.grammar.ElementExp:
contentModelignoreUndeclaredAttributes

Constructor Summary

AccessConstructor and Description
public
ElementRule(ExpressionPool pool, TagClause clause, Expression contentModel)

Method Summary

Modifier and TypeMethod and Description
public final NameClass
public ElementRules
getParent()

gets the parent ElementRules object.

Inherited from com.sun.msv.grammar.ElementExp:
calcEpsilonReducibilitycalcHashCodeequalsgetContentModelvisitvisitvisitvisit

Field Detail

attributeFreeContentModelback to summary
public final Expression attributeFreeContentModel

Attribute-free content model

clauseback to summary
public final TagClause clause

constraints over start tag of the element

parentback to summary
protected ElementRules parent
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.msv.grammar.ElementExp.serialVersionUID.

Constructor Detail

ElementRuleback to summary
public ElementRule(ExpressionPool pool, TagClause clause, Expression contentModel)

Method Detail

getNameClassback to summary
public final NameClass getNameClass()

Implements abstract com.sun.msv.grammar.ElementExp.getNameClass.

Implements com.sun.msv.grammar.NameClassAndExpression.getNameClass.

Doc from com.sun.msv.grammar.ElementExp.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.

getParentback to summary
public ElementRules 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