Package com.sun.msv.grammar.relax
Class HedgeRules
- java.lang.Object
-
- com.sun.msv.grammar.Expression
-
- com.sun.msv.grammar.ReferenceExp
-
- com.sun.msv.grammar.relax.HedgeRules
-
- All Implemented Interfaces:
Exportable
,java.io.Serializable
public class HedgeRules extends ReferenceExp implements Exportable
hedgeRule of RELAX module. ReferenceExp.exp holds a choice of the content models of all hedgeRules that share the same label name.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description boolean
exported
a flag that indicates this hedgeRule is exported and therefore accessible from other modules.RELAXModule
ownerModule
RELAXModule object to which this object belongsprivate static long
serialVersionUID
-
Fields inherited from class com.sun.msv.grammar.ReferenceExp
exp, name
-
Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HedgeRules(java.lang.String label, RELAXModule ownerModule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHedge(Expression exp, ExpressionPool pool)
boolean
equals(java.lang.Object o)
boolean
isExported()
java.lang.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
calcEpsilonReducibility, calcHashCode, isDefined, visit, visit, visit, visit
-
Methods inherited from class com.sun.msv.grammar.Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve
-
-
-
-
Field Detail
-
exported
public boolean exported
a flag that indicates this hedgeRule is exported and therefore accessible from other modules.
-
ownerModule
public final RELAXModule ownerModule
RELAXModule object to which this object belongs
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HedgeRules
protected HedgeRules(java.lang.String label, RELAXModule ownerModule)
-
-
Method Detail
-
addHedge
public void addHedge(Expression exp, ExpressionPool pool)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classReferenceExp
-
visit
public java.lang.Object visit(RELAXExpressionVisitor visitor)
- Overrides:
visit
in classExpression
-
visit
public Expression visit(RELAXExpressionVisitorExpression visitor)
- Overrides:
visit
in classExpression
-
visit
public boolean visit(RELAXExpressionVisitorBoolean visitor)
- Overrides:
visit
in classExpression
-
visit
public void visit(RELAXExpressionVisitorVoid visitor)
- Overrides:
visit
in classExpression
-
isExported
public boolean isExported()
- Specified by:
isExported
in interfaceExportable
-
-