01: package org.kohsuke.rngom.binary.visitor;
02:
03: import org.kohsuke.rngom.binary.AfterPattern;
04: import org.kohsuke.rngom.binary.AttributePattern;
05: import org.kohsuke.rngom.binary.ChoicePattern;
06: import org.kohsuke.rngom.binary.DataExceptPattern;
07: import org.kohsuke.rngom.binary.DataPattern;
08: import org.kohsuke.rngom.binary.ElementPattern;
09: import org.kohsuke.rngom.binary.EmptyPattern;
10: import org.kohsuke.rngom.binary.ErrorPattern;
11: import org.kohsuke.rngom.binary.GroupPattern;
12: import org.kohsuke.rngom.binary.InterleavePattern;
13: import org.kohsuke.rngom.binary.ListPattern;
14: import org.kohsuke.rngom.binary.NotAllowedPattern;
15: import org.kohsuke.rngom.binary.OneOrMorePattern;
16: import org.kohsuke.rngom.binary.RefPattern;
17: import org.kohsuke.rngom.binary.TextPattern;
18: import org.kohsuke.rngom.binary.ValuePattern;
19:
20: public interface PatternFunction {
21: Object caseEmpty(EmptyPattern p);
22:
23: Object caseNotAllowed(NotAllowedPattern p);
24:
25: Object caseError(ErrorPattern p);
26:
27: Object caseGroup(GroupPattern p);
28:
29: Object caseInterleave(InterleavePattern p);
30:
31: Object caseChoice(ChoicePattern p);
32:
33: Object caseOneOrMore(OneOrMorePattern p);
34:
35: Object caseElement(ElementPattern p);
36:
37: Object caseAttribute(AttributePattern p);
38:
39: Object caseData(DataPattern p);
40:
41: Object caseDataExcept(DataExceptPattern p);
42:
43: Object caseValue(ValuePattern p);
44:
45: Object caseText(TextPattern p);
46:
47: Object caseList(ListPattern p);
48:
49: Object caseRef(RefPattern p);
50:
51: Object caseAfter(AfterPattern p);
52: }
|