Class ExportedHedgeRuleChecker
java.lang.Object
com.sun.msv.reader.relax.core.checker.ExportedHedgeRuleChecker
- All Implemented Interfaces:
ExpressionVisitorBoolean, RELAXExpressionVisitorBoolean
the purpose of this function object is to make sure
that the expression does not contain references to modules
other than one specified by this variable.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanonAttPool(AttPoolClause exp) booleanonAttribute(AttributeExp exp) booleanbooleanbooleanbooleanonElement(ElementExp exp) booleanbooleanbooleanonHedgeRules(HedgeRules exp) booleanbooleanbooleanbooleanbooleanonOneOrMore(OneOrMoreExp exp) booleanbooleanonRef(ReferenceExp exp) booleanonSequence(SequenceExp exp) booleanbooleanprivate voidtakeSnapshot(ReferenceExp lastExp) takes a snap shot of traversal to this.errorSnapshot so that the user will know what references cause this problem.
-
Field Details
-
module
-
traversalStack
traversal stack. This object keeps track of how hedgeRules are visited so that detailed error message can be provided when an error is found. Say if you start from hr1, hr1 refers hr2, hr2 refers hr3, and hr3 has a reference to the other module, this stack is {hr1,hr2,hr3} when an error is found. -
errorSnapshot
-
-
Constructor Details
-
ExportedHedgeRuleChecker
-
-
Method Details
-
onAttribute
- Specified by:
onAttributein interfaceExpressionVisitorBoolean
-
onChoice
- Specified by:
onChoicein interfaceExpressionVisitorBoolean
-
onSequence
- Specified by:
onSequencein interfaceExpressionVisitorBoolean
-
onElement
- Specified by:
onElementin interfaceExpressionVisitorBoolean
-
onOneOrMore
- Specified by:
onOneOrMorein interfaceExpressionVisitorBoolean
-
onMixed
- Specified by:
onMixedin interfaceExpressionVisitorBoolean
-
onRef
- Specified by:
onRefin interfaceExpressionVisitorBoolean
-
onOther
- Specified by:
onOtherin interfaceExpressionVisitorBoolean
-
onEpsilon
public boolean onEpsilon()- Specified by:
onEpsilonin interfaceExpressionVisitorBoolean
-
onNullSet
public boolean onNullSet()- Specified by:
onNullSetin interfaceExpressionVisitorBoolean
-
onAnyString
public boolean onAnyString()- Specified by:
onAnyStringin interfaceExpressionVisitorBoolean
-
onData
- Specified by:
onDatain interfaceExpressionVisitorBoolean
-
onValue
- Specified by:
onValuein interfaceExpressionVisitorBoolean
-
onAttPool
- Specified by:
onAttPoolin interfaceRELAXExpressionVisitorBoolean
-
onTag
- Specified by:
onTagin interfaceRELAXExpressionVisitorBoolean
-
onInterleave
- Specified by:
onInterleavein interfaceExpressionVisitorBoolean
-
onConcur
- Specified by:
onConcurin interfaceExpressionVisitorBoolean
-
onList
- Specified by:
onListin interfaceExpressionVisitorBoolean
-
onElementRules
- Specified by:
onElementRulesin interfaceRELAXExpressionVisitorBoolean
-
onHedgeRules
- Specified by:
onHedgeRulesin interfaceRELAXExpressionVisitorBoolean
-
takeSnapshot
takes a snap shot of traversal to this.errorSnapshot so that the user will know what references cause this problem.
-