Tue, 09 Apr 2013 14:51:13 +0100
8010393: Update JAX-WS RI to 2.2.9-b12941
Reviewed-by: alanb, erikj
Contributed-by: miroslav.kos@oracle.com, martin.grebac@oracle.com
1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
26 /* this file is generated by RelaxNGCC */
27 package com.sun.tools.internal.jxc.gen.config;
28 import org.xml.sax.SAXException;
29 import org.xml.sax.XMLReader;
30 import org.xml.sax.Attributes;
31 import com.sun.tools.internal.jxc.NGCCRuntimeEx;
33 import java.util.List;
34 import java.util.ArrayList;
37 public class Classes extends NGCCHandler {
38 private String __text;
39 private String exclude_content;
40 private String include_content;
41 protected final NGCCRuntimeEx $runtime;
42 private int $_ngcc_current_state;
43 protected String $uri;
44 protected String $localName;
45 protected String $qname;
47 public final NGCCRuntime getRuntime() {
48 return($runtime);
49 }
51 public Classes(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
52 super(source, parent, cookie);
53 $runtime = runtime;
54 $_ngcc_current_state = 12;
55 }
57 public Classes(NGCCRuntimeEx runtime) {
58 this(null, runtime, runtime, -1);
59 }
61 private void action0()throws SAXException {
62 this.excludes.add(exclude_content);
63 }
65 private void action1()throws SAXException {
66 $runtime.processList(__text);}
68 private void action2()throws SAXException {
69 this.includes.add(include_content);
70 }
72 private void action3()throws SAXException {
73 $runtime.processList(__text);}
75 public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
76 int $ai;
77 $uri = $__uri;
78 $localName = $__local;
79 $qname = $__qname;
80 switch($_ngcc_current_state) {
81 case 0:
82 {
83 revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs);
84 }
85 break;
86 case 4:
87 {
88 $_ngcc_current_state = 3;
89 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
90 }
91 break;
92 case 11:
93 {
94 if(($__uri.equals("") && $__local.equals("includes"))) {
95 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
96 $_ngcc_current_state = 10;
97 }
98 else {
99 unexpectedEnterElement($__qname);
100 }
101 }
102 break;
103 case 2:
104 {
105 if(($__uri.equals("") && $__local.equals("excludes"))) {
106 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
107 $_ngcc_current_state = 6;
108 }
109 else {
110 $_ngcc_current_state = 1;
111 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
112 }
113 }
114 break;
115 case 12:
116 {
117 if(($__uri.equals("") && $__local.equals("classes"))) {
118 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
119 $_ngcc_current_state = 11;
120 }
121 else {
122 unexpectedEnterElement($__qname);
123 }
124 }
125 break;
126 default:
127 {
128 unexpectedEnterElement($__qname);
129 }
130 break;
131 }
132 }
134 public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
135 int $ai;
136 $uri = $__uri;
137 $localName = $__local;
138 $qname = $__qname;
139 switch($_ngcc_current_state) {
140 case 8:
141 {
142 if(($__uri.equals("") && $__local.equals("includes"))) {
143 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
144 $_ngcc_current_state = 2;
145 }
146 else {
147 unexpectedLeaveElement($__qname);
148 }
149 }
150 break;
151 case 1:
152 {
153 if(($__uri.equals("") && $__local.equals("classes"))) {
154 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
155 $_ngcc_current_state = 0;
156 }
157 else {
158 unexpectedLeaveElement($__qname);
159 }
160 }
161 break;
162 case 0:
163 {
164 revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
165 }
166 break;
167 case 4:
168 {
169 $_ngcc_current_state = 3;
170 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
171 }
172 break;
173 case 3:
174 {
175 if(($__uri.equals("") && $__local.equals("excludes"))) {
176 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
177 $_ngcc_current_state = 1;
178 }
179 else {
180 unexpectedLeaveElement($__qname);
181 }
182 }
183 break;
184 case 2:
185 {
186 $_ngcc_current_state = 1;
187 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
188 }
189 break;
190 default:
191 {
192 unexpectedLeaveElement($__qname);
193 }
194 break;
195 }
196 }
198 public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
199 int $ai;
200 $uri = $__uri;
201 $localName = $__local;
202 $qname = $__qname;
203 switch($_ngcc_current_state) {
204 case 0:
205 {
206 revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname);
207 }
208 break;
209 case 4:
210 {
211 $_ngcc_current_state = 3;
212 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
213 }
214 break;
215 case 2:
216 {
217 $_ngcc_current_state = 1;
218 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
219 }
220 break;
221 default:
222 {
223 unexpectedEnterAttribute($__qname);
224 }
225 break;
226 }
227 }
229 public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
230 int $ai;
231 $uri = $__uri;
232 $localName = $__local;
233 $qname = $__qname;
234 switch($_ngcc_current_state) {
235 case 0:
236 {
237 revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname);
238 }
239 break;
240 case 4:
241 {
242 $_ngcc_current_state = 3;
243 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
244 }
245 break;
246 case 2:
247 {
248 $_ngcc_current_state = 1;
249 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
250 }
251 break;
252 default:
253 {
254 unexpectedLeaveAttribute($__qname);
255 }
256 break;
257 }
258 }
260 public void text(String $value) throws SAXException {
261 int $ai;
262 switch($_ngcc_current_state) {
263 case 9:
264 {
265 include_content = $value;
266 $_ngcc_current_state = 8;
267 action2();
268 }
269 break;
270 case 8:
271 {
272 include_content = $value;
273 $_ngcc_current_state = 8;
274 action2();
275 }
276 break;
277 case 0:
278 {
279 revertToParentFromText(this, super._cookie, $value);
280 }
281 break;
282 case 4:
283 {
284 exclude_content = $value;
285 $_ngcc_current_state = 3;
286 action0();
287 }
288 break;
289 case 3:
290 {
291 exclude_content = $value;
292 $_ngcc_current_state = 3;
293 action0();
294 }
295 break;
296 case 6:
297 {
298 __text = $value;
299 $_ngcc_current_state = 4;
300 action1();
301 }
302 break;
303 case 2:
304 {
305 $_ngcc_current_state = 1;
306 $runtime.sendText(super._cookie, $value);
307 }
308 break;
309 case 10:
310 {
311 __text = $value;
312 $_ngcc_current_state = 9;
313 action3();
314 }
315 break;
316 }
317 }
319 public void onChildCompleted(Object result, int cookie, boolean needAttCheck)throws SAXException {
320 switch(cookie) {
321 }
322 }
324 public boolean accepted() {
325 return(($_ngcc_current_state == 0));
326 }
329 private List includes = new ArrayList();
330 public List getIncludes() { return $runtime.getIncludePatterns(this.includes);}
331 private List excludes = new ArrayList();
332 public List getExcludes() { return $runtime.getExcludePatterns(this.excludes);}
334 }