author | mkos |
Fri, 23 Aug 2013 09:57:21 +0100 | |
changeset 19645 | 36f707905f2b |
parent 12009 | 4abb694f273a |
child 22679 | d785acd84a14 |
permissions | -rw-r--r-- |
12009 | 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 |
*/ |
|
25 |
||
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; |
|
32 |
||
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; |
|
42 |
||
43 |
||
44 |
||
45 |
class includeDecl extends NGCCHandler { |
|
46 |
private String schemaLocation; |
|
47 |
protected final NGCCRuntimeEx $runtime; |
|
48 |
private int $_ngcc_current_state; |
|
49 |
protected String $uri; |
|
50 |
protected String $localName; |
|
51 |
protected String $qname; |
|
52 |
||
53 |
public final NGCCRuntime getRuntime() { |
|
54 |
return($runtime); |
|
55 |
} |
|
56 |
||
57 |
public includeDecl(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) { |
|
58 |
super(source, parent, cookie); |
|
59 |
$runtime = runtime; |
|
60 |
$_ngcc_current_state = 7; |
|
61 |
} |
|
62 |
||
63 |
public includeDecl(NGCCRuntimeEx runtime) { |
|
64 |
this(null, runtime, runtime, -1); |
|
65 |
} |
|
66 |
||
67 |
private void action0()throws SAXException { |
|
68 |
$runtime.includeSchema( schemaLocation ); |
|
69 |
} |
|
70 |
||
71 |
public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { |
|
72 |
int $ai; |
|
73 |
$uri = $__uri; |
|
74 |
$localName = $__local; |
|
75 |
$qname = $__qname; |
|
76 |
switch($_ngcc_current_state) { |
|
77 |
case 2: |
|
78 |
{ |
|
79 |
if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { |
|
19645
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
80 |
NGCCHandler h = new annotation(this, super._source, $runtime, 372, null,AnnotationContext.SCHEMA); |
12009 | 81 |
spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
82 |
} |
|
83 |
else { |
|
84 |
$_ngcc_current_state = 1; |
|
85 |
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
|
86 |
} |
|
87 |
} |
|
88 |
break; |
|
19645
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
89 |
case 0: |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
90 |
{ |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
91 |
revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
92 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
93 |
break; |
12009 | 94 |
case 7: |
95 |
{ |
|
96 |
if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("include"))) { |
|
97 |
$runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); |
|
98 |
$_ngcc_current_state = 6; |
|
99 |
} |
|
100 |
else { |
|
101 |
unexpectedEnterElement($__qname); |
|
102 |
} |
|
103 |
} |
|
104 |
break; |
|
19645
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
105 |
case 6: |
12009 | 106 |
{ |
19645
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
107 |
if(($ai = $runtime.getAttributeIndex("","schemaLocation"))>=0) { |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
108 |
$runtime.consumeAttribute($ai); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
109 |
$runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
110 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
111 |
else { |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
112 |
unexpectedEnterElement($__qname); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
113 |
} |
12009 | 114 |
} |
115 |
break; |
|
116 |
default: |
|
117 |
{ |
|
118 |
unexpectedEnterElement($__qname); |
|
119 |
} |
|
120 |
break; |
|
121 |
} |
|
122 |
} |
|
123 |
||
124 |
public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { |
|
125 |
int $ai; |
|
126 |
$uri = $__uri; |
|
127 |
$localName = $__local; |
|
128 |
$qname = $__qname; |
|
129 |
switch($_ngcc_current_state) { |
|
130 |
case 1: |
|
131 |
{ |
|
132 |
if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("include"))) { |
|
133 |
$runtime.onLeaveElementConsumed($__uri, $__local, $__qname); |
|
134 |
$_ngcc_current_state = 0; |
|
135 |
action0(); |
|
136 |
} |
|
137 |
else { |
|
138 |
unexpectedLeaveElement($__qname); |
|
139 |
} |
|
140 |
} |
|
141 |
break; |
|
142 |
case 2: |
|
143 |
{ |
|
144 |
$_ngcc_current_state = 1; |
|
145 |
$runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
|
146 |
} |
|
147 |
break; |
|
148 |
case 0: |
|
149 |
{ |
|
150 |
revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname); |
|
151 |
} |
|
152 |
break; |
|
19645
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
153 |
case 6: |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
154 |
{ |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
155 |
if(($ai = $runtime.getAttributeIndex("","schemaLocation"))>=0) { |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
156 |
$runtime.consumeAttribute($ai); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
157 |
$runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
158 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
159 |
else { |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
160 |
unexpectedLeaveElement($__qname); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
161 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
162 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
163 |
break; |
12009 | 164 |
default: |
165 |
{ |
|
166 |
unexpectedLeaveElement($__qname); |
|
167 |
} |
|
168 |
break; |
|
169 |
} |
|
170 |
} |
|
171 |
||
172 |
public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException { |
|
173 |
int $ai; |
|
174 |
$uri = $__uri; |
|
175 |
$localName = $__local; |
|
176 |
$qname = $__qname; |
|
177 |
switch($_ngcc_current_state) { |
|
178 |
case 2: |
|
179 |
{ |
|
180 |
$_ngcc_current_state = 1; |
|
181 |
$runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); |
|
182 |
} |
|
183 |
break; |
|
184 |
case 0: |
|
185 |
{ |
|
186 |
revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname); |
|
187 |
} |
|
188 |
break; |
|
19645
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
189 |
case 6: |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
190 |
{ |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
191 |
if(($__uri.equals("") && $__local.equals("schemaLocation"))) { |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
192 |
$_ngcc_current_state = 5; |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
193 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
194 |
else { |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
195 |
unexpectedEnterAttribute($__qname); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
196 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
197 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
198 |
break; |
12009 | 199 |
default: |
200 |
{ |
|
201 |
unexpectedEnterAttribute($__qname); |
|
202 |
} |
|
203 |
break; |
|
204 |
} |
|
205 |
} |
|
206 |
||
207 |
public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { |
|
208 |
int $ai; |
|
209 |
$uri = $__uri; |
|
210 |
$localName = $__local; |
|
211 |
$qname = $__qname; |
|
212 |
switch($_ngcc_current_state) { |
|
213 |
case 2: |
|
214 |
{ |
|
215 |
$_ngcc_current_state = 1; |
|
216 |
$runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); |
|
217 |
} |
|
218 |
break; |
|
219 |
case 0: |
|
220 |
{ |
|
221 |
revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname); |
|
222 |
} |
|
223 |
break; |
|
19645
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
224 |
case 4: |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
225 |
{ |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
226 |
if(($__uri.equals("") && $__local.equals("schemaLocation"))) { |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
227 |
$_ngcc_current_state = 2; |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
228 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
229 |
else { |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
230 |
unexpectedLeaveAttribute($__qname); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
231 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
232 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
233 |
break; |
12009 | 234 |
default: |
235 |
{ |
|
236 |
unexpectedLeaveAttribute($__qname); |
|
237 |
} |
|
238 |
break; |
|
239 |
} |
|
240 |
} |
|
241 |
||
242 |
public void text(String $value) throws SAXException { |
|
243 |
int $ai; |
|
244 |
switch($_ngcc_current_state) { |
|
19645
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
245 |
case 2: |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
246 |
{ |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
247 |
$_ngcc_current_state = 1; |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
248 |
$runtime.sendText(super._cookie, $value); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
249 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
250 |
break; |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
251 |
case 0: |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
252 |
{ |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
253 |
revertToParentFromText(this, super._cookie, $value); |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
254 |
} |
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
255 |
break; |
12009 | 256 |
case 5: |
257 |
{ |
|
258 |
schemaLocation = $value; |
|
259 |
$_ngcc_current_state = 4; |
|
260 |
} |
|
261 |
break; |
|
262 |
case 6: |
|
263 |
{ |
|
264 |
if(($ai = $runtime.getAttributeIndex("","schemaLocation"))>=0) { |
|
265 |
$runtime.consumeAttribute($ai); |
|
266 |
$runtime.sendText(super._cookie, $value); |
|
267 |
} |
|
268 |
} |
|
269 |
break; |
|
270 |
} |
|
271 |
} |
|
272 |
||
273 |
public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException { |
|
274 |
switch($__cookie__) { |
|
19645
36f707905f2b
8022885: Update JAX-WS RI integration to 2.2.9-b14140
mkos
parents:
12009
diff
changeset
|
275 |
case 372: |
12009 | 276 |
{ |
277 |
$_ngcc_current_state = 1; |
|
278 |
} |
|
279 |
break; |
|
280 |
} |
|
281 |
} |
|
282 |
||
283 |
public boolean accepted() { |
|
284 |
return(($_ngcc_current_state == 0)); |
|
285 |
} |
|
286 |
||
287 |
||
288 |
} |