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
ohair@286 | 1 | /* |
ohair@286 | 2 | * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
ohair@286 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ohair@286 | 4 | * |
ohair@286 | 5 | * This code is free software; you can redistribute it and/or modify it |
ohair@286 | 6 | * under the terms of the GNU General Public License version 2 only, as |
ohair@286 | 7 | * published by the Free Software Foundation. Oracle designates this |
ohair@286 | 8 | * particular file as subject to the "Classpath" exception as provided |
ohair@286 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
ohair@286 | 10 | * |
ohair@286 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
ohair@286 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ohair@286 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ohair@286 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
ohair@286 | 15 | * accompanied this code). |
ohair@286 | 16 | * |
ohair@286 | 17 | * You should have received a copy of the GNU General Public License version |
ohair@286 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
ohair@286 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ohair@286 | 20 | * |
ohair@286 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@286 | 22 | * or visit www.oracle.com if you need additional information or have any |
ohair@286 | 23 | * questions. |
ohair@286 | 24 | */ |
ohair@286 | 25 | |
ohair@286 | 26 | /* this file is generated by RelaxNGCC */ |
ohair@286 | 27 | package com.sun.xml.internal.xsom.impl.parser.state; |
ohair@286 | 28 | import org.xml.sax.SAXException; |
ohair@286 | 29 | import org.xml.sax.XMLReader; |
ohair@286 | 30 | import org.xml.sax.Attributes; |
ohair@286 | 31 | import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx; |
ohair@286 | 32 | |
ohair@286 | 33 | import com.sun.xml.internal.xsom.*; |
ohair@286 | 34 | import com.sun.xml.internal.xsom.parser.*; |
ohair@286 | 35 | import com.sun.xml.internal.xsom.impl.*; |
ohair@286 | 36 | import com.sun.xml.internal.xsom.impl.parser.*; |
ohair@286 | 37 | import org.xml.sax.Locator; |
ohair@286 | 38 | import org.xml.sax.ContentHandler; |
ohair@286 | 39 | import org.xml.sax.helpers.*; |
ohair@286 | 40 | import java.util.*; |
ohair@286 | 41 | import java.math.BigInteger; |
ohair@286 | 42 | |
ohair@286 | 43 | |
ohair@286 | 44 | |
ohair@286 | 45 | class SimpleType_List extends NGCCHandler { |
ohair@286 | 46 | private Locator locator; |
ohair@286 | 47 | private AnnotationImpl annotation; |
ohair@286 | 48 | private String name; |
ohair@286 | 49 | private UName itemTypeName; |
ohair@286 | 50 | private Set finalSet; |
ohair@286 | 51 | private ForeignAttributesImpl fa; |
ohair@286 | 52 | protected final NGCCRuntimeEx $runtime; |
ohair@286 | 53 | private int $_ngcc_current_state; |
ohair@286 | 54 | protected String $uri; |
ohair@286 | 55 | protected String $localName; |
ohair@286 | 56 | protected String $qname; |
ohair@286 | 57 | |
ohair@286 | 58 | public final NGCCRuntime getRuntime() { |
ohair@286 | 59 | return($runtime); |
ohair@286 | 60 | } |
ohair@286 | 61 | |
ohair@286 | 62 | public SimpleType_List(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie, AnnotationImpl _annotation, Locator _locator, ForeignAttributesImpl _fa, String _name, Set _finalSet) { |
ohair@286 | 63 | super(source, parent, cookie); |
ohair@286 | 64 | $runtime = runtime; |
ohair@286 | 65 | this.annotation = _annotation; |
ohair@286 | 66 | this.locator = _locator; |
ohair@286 | 67 | this.fa = _fa; |
ohair@286 | 68 | this.name = _name; |
ohair@286 | 69 | this.finalSet = _finalSet; |
ohair@286 | 70 | $_ngcc_current_state = 10; |
ohair@286 | 71 | } |
ohair@286 | 72 | |
ohair@286 | 73 | public SimpleType_List(NGCCRuntimeEx runtime, AnnotationImpl _annotation, Locator _locator, ForeignAttributesImpl _fa, String _name, Set _finalSet) { |
ohair@286 | 74 | this(null, runtime, runtime, -1, _annotation, _locator, _fa, _name, _finalSet); |
ohair@286 | 75 | } |
ohair@286 | 76 | |
ohair@286 | 77 | private void action0()throws SAXException { |
ohair@286 | 78 | |
ohair@286 | 79 | result = new ListSimpleTypeImpl( |
ohair@286 | 80 | $runtime.document, annotation, locator, fa, |
ohair@286 | 81 | name, name==null, finalSet, itemType ); |
ohair@286 | 82 | |
ohair@286 | 83 | } |
ohair@286 | 84 | |
ohair@286 | 85 | private void action1()throws SAXException { |
ohair@286 | 86 | |
ohair@286 | 87 | itemType = new DelayedRef.SimpleType( |
ohair@286 | 88 | $runtime, lloc, $runtime.currentSchema, itemTypeName); |
ohair@286 | 89 | |
ohair@286 | 90 | } |
ohair@286 | 91 | |
ohair@286 | 92 | private void action2()throws SAXException { |
ohair@286 | 93 | lloc=$runtime.copyLocator(); |
ohair@286 | 94 | } |
ohair@286 | 95 | |
ohair@286 | 96 | public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { |
ohair@286 | 97 | int $ai; |
ohair@286 | 98 | $uri = $__uri; |
ohair@286 | 99 | $localName = $__local; |
ohair@286 | 100 | $qname = $__qname; |
ohair@286 | 101 | switch($_ngcc_current_state) { |
mkos@397 | 102 | case 9: |
mkos@397 | 103 | { |
mkos@397 | 104 | if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")) || ((($ai = $runtime.getAttributeIndex("","itemType"))>=0 && (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))))) { |
mkos@397 | 105 | NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 266, fa); |
mkos@397 | 106 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 107 | } |
mkos@397 | 108 | else { |
mkos@397 | 109 | unexpectedEnterElement($__qname); |
mkos@397 | 110 | } |
mkos@397 | 111 | } |
mkos@397 | 112 | break; |
ohair@286 | 113 | case 7: |
ohair@286 | 114 | { |
ohair@286 | 115 | if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { |
mkos@397 | 116 | NGCCHandler h = new annotation(this, super._source, $runtime, 264, annotation,AnnotationContext.SIMPLETYPE_DECL); |
ohair@286 | 117 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 118 | } |
ohair@286 | 119 | else { |
ohair@286 | 120 | $_ngcc_current_state = 2; |
ohair@286 | 121 | $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
ohair@286 | 122 | } |
ohair@286 | 123 | } |
ohair@286 | 124 | break; |
ohair@286 | 125 | case 10: |
ohair@286 | 126 | { |
ohair@286 | 127 | if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("list"))) { |
ohair@286 | 128 | $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); |
ohair@286 | 129 | action2(); |
ohair@286 | 130 | $_ngcc_current_state = 9; |
ohair@286 | 131 | } |
ohair@286 | 132 | else { |
ohair@286 | 133 | unexpectedEnterElement($__qname); |
ohair@286 | 134 | } |
ohair@286 | 135 | } |
ohair@286 | 136 | break; |
mkos@397 | 137 | case 2: |
mkos@397 | 138 | { |
mkos@397 | 139 | if(($ai = $runtime.getAttributeIndex("","itemType"))>=0) { |
mkos@397 | 140 | $runtime.consumeAttribute($ai); |
mkos@397 | 141 | $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 142 | } |
mkos@397 | 143 | else { |
mkos@397 | 144 | if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { |
mkos@397 | 145 | NGCCHandler h = new simpleType(this, super._source, $runtime, 258); |
mkos@397 | 146 | spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 147 | } |
mkos@397 | 148 | else { |
mkos@397 | 149 | unexpectedEnterElement($__qname); |
mkos@397 | 150 | } |
mkos@397 | 151 | } |
mkos@397 | 152 | } |
mkos@397 | 153 | break; |
mkos@397 | 154 | case 0: |
mkos@397 | 155 | { |
mkos@397 | 156 | revertToParentFromEnterElement(result, super._cookie, $__uri, $__local, $__qname, $attrs); |
mkos@397 | 157 | } |
mkos@397 | 158 | break; |
ohair@286 | 159 | default: |
ohair@286 | 160 | { |
ohair@286 | 161 | unexpectedEnterElement($__qname); |
ohair@286 | 162 | } |
ohair@286 | 163 | break; |
ohair@286 | 164 | } |
ohair@286 | 165 | } |
ohair@286 | 166 | |
ohair@286 | 167 | public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { |
ohair@286 | 168 | int $ai; |
ohair@286 | 169 | $uri = $__uri; |
ohair@286 | 170 | $localName = $__local; |
ohair@286 | 171 | $qname = $__qname; |
ohair@286 | 172 | switch($_ngcc_current_state) { |
mkos@397 | 173 | case 9: |
ohair@286 | 174 | { |
mkos@397 | 175 | if((($ai = $runtime.getAttributeIndex("","itemType"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("list")))) { |
mkos@397 | 176 | NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 266, fa); |
mkos@397 | 177 | spawnChildFromLeaveElement(h, $__uri, $__local, $__qname); |
ohair@286 | 178 | } |
ohair@286 | 179 | else { |
ohair@286 | 180 | unexpectedLeaveElement($__qname); |
ohair@286 | 181 | } |
ohair@286 | 182 | } |
ohair@286 | 183 | break; |
ohair@286 | 184 | case 7: |
ohair@286 | 185 | { |
ohair@286 | 186 | $_ngcc_current_state = 2; |
ohair@286 | 187 | $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 188 | } |
ohair@286 | 189 | break; |
ohair@286 | 190 | case 2: |
ohair@286 | 191 | { |
ohair@286 | 192 | if(($ai = $runtime.getAttributeIndex("","itemType"))>=0) { |
ohair@286 | 193 | $runtime.consumeAttribute($ai); |
ohair@286 | 194 | $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 195 | } |
ohair@286 | 196 | else { |
ohair@286 | 197 | unexpectedLeaveElement($__qname); |
ohair@286 | 198 | } |
ohair@286 | 199 | } |
ohair@286 | 200 | break; |
mkos@397 | 201 | case 0: |
ohair@286 | 202 | { |
mkos@397 | 203 | revertToParentFromLeaveElement(result, super._cookie, $__uri, $__local, $__qname); |
mkos@397 | 204 | } |
mkos@397 | 205 | break; |
mkos@397 | 206 | case 1: |
mkos@397 | 207 | { |
mkos@397 | 208 | if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("list"))) { |
mkos@397 | 209 | $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); |
mkos@397 | 210 | $_ngcc_current_state = 0; |
mkos@397 | 211 | action0(); |
ohair@286 | 212 | } |
ohair@286 | 213 | else { |
ohair@286 | 214 | unexpectedLeaveElement($__qname); |
ohair@286 | 215 | } |
ohair@286 | 216 | } |
ohair@286 | 217 | break; |
ohair@286 | 218 | default: |
ohair@286 | 219 | { |
ohair@286 | 220 | unexpectedLeaveElement($__qname); |
ohair@286 | 221 | } |
ohair@286 | 222 | break; |
ohair@286 | 223 | } |
ohair@286 | 224 | } |
ohair@286 | 225 | |
ohair@286 | 226 | public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException { |
ohair@286 | 227 | int $ai; |
ohair@286 | 228 | $uri = $__uri; |
ohair@286 | 229 | $localName = $__local; |
ohair@286 | 230 | $qname = $__qname; |
ohair@286 | 231 | switch($_ngcc_current_state) { |
mkos@397 | 232 | case 9: |
mkos@397 | 233 | { |
mkos@397 | 234 | if(($__uri.equals("") && $__local.equals("itemType"))) { |
mkos@397 | 235 | NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 266, fa); |
mkos@397 | 236 | spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname); |
mkos@397 | 237 | } |
mkos@397 | 238 | else { |
mkos@397 | 239 | unexpectedEnterAttribute($__qname); |
mkos@397 | 240 | } |
mkos@397 | 241 | } |
mkos@397 | 242 | break; |
ohair@286 | 243 | case 7: |
ohair@286 | 244 | { |
ohair@286 | 245 | $_ngcc_current_state = 2; |
ohair@286 | 246 | $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 247 | } |
ohair@286 | 248 | break; |
ohair@286 | 249 | case 2: |
ohair@286 | 250 | { |
ohair@286 | 251 | if(($__uri.equals("") && $__local.equals("itemType"))) { |
ohair@286 | 252 | $_ngcc_current_state = 5; |
ohair@286 | 253 | } |
ohair@286 | 254 | else { |
ohair@286 | 255 | unexpectedEnterAttribute($__qname); |
ohair@286 | 256 | } |
ohair@286 | 257 | } |
ohair@286 | 258 | break; |
mkos@397 | 259 | case 0: |
ohair@286 | 260 | { |
mkos@397 | 261 | revertToParentFromEnterAttribute(result, super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 262 | } |
ohair@286 | 263 | break; |
ohair@286 | 264 | default: |
ohair@286 | 265 | { |
ohair@286 | 266 | unexpectedEnterAttribute($__qname); |
ohair@286 | 267 | } |
ohair@286 | 268 | break; |
ohair@286 | 269 | } |
ohair@286 | 270 | } |
ohair@286 | 271 | |
ohair@286 | 272 | public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { |
ohair@286 | 273 | int $ai; |
ohair@286 | 274 | $uri = $__uri; |
ohair@286 | 275 | $localName = $__local; |
ohair@286 | 276 | $qname = $__qname; |
ohair@286 | 277 | switch($_ngcc_current_state) { |
ohair@286 | 278 | case 7: |
ohair@286 | 279 | { |
ohair@286 | 280 | $_ngcc_current_state = 2; |
ohair@286 | 281 | $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 282 | } |
ohair@286 | 283 | break; |
ohair@286 | 284 | case 0: |
ohair@286 | 285 | { |
ohair@286 | 286 | revertToParentFromLeaveAttribute(result, super._cookie, $__uri, $__local, $__qname); |
ohair@286 | 287 | } |
ohair@286 | 288 | break; |
mkos@397 | 289 | case 4: |
mkos@397 | 290 | { |
mkos@397 | 291 | if(($__uri.equals("") && $__local.equals("itemType"))) { |
mkos@397 | 292 | $_ngcc_current_state = 1; |
mkos@397 | 293 | } |
mkos@397 | 294 | else { |
mkos@397 | 295 | unexpectedLeaveAttribute($__qname); |
mkos@397 | 296 | } |
mkos@397 | 297 | } |
mkos@397 | 298 | break; |
ohair@286 | 299 | default: |
ohair@286 | 300 | { |
ohair@286 | 301 | unexpectedLeaveAttribute($__qname); |
ohair@286 | 302 | } |
ohair@286 | 303 | break; |
ohair@286 | 304 | } |
ohair@286 | 305 | } |
ohair@286 | 306 | |
ohair@286 | 307 | public void text(String $value) throws SAXException { |
ohair@286 | 308 | int $ai; |
ohair@286 | 309 | switch($_ngcc_current_state) { |
mkos@397 | 310 | case 9: |
mkos@397 | 311 | { |
mkos@397 | 312 | if(($ai = $runtime.getAttributeIndex("","itemType"))>=0) { |
mkos@397 | 313 | NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 266, fa); |
mkos@397 | 314 | spawnChildFromText(h, $value); |
mkos@397 | 315 | } |
mkos@397 | 316 | } |
mkos@397 | 317 | break; |
ohair@286 | 318 | case 7: |
ohair@286 | 319 | { |
ohair@286 | 320 | $_ngcc_current_state = 2; |
ohair@286 | 321 | $runtime.sendText(super._cookie, $value); |
ohair@286 | 322 | } |
ohair@286 | 323 | break; |
ohair@286 | 324 | case 2: |
ohair@286 | 325 | { |
ohair@286 | 326 | if(($ai = $runtime.getAttributeIndex("","itemType"))>=0) { |
ohair@286 | 327 | $runtime.consumeAttribute($ai); |
ohair@286 | 328 | $runtime.sendText(super._cookie, $value); |
ohair@286 | 329 | } |
ohair@286 | 330 | } |
ohair@286 | 331 | break; |
mkos@397 | 332 | case 0: |
ohair@286 | 333 | { |
mkos@397 | 334 | revertToParentFromText(result, super._cookie, $value); |
ohair@286 | 335 | } |
ohair@286 | 336 | break; |
ohair@286 | 337 | case 5: |
ohair@286 | 338 | { |
mkos@397 | 339 | NGCCHandler h = new qname(this, super._source, $runtime, 260); |
ohair@286 | 340 | spawnChildFromText(h, $value); |
ohair@286 | 341 | } |
ohair@286 | 342 | break; |
ohair@286 | 343 | } |
ohair@286 | 344 | } |
ohair@286 | 345 | |
ohair@286 | 346 | public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException { |
ohair@286 | 347 | switch($__cookie__) { |
mkos@397 | 348 | case 266: |
mkos@397 | 349 | { |
mkos@397 | 350 | fa = ((ForeignAttributesImpl)$__result__); |
mkos@397 | 351 | $_ngcc_current_state = 7; |
mkos@397 | 352 | } |
mkos@397 | 353 | break; |
mkos@397 | 354 | case 264: |
ohair@286 | 355 | { |
ohair@286 | 356 | annotation = ((AnnotationImpl)$__result__); |
ohair@286 | 357 | $_ngcc_current_state = 2; |
ohair@286 | 358 | } |
ohair@286 | 359 | break; |
mkos@397 | 360 | case 258: |
ohair@286 | 361 | { |
ohair@286 | 362 | itemType = ((SimpleTypeImpl)$__result__); |
ohair@286 | 363 | $_ngcc_current_state = 1; |
ohair@286 | 364 | } |
ohair@286 | 365 | break; |
mkos@397 | 366 | case 260: |
ohair@286 | 367 | { |
ohair@286 | 368 | itemTypeName = ((UName)$__result__); |
ohair@286 | 369 | action1(); |
ohair@286 | 370 | $_ngcc_current_state = 4; |
ohair@286 | 371 | } |
ohair@286 | 372 | break; |
ohair@286 | 373 | } |
ohair@286 | 374 | } |
ohair@286 | 375 | |
ohair@286 | 376 | public boolean accepted() { |
ohair@286 | 377 | return(($_ngcc_current_state == 0)); |
ohair@286 | 378 | } |
ohair@286 | 379 | |
ohair@286 | 380 | |
ohair@286 | 381 | /** computed simple type object */ |
ohair@286 | 382 | private ListSimpleTypeImpl result; |
ohair@286 | 383 | |
ohair@286 | 384 | // reference to the base type |
ohair@286 | 385 | private Ref.SimpleType itemType; |
ohair@286 | 386 | |
ohair@286 | 387 | // locator of <list> |
ohair@286 | 388 | private Locator lloc; |
ohair@286 | 389 | |
ohair@286 | 390 | } |