Package com.sun.msv.reader.trex
Class TREXSequencedStringChecker
java.lang.Object
com.sun.msv.reader.trex.TREXSequencedStringChecker
- All Implemented Interfaces:
ExpressionVisitor
makes sure that there is no sequenced string.
"sequenced string" is something like this.
abc
Also, TREX prohibits sequence of typed strings and elements.
In this checker, we introduce a function "f" that takes a string and computes the string-sensitivity of the pattern.
"f" returns 3 bits of information. One is whether it contains elements. Another is whehter it contains text. And the last is whether it contains DataExp/ValueExp.
"f" is computed recursively through the pattern.
- Author:
- Kohsuke KAWAGUCHI
-
Constructor Summary
ConstructorsConstructorDescriptionTREXSequencedStringChecker(TREXBaseReader reader, boolean _rejectTextInInterleave) -
Method Summary
Modifier and TypeMethodDescriptiononAttribute(AttributeExp exp) onElement(ElementExp exp) onOneOrMore(OneOrMoreExp exp) onRef(ReferenceExp exp) onSequence(SequenceExp exp)
-
Constructor Details
-
TREXSequencedStringChecker
-
-
Method Details
-
onRef
- Specified by:
onRefin interfaceExpressionVisitor
-
onOther
- Specified by:
onOtherin interfaceExpressionVisitor
-
onInterleave
- Specified by:
onInterleavein interfaceExpressionVisitor
-
onSequence
- Specified by:
onSequencein interfaceExpressionVisitor
-
onEpsilon
- Specified by:
onEpsilonin interfaceExpressionVisitor
-
onNullSet
- Specified by:
onNullSetin interfaceExpressionVisitor
-
onData
- Specified by:
onDatain interfaceExpressionVisitor
-
onValue
- Specified by:
onValuein interfaceExpressionVisitor
-
onList
- Specified by:
onListin interfaceExpressionVisitor
-
onAnyString
- Specified by:
onAnyStringin interfaceExpressionVisitor
-
onAttribute
- Specified by:
onAttributein interfaceExpressionVisitor
-
onElement
- Specified by:
onElementin interfaceExpressionVisitor
-
onChoice
- Specified by:
onChoicein interfaceExpressionVisitor
-
onConcur
- Specified by:
onConcurin interfaceExpressionVisitor
-
onOneOrMore
- Specified by:
onOneOrMorein interfaceExpressionVisitor
-
onMixed
- Specified by:
onMixedin interfaceExpressionVisitor
-