com.sun.msv.grammar.relax
Class ElementRules

java.lang.Object
  |
  +--com.sun.msv.grammar.Expression
        |
        +--com.sun.msv.grammar.ReferenceExp
              |
              +--com.sun.msv.grammar.relax.ElementRules
All Implemented Interfaces:
Exportable, Serializable

public class ElementRules
extends ReferenceExp
implements Exportable

Set of ElementRule objects that share the label name. ReferenceExp.exp contains choice of ElementRule objects.

Author:
Kohsuke KAWAGUCHI
See Also:
Serialized Form

Field Summary
 boolean exported
          a flag that indicates this elementRule is exported and therefore accessible from other modules.
 RELAXModule ownerModule
          RELAXModule object to which this object belongs
 
Fields inherited from class com.sun.msv.grammar.ReferenceExp
exp, name
 
Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
 
Method Summary
 void addElementRule(ExpressionPool pool, ElementRule newRule)
           
 boolean equals(Object o)
           
 boolean isExported()
           
 Object visit(RELAXExpressionVisitor visitor)
           
 boolean visit(RELAXExpressionVisitorBoolean visitor)
           
 Expression visit(RELAXExpressionVisitorExpression visitor)
           
 void visit(RELAXExpressionVisitorVoid visitor)
           
 
Methods inherited from class com.sun.msv.grammar.ReferenceExp
isDefined, visit, visit, visit, visit
 
Methods inherited from class com.sun.msv.grammar.Expression
hashCode, isEpsilonReducible
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exported

public boolean exported
a flag that indicates this elementRule is exported and therefore accessible from other modules.

ownerModule

public final RELAXModule ownerModule
RELAXModule object to which this object belongs
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class ReferenceExp

addElementRule

public void addElementRule(ExpressionPool pool,
                           ElementRule newRule)

visit

public Object visit(RELAXExpressionVisitor visitor)
Overrides:
visit in class Expression

visit

public Expression visit(RELAXExpressionVisitorExpression visitor)
Overrides:
visit in class Expression

visit

public boolean visit(RELAXExpressionVisitorBoolean visitor)
Overrides:
visit in class Expression

visit

public void visit(RELAXExpressionVisitorVoid visitor)
Overrides:
visit in class Expression

isExported

public boolean isExported()
Specified by:
isExported in interface Exportable