Package com.sun.msv.reader.trex
Class TREXSequencedStringChecker
- java.lang.Object
-
- com.sun.msv.reader.trex.TREXSequencedStringChecker
-
- All Implemented Interfaces:
ExpressionVisitor
public class TREXSequencedStringChecker extends Object implements ExpressionVisitor
makes sure that there is no sequenced string. "sequenced string" is something like this. Also, TREX prohibits sequence of typed strings and elements.abc 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
Constructors Constructor Description TREXSequencedStringChecker(TREXBaseReader reader, boolean _rejectTextInInterleave)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectonAnyString()ObjectonAttribute(AttributeExp exp)ObjectonChoice(ChoiceExp exp)ObjectonConcur(ConcurExp exp)ObjectonData(DataExp exp)ObjectonElement(ElementExp exp)ObjectonEpsilon()ObjectonInterleave(InterleaveExp exp)ObjectonList(ListExp exp)ObjectonMixed(MixedExp exp)ObjectonNullSet()ObjectonOneOrMore(OneOrMoreExp exp)ObjectonOther(OtherExp exp)ObjectonRef(ReferenceExp exp)ObjectonSequence(SequenceExp exp)ObjectonValue(ValueExp exp)
-
-
-
Constructor Detail
-
TREXSequencedStringChecker
public TREXSequencedStringChecker(TREXBaseReader reader, boolean _rejectTextInInterleave)
-
-
Method Detail
-
onRef
public Object onRef(ReferenceExp exp)
- Specified by:
onRefin interfaceExpressionVisitor
-
onOther
public Object onOther(OtherExp exp)
- Specified by:
onOtherin interfaceExpressionVisitor
-
onInterleave
public Object onInterleave(InterleaveExp exp)
- Specified by:
onInterleavein interfaceExpressionVisitor
-
onSequence
public Object onSequence(SequenceExp exp)
- Specified by:
onSequencein interfaceExpressionVisitor
-
onEpsilon
public Object onEpsilon()
- Specified by:
onEpsilonin interfaceExpressionVisitor
-
onNullSet
public Object onNullSet()
- Specified by:
onNullSetin interfaceExpressionVisitor
-
onData
public Object onData(DataExp exp)
- Specified by:
onDatain interfaceExpressionVisitor
-
onValue
public Object onValue(ValueExp exp)
- Specified by:
onValuein interfaceExpressionVisitor
-
onList
public Object onList(ListExp exp)
- Specified by:
onListin interfaceExpressionVisitor
-
onAnyString
public Object onAnyString()
- Specified by:
onAnyStringin interfaceExpressionVisitor
-
onAttribute
public Object onAttribute(AttributeExp exp)
- Specified by:
onAttributein interfaceExpressionVisitor
-
onElement
public Object onElement(ElementExp exp)
- Specified by:
onElementin interfaceExpressionVisitor
-
onChoice
public Object onChoice(ChoiceExp exp)
- Specified by:
onChoicein interfaceExpressionVisitor
-
onConcur
public Object onConcur(ConcurExp exp)
- Specified by:
onConcurin interfaceExpressionVisitor
-
onOneOrMore
public Object onOneOrMore(OneOrMoreExp exp)
- Specified by:
onOneOrMorein interfaceExpressionVisitor
-
onMixed
public Object onMixed(MixedExp exp)
- Specified by:
onMixedin interfaceExpressionVisitor
-
-