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.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 Object
onAnyString()
Object
onAttribute(AttributeExp exp)
Object
onChoice(ChoiceExp exp)
Object
onConcur(ConcurExp exp)
Object
onData(DataExp exp)
Object
onElement(ElementExp exp)
Object
onEpsilon()
Object
onInterleave(InterleaveExp exp)
Object
onList(ListExp exp)
Object
onMixed(MixedExp exp)
Object
onNullSet()
Object
onOneOrMore(OneOrMoreExp exp)
Object
onOther(OtherExp exp)
Object
onRef(ReferenceExp exp)
Object
onSequence(SequenceExp exp)
Object
onValue(ValueExp exp)
-
-
-
Constructor Detail
-
TREXSequencedStringChecker
public TREXSequencedStringChecker(TREXBaseReader reader, boolean _rejectTextInInterleave)
-
-
Method Detail
-
onRef
public Object onRef(ReferenceExp exp)
- Specified by:
onRef
in interfaceExpressionVisitor
-
onOther
public Object onOther(OtherExp exp)
- Specified by:
onOther
in interfaceExpressionVisitor
-
onInterleave
public Object onInterleave(InterleaveExp exp)
- Specified by:
onInterleave
in interfaceExpressionVisitor
-
onSequence
public Object onSequence(SequenceExp exp)
- Specified by:
onSequence
in interfaceExpressionVisitor
-
onEpsilon
public Object onEpsilon()
- Specified by:
onEpsilon
in interfaceExpressionVisitor
-
onNullSet
public Object onNullSet()
- Specified by:
onNullSet
in interfaceExpressionVisitor
-
onData
public Object onData(DataExp exp)
- Specified by:
onData
in interfaceExpressionVisitor
-
onValue
public Object onValue(ValueExp exp)
- Specified by:
onValue
in interfaceExpressionVisitor
-
onList
public Object onList(ListExp exp)
- Specified by:
onList
in interfaceExpressionVisitor
-
onAnyString
public Object onAnyString()
- Specified by:
onAnyString
in interfaceExpressionVisitor
-
onAttribute
public Object onAttribute(AttributeExp exp)
- Specified by:
onAttribute
in interfaceExpressionVisitor
-
onElement
public Object onElement(ElementExp exp)
- Specified by:
onElement
in interfaceExpressionVisitor
-
onChoice
public Object onChoice(ChoiceExp exp)
- Specified by:
onChoice
in interfaceExpressionVisitor
-
onConcur
public Object onConcur(ConcurExp exp)
- Specified by:
onConcur
in interfaceExpressionVisitor
-
onOneOrMore
public Object onOneOrMore(OneOrMoreExp exp)
- Specified by:
onOneOrMore
in interfaceExpressionVisitor
-
onMixed
public Object onMixed(MixedExp exp)
- Specified by:
onMixed
in interfaceExpressionVisitor
-
-