01: package org.kohsuke.rngom.nc;
02:
03: import javax.xml.namespace.QName;
04:
05: /**
06: * @author Kohsuke Kawaguchi
07: */
08: public class NameClassWalker implements NameClassVisitor<Void> {
09:
10: public Void visitChoice(NameClass nc1, NameClass nc2) {
11: nc1.accept(this );
12: return nc2.accept(this );
13: }
14:
15: public Void visitNsName(String ns) {
16: return null;
17: }
18:
19: public Void visitNsNameExcept(String ns, NameClass nc) {
20: return nc.accept(this );
21: }
22:
23: public Void visitAnyName() {
24: return null;
25: }
26:
27: public Void visitAnyNameExcept(NameClass nc) {
28: return nc.accept(this );
29: }
30:
31: public Void visitName(QName name) {
32: return null;
33: }
34:
35: public Void visitNull() {
36: return null;
37: }
38: }
|