01: /*
02: * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
03: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
04: *
05: * This code is free software; you can redistribute it and/or modify it
06: * under the terms of the GNU General Public License version 2 only, as
07: * published by the Free Software Foundation. Sun designates this
08: * particular file as subject to the "Classpath" exception as provided
09: * by Sun in the LICENSE file that accompanied this code.
10: *
11: * This code is distributed in the hope that it will be useful, but WITHOUT
12: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14: * version 2 for more details (a copy is included in the LICENSE file that
15: * accompanied this code).
16: *
17: * You should have received a copy of the GNU General Public License version
18: * 2 along with this work; if not, write to the Free Software Foundation,
19: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20: *
21: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22: * CA 95054 USA or visit www.sun.com if you need additional information or
23: * have any questions.
24: */
25:
26: package com.sun.xml.internal.rngom.binary.visitor;
27:
28: import com.sun.xml.internal.rngom.binary.AfterPattern;
29: import com.sun.xml.internal.rngom.binary.AttributePattern;
30: import com.sun.xml.internal.rngom.binary.ChoicePattern;
31: import com.sun.xml.internal.rngom.binary.DataExceptPattern;
32: import com.sun.xml.internal.rngom.binary.DataPattern;
33: import com.sun.xml.internal.rngom.binary.ElementPattern;
34: import com.sun.xml.internal.rngom.binary.EmptyPattern;
35: import com.sun.xml.internal.rngom.binary.ErrorPattern;
36: import com.sun.xml.internal.rngom.binary.GroupPattern;
37: import com.sun.xml.internal.rngom.binary.InterleavePattern;
38: import com.sun.xml.internal.rngom.binary.ListPattern;
39: import com.sun.xml.internal.rngom.binary.NotAllowedPattern;
40: import com.sun.xml.internal.rngom.binary.OneOrMorePattern;
41: import com.sun.xml.internal.rngom.binary.RefPattern;
42: import com.sun.xml.internal.rngom.binary.TextPattern;
43: import com.sun.xml.internal.rngom.binary.ValuePattern;
44:
45: public interface PatternFunction {
46: Object caseEmpty(EmptyPattern p);
47:
48: Object caseNotAllowed(NotAllowedPattern p);
49:
50: Object caseError(ErrorPattern p);
51:
52: Object caseGroup(GroupPattern p);
53:
54: Object caseInterleave(InterleavePattern p);
55:
56: Object caseChoice(ChoicePattern p);
57:
58: Object caseOneOrMore(OneOrMorePattern p);
59:
60: Object caseElement(ElementPattern p);
61:
62: Object caseAttribute(AttributePattern p);
63:
64: Object caseData(DataPattern p);
65:
66: Object caseDataExcept(DataExceptPattern p);
67:
68: Object caseValue(ValuePattern p);
69:
70: Object caseText(TextPattern p);
71:
72: Object caseList(ListPattern p);
73:
74: Object caseRef(RefPattern p);
75:
76: Object caseAfter(AfterPattern p);
77: }
|