com.sun.msv.verifier.regexp
Class ElementsOfConcernCollector
java.lang.Object
|
+--com.sun.msv.verifier.regexp.ElementsOfConcernCollector
- All Implemented Interfaces:
- ExpressionVisitor
- public class ElementsOfConcernCollector
- extends Object
- implements ExpressionVisitor
Collects "elements of concern".
"Elements of concern" are ElementExps that are possibly applicable to
the next element. These gathered element declarations are then tested against
next XML element.
- Author:
- Kohsuke KAWAGUCHI
ElementsOfConcernCollector
public ElementsOfConcernCollector()
collect
public final void collect(Expression exp,
Collection result)
onAttribute
public final Object onAttribute(AttributeExp exp)
- Specified by:
onAttribute
in interface ExpressionVisitor
onChoice
public final Object onChoice(ChoiceExp exp)
- Specified by:
onChoice
in interface ExpressionVisitor
onElement
public final Object onElement(ElementExp exp)
- Specified by:
onElement
in interface ExpressionVisitor
onOneOrMore
public final Object onOneOrMore(OneOrMoreExp exp)
- Specified by:
onOneOrMore
in interface ExpressionVisitor
onMixed
public final Object onMixed(MixedExp exp)
- Specified by:
onMixed
in interface ExpressionVisitor
onEpsilon
public final Object onEpsilon()
- Specified by:
onEpsilon
in interface ExpressionVisitor
onNullSet
public final Object onNullSet()
- Specified by:
onNullSet
in interface ExpressionVisitor
onAnyString
public final Object onAnyString()
- Specified by:
onAnyString
in interface ExpressionVisitor
onTypedString
public final Object onTypedString(TypedStringExp exp)
- Specified by:
onTypedString
in interface ExpressionVisitor
onList
public final Object onList(ListExp exp)
- Specified by:
onList
in interface ExpressionVisitor
onKey
public final Object onKey(KeyExp exp)
- Specified by:
onKey
in interface ExpressionVisitor
onRef
public final Object onRef(ReferenceExp exp)
- Specified by:
onRef
in interface ExpressionVisitor
onOther
public final Object onOther(OtherExp exp)
- Specified by:
onOther
in interface ExpressionVisitor
onSequence
public final Object onSequence(SequenceExp exp)
- Specified by:
onSequence
in interface ExpressionVisitor
onConcur
public final Object onConcur(ConcurExp exp)
- Specified by:
onConcur
in interface ExpressionVisitor
onInterleave
public final Object onInterleave(InterleaveExp exp)
- Specified by:
onInterleave
in interface ExpressionVisitor