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:
onRef
in interfaceExpressionVisitor
-
onOther
- Specified by:
onOther
in interfaceExpressionVisitor
-
onInterleave
- Specified by:
onInterleave
in interfaceExpressionVisitor
-
onSequence
- Specified by:
onSequence
in interfaceExpressionVisitor
-
onEpsilon
- Specified by:
onEpsilon
in interfaceExpressionVisitor
-
onNullSet
- Specified by:
onNullSet
in interfaceExpressionVisitor
-
onData
- Specified by:
onData
in interfaceExpressionVisitor
-
onValue
- Specified by:
onValue
in interfaceExpressionVisitor
-
onList
- Specified by:
onList
in interfaceExpressionVisitor
-
onAnyString
- Specified by:
onAnyString
in interfaceExpressionVisitor
-
onAttribute
- Specified by:
onAttribute
in interfaceExpressionVisitor
-
onElement
- Specified by:
onElement
in interfaceExpressionVisitor
-
onChoice
- Specified by:
onChoice
in interfaceExpressionVisitor
-
onConcur
- Specified by:
onConcur
in interfaceExpressionVisitor
-
onOneOrMore
- Specified by:
onOneOrMore
in interfaceExpressionVisitor
-
onMixed
- Specified by:
onMixed
in interfaceExpressionVisitor
-