01: package org.kohsuke.rngom.binary.visitor;
02:
03: import org.kohsuke.rngom.binary.Pattern;
04: import org.kohsuke.rngom.nc.NameClass;
05: import org.relaxng.datatype.Datatype;
06:
07: public interface PatternVisitor {
08: void visitEmpty();
09:
10: void visitNotAllowed();
11:
12: void visitError();
13:
14: void visitAfter(Pattern p1, Pattern p2);
15:
16: void visitGroup(Pattern p1, Pattern p2);
17:
18: void visitInterleave(Pattern p1, Pattern p2);
19:
20: void visitChoice(Pattern p1, Pattern p2);
21:
22: void visitOneOrMore(Pattern p);
23:
24: void visitElement(NameClass nc, Pattern content);
25:
26: void visitAttribute(NameClass ns, Pattern value);
27:
28: void visitData(Datatype dt);
29:
30: void visitDataExcept(Datatype dt, Pattern except);
31:
32: void visitValue(Datatype dt, Object obj);
33:
34: void visitText();
35:
36: void visitList(Pattern p);
37: }
|