public final class ExportedHedgeRuleChecker extends java.lang.Object implements RELAXExpressionVisitorBoolean
Modifier and Type | Field and Description |
---|---|
ReferenceExp[] |
errorSnapshot |
private RELAXModule |
module |
private java.util.Stack |
traversalStack
traversal stack.
|
Constructor and Description |
---|
ExportedHedgeRuleChecker(RELAXModule module) |
Modifier and Type | Method and Description |
---|---|
boolean |
onAnyString() |
boolean |
onAttPool(AttPoolClause exp) |
boolean |
onAttribute(AttributeExp exp) |
boolean |
onChoice(ChoiceExp exp) |
boolean |
onConcur(ConcurExp exp) |
boolean |
onData(DataExp exp) |
boolean |
onElement(ElementExp exp) |
boolean |
onElementRules(ElementRules exp) |
boolean |
onEpsilon() |
boolean |
onHedgeRules(HedgeRules exp) |
boolean |
onInterleave(InterleaveExp exp) |
boolean |
onList(ListExp exp) |
boolean |
onMixed(MixedExp exp) |
boolean |
onNullSet() |
boolean |
onOneOrMore(OneOrMoreExp exp) |
boolean |
onOther(OtherExp exp) |
boolean |
onRef(ReferenceExp exp) |
boolean |
onSequence(SequenceExp exp) |
boolean |
onTag(TagClause exp) |
boolean |
onValue(ValueExp exp) |
private void |
takeSnapshot(ReferenceExp lastExp)
takes a snap shot of traversal to this.errorSnapshot
so that the user will know what references cause this problem.
|
private final RELAXModule module
private final java.util.Stack traversalStack
public ReferenceExp[] errorSnapshot
public ExportedHedgeRuleChecker(RELAXModule module)
public boolean onAttribute(AttributeExp exp)
onAttribute
in interface ExpressionVisitorBoolean
public boolean onChoice(ChoiceExp exp)
onChoice
in interface ExpressionVisitorBoolean
public boolean onSequence(SequenceExp exp)
onSequence
in interface ExpressionVisitorBoolean
public boolean onElement(ElementExp exp)
onElement
in interface ExpressionVisitorBoolean
public boolean onOneOrMore(OneOrMoreExp exp)
onOneOrMore
in interface ExpressionVisitorBoolean
public boolean onMixed(MixedExp exp)
onMixed
in interface ExpressionVisitorBoolean
public boolean onRef(ReferenceExp exp)
onRef
in interface ExpressionVisitorBoolean
public boolean onOther(OtherExp exp)
onOther
in interface ExpressionVisitorBoolean
public boolean onEpsilon()
onEpsilon
in interface ExpressionVisitorBoolean
public boolean onNullSet()
onNullSet
in interface ExpressionVisitorBoolean
public boolean onAnyString()
onAnyString
in interface ExpressionVisitorBoolean
public boolean onData(DataExp exp)
onData
in interface ExpressionVisitorBoolean
public boolean onValue(ValueExp exp)
onValue
in interface ExpressionVisitorBoolean
public boolean onAttPool(AttPoolClause exp)
onAttPool
in interface RELAXExpressionVisitorBoolean
public boolean onTag(TagClause exp)
onTag
in interface RELAXExpressionVisitorBoolean
public boolean onInterleave(InterleaveExp exp)
onInterleave
in interface ExpressionVisitorBoolean
public boolean onConcur(ConcurExp exp)
onConcur
in interface ExpressionVisitorBoolean
public boolean onList(ListExp exp)
onList
in interface ExpressionVisitorBoolean
public boolean onElementRules(ElementRules exp)
onElementRules
in interface RELAXExpressionVisitorBoolean
public boolean onHedgeRules(HedgeRules exp)
onHedgeRules
in interface RELAXExpressionVisitorBoolean
private void takeSnapshot(ReferenceExp lastExp)