Fri, 23 Aug 2013 09:57:21 +0100
8022885: Update JAX-WS RI integration to 2.2.9-b14140
8013016: Rebase 8009009 against the latest jdk8/jaxws
Reviewed-by: alanb, chegar
1 /*
2 * Copyright (c) 1997, 2011, 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.xml.internal.xsom.impl.parser.state;
28 import org.xml.sax.SAXException;
29 import org.xml.sax.XMLReader;
30 import org.xml.sax.Attributes;
31 import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx;
33 import com.sun.xml.internal.xsom.*;
34 import com.sun.xml.internal.xsom.parser.*;
35 import com.sun.xml.internal.xsom.impl.*;
36 import com.sun.xml.internal.xsom.impl.parser.*;
37 import org.xml.sax.Locator;
38 import org.xml.sax.ContentHandler;
39 import org.xml.sax.helpers.*;
40 import java.util.*;
41 import java.math.BigInteger;
45 class facet extends NGCCHandler {
46 private AnnotationImpl annotation;
47 private String fixed;
48 private String value;
49 private ForeignAttributesImpl fa;
50 protected final NGCCRuntimeEx $runtime;
51 private int $_ngcc_current_state;
52 protected String $uri;
53 protected String $localName;
54 protected String $qname;
56 public final NGCCRuntime getRuntime() {
57 return($runtime);
58 }
60 public facet(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
61 super(source, parent, cookie);
62 $runtime = runtime;
63 $_ngcc_current_state = 12;
64 }
66 public facet(NGCCRuntimeEx runtime) {
67 this(null, runtime, runtime, -1);
68 }
70 private void action0()throws SAXException {
72 result = new FacetImpl( $runtime.document,
73 annotation, locator, fa, $localName/*name of the facet*/,
74 $runtime.createXmlString(value), $runtime.parseBoolean(fixed) );
76 }
78 private void action1()throws SAXException {
79 locator=$runtime.copyLocator();
80 }
82 public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
83 int $ai;
84 $uri = $__uri;
85 $localName = $__local;
86 $qname = $__qname;
87 switch($_ngcc_current_state) {
88 case 12:
89 {
90 if((((((((((((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minExclusive")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxExclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("totalDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("fractionDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("length"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("enumeration"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("whiteSpace"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("pattern")))) {
91 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
92 action1();
93 $_ngcc_current_state = 11;
94 }
95 else {
96 unexpectedEnterElement($__qname);
97 }
98 }
99 break;
100 case 4:
101 {
102 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) {
103 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 230, fa);
104 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
105 }
106 else {
107 unexpectedEnterElement($__qname);
108 }
109 }
110 break;
111 case 5:
112 {
113 if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) {
114 $runtime.consumeAttribute($ai);
115 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
116 }
117 else {
118 $_ngcc_current_state = 4;
119 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
120 }
121 }
122 break;
123 case 11:
124 {
125 if(($ai = $runtime.getAttributeIndex("","value"))>=0) {
126 $runtime.consumeAttribute($ai);
127 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
128 }
129 else {
130 unexpectedEnterElement($__qname);
131 }
132 }
133 break;
134 case 0:
135 {
136 revertToParentFromEnterElement(result, super._cookie, $__uri, $__local, $__qname, $attrs);
137 }
138 break;
139 case 2:
140 {
141 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) {
142 NGCCHandler h = new annotation(this, super._source, $runtime, 228, null,AnnotationContext.SIMPLETYPE_DECL);
143 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
144 }
145 else {
146 $_ngcc_current_state = 1;
147 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
148 }
149 }
150 break;
151 default:
152 {
153 unexpectedEnterElement($__qname);
154 }
155 break;
156 }
157 }
159 public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
160 int $ai;
161 $uri = $__uri;
162 $localName = $__local;
163 $qname = $__qname;
164 switch($_ngcc_current_state) {
165 case 4:
166 {
167 if((((((((((((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minExclusive")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxExclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("totalDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("fractionDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("length"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("enumeration"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("whiteSpace"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("pattern")))) {
168 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 230, fa);
169 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
170 }
171 else {
172 unexpectedLeaveElement($__qname);
173 }
174 }
175 break;
176 case 5:
177 {
178 if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) {
179 $runtime.consumeAttribute($ai);
180 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
181 }
182 else {
183 $_ngcc_current_state = 4;
184 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
185 }
186 }
187 break;
188 case 1:
189 {
190 if((((((((((((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minExclusive")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxExclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxInclusive"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("totalDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("fractionDigits"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("length"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("maxLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("minLength"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("enumeration"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("whiteSpace"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("pattern")))) {
191 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
192 $_ngcc_current_state = 0;
193 action0();
194 }
195 else {
196 unexpectedLeaveElement($__qname);
197 }
198 }
199 break;
200 case 11:
201 {
202 if(($ai = $runtime.getAttributeIndex("","value"))>=0) {
203 $runtime.consumeAttribute($ai);
204 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
205 }
206 else {
207 unexpectedLeaveElement($__qname);
208 }
209 }
210 break;
211 case 0:
212 {
213 revertToParentFromLeaveElement(result, super._cookie, $__uri, $__local, $__qname);
214 }
215 break;
216 case 2:
217 {
218 $_ngcc_current_state = 1;
219 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
220 }
221 break;
222 default:
223 {
224 unexpectedLeaveElement($__qname);
225 }
226 break;
227 }
228 }
230 public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
231 int $ai;
232 $uri = $__uri;
233 $localName = $__local;
234 $qname = $__qname;
235 switch($_ngcc_current_state) {
236 case 5:
237 {
238 if(($__uri.equals("") && $__local.equals("fixed"))) {
239 $_ngcc_current_state = 7;
240 }
241 else {
242 $_ngcc_current_state = 4;
243 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
244 }
245 }
246 break;
247 case 11:
248 {
249 if(($__uri.equals("") && $__local.equals("value"))) {
250 $_ngcc_current_state = 10;
251 }
252 else {
253 unexpectedEnterAttribute($__qname);
254 }
255 }
256 break;
257 case 0:
258 {
259 revertToParentFromEnterAttribute(result, super._cookie, $__uri, $__local, $__qname);
260 }
261 break;
262 case 2:
263 {
264 $_ngcc_current_state = 1;
265 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
266 }
267 break;
268 default:
269 {
270 unexpectedEnterAttribute($__qname);
271 }
272 break;
273 }
274 }
276 public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
277 int $ai;
278 $uri = $__uri;
279 $localName = $__local;
280 $qname = $__qname;
281 switch($_ngcc_current_state) {
282 case 5:
283 {
284 $_ngcc_current_state = 4;
285 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
286 }
287 break;
288 case 9:
289 {
290 if(($__uri.equals("") && $__local.equals("value"))) {
291 $_ngcc_current_state = 5;
292 }
293 else {
294 unexpectedLeaveAttribute($__qname);
295 }
296 }
297 break;
298 case 0:
299 {
300 revertToParentFromLeaveAttribute(result, super._cookie, $__uri, $__local, $__qname);
301 }
302 break;
303 case 6:
304 {
305 if(($__uri.equals("") && $__local.equals("fixed"))) {
306 $_ngcc_current_state = 4;
307 }
308 else {
309 unexpectedLeaveAttribute($__qname);
310 }
311 }
312 break;
313 case 2:
314 {
315 $_ngcc_current_state = 1;
316 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
317 }
318 break;
319 default:
320 {
321 unexpectedLeaveAttribute($__qname);
322 }
323 break;
324 }
325 }
327 public void text(String $value) throws SAXException {
328 int $ai;
329 switch($_ngcc_current_state) {
330 case 5:
331 {
332 if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) {
333 $runtime.consumeAttribute($ai);
334 $runtime.sendText(super._cookie, $value);
335 }
336 else {
337 $_ngcc_current_state = 4;
338 $runtime.sendText(super._cookie, $value);
339 }
340 }
341 break;
342 case 7:
343 {
344 fixed = $value;
345 $_ngcc_current_state = 6;
346 }
347 break;
348 case 11:
349 {
350 if(($ai = $runtime.getAttributeIndex("","value"))>=0) {
351 $runtime.consumeAttribute($ai);
352 $runtime.sendText(super._cookie, $value);
353 }
354 }
355 break;
356 case 10:
357 {
358 value = $value;
359 $_ngcc_current_state = 9;
360 }
361 break;
362 case 0:
363 {
364 revertToParentFromText(result, super._cookie, $value);
365 }
366 break;
367 case 2:
368 {
369 $_ngcc_current_state = 1;
370 $runtime.sendText(super._cookie, $value);
371 }
372 break;
373 }
374 }
376 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
377 switch($__cookie__) {
378 case 230:
379 {
380 fa = ((ForeignAttributesImpl)$__result__);
381 $_ngcc_current_state = 2;
382 }
383 break;
384 case 228:
385 {
386 annotation = ((AnnotationImpl)$__result__);
387 $_ngcc_current_state = 1;
388 }
389 break;
390 }
391 }
393 public boolean accepted() {
394 return(($_ngcc_current_state == 0));
395 }
398 private FacetImpl result;
399 private Locator locator;
401 }