src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/parser/state/notation.java

Fri, 23 Aug 2013 09:57:21 +0100

author
mkos
date
Fri, 23 Aug 2013 09:57:21 +0100
changeset 397
b99d7e355d4b
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
child 1445
06086cb6c349
permissions
-rw-r--r--

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 notation extends NGCCHandler {
ohair@286 46 private String name;
ohair@286 47 private String pub;
ohair@286 48 private ForeignAttributesImpl fa;
ohair@286 49 private String sys;
ohair@286 50 private AnnotationImpl ann;
ohair@286 51 protected final NGCCRuntimeEx $runtime;
ohair@286 52 private int $_ngcc_current_state;
ohair@286 53 protected String $uri;
ohair@286 54 protected String $localName;
ohair@286 55 protected String $qname;
ohair@286 56
ohair@286 57 public final NGCCRuntime getRuntime() {
ohair@286 58 return($runtime);
ohair@286 59 }
ohair@286 60
ohair@286 61 public notation(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
ohair@286 62 super(source, parent, cookie);
ohair@286 63 $runtime = runtime;
ohair@286 64 $_ngcc_current_state = 16;
ohair@286 65 }
ohair@286 66
ohair@286 67 public notation(NGCCRuntimeEx runtime) {
ohair@286 68 this(null, runtime, runtime, -1);
ohair@286 69 }
ohair@286 70
ohair@286 71 private void action0()throws SAXException {
ohair@286 72 loc = $runtime.copyLocator();
ohair@286 73 }
ohair@286 74
ohair@286 75 public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
ohair@286 76 int $ai;
ohair@286 77 $uri = $__uri;
ohair@286 78 $localName = $__local;
ohair@286 79 $qname = $__qname;
ohair@286 80 switch($_ngcc_current_state) {
ohair@286 81 case 2:
ohair@286 82 {
ohair@286 83 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) {
mkos@397 84 NGCCHandler h = new annotation(this, super._source, $runtime, 209, null,AnnotationContext.NOTATION);
ohair@286 85 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
ohair@286 86 }
ohair@286 87 else {
ohair@286 88 $_ngcc_current_state = 1;
ohair@286 89 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
ohair@286 90 }
ohair@286 91 }
ohair@286 92 break;
ohair@286 93 case 16:
ohair@286 94 {
ohair@286 95 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("notation"))) {
ohair@286 96 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
ohair@286 97 action0();
ohair@286 98 $_ngcc_current_state = 15;
ohair@286 99 }
ohair@286 100 else {
ohair@286 101 unexpectedEnterElement($__qname);
ohair@286 102 }
ohair@286 103 }
ohair@286 104 break;
mkos@397 105 case 14:
mkos@397 106 {
mkos@397 107 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
mkos@397 108 $runtime.consumeAttribute($ai);
mkos@397 109 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
mkos@397 110 }
mkos@397 111 else {
mkos@397 112 unexpectedEnterElement($__qname);
mkos@397 113 }
mkos@397 114 }
mkos@397 115 break;
mkos@397 116 case 15:
mkos@397 117 {
mkos@397 118 if((($ai = $runtime.getAttributeIndex("","name"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")))) {
mkos@397 119 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 224, null);
mkos@397 120 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
mkos@397 121 }
mkos@397 122 else {
mkos@397 123 unexpectedEnterElement($__qname);
mkos@397 124 }
mkos@397 125 }
mkos@397 126 break;
mkos@397 127 case 4:
mkos@397 128 {
mkos@397 129 if(($ai = $runtime.getAttributeIndex("","system"))>=0) {
mkos@397 130 $runtime.consumeAttribute($ai);
mkos@397 131 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
mkos@397 132 }
mkos@397 133 else {
mkos@397 134 $_ngcc_current_state = 2;
mkos@397 135 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
mkos@397 136 }
mkos@397 137 }
mkos@397 138 break;
mkos@397 139 case 8:
mkos@397 140 {
mkos@397 141 if(($ai = $runtime.getAttributeIndex("","public"))>=0) {
mkos@397 142 $runtime.consumeAttribute($ai);
mkos@397 143 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
mkos@397 144 }
mkos@397 145 else {
mkos@397 146 $_ngcc_current_state = 4;
mkos@397 147 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
mkos@397 148 }
mkos@397 149 }
mkos@397 150 break;
mkos@397 151 case 0:
mkos@397 152 {
mkos@397 153 revertToParentFromEnterElement(makeResult(), super._cookie, $__uri, $__local, $__qname, $attrs);
mkos@397 154 }
mkos@397 155 break;
ohair@286 156 default:
ohair@286 157 {
ohair@286 158 unexpectedEnterElement($__qname);
ohair@286 159 }
ohair@286 160 break;
ohair@286 161 }
ohair@286 162 }
ohair@286 163
ohair@286 164 public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
ohair@286 165 int $ai;
ohair@286 166 $uri = $__uri;
ohair@286 167 $localName = $__local;
ohair@286 168 $qname = $__qname;
ohair@286 169 switch($_ngcc_current_state) {
mkos@397 170 case 2:
ohair@286 171 {
mkos@397 172 $_ngcc_current_state = 1;
mkos@397 173 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
ohair@286 174 }
ohair@286 175 break;
mkos@397 176 case 14:
ohair@286 177 {
mkos@397 178 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
mkos@397 179 $runtime.consumeAttribute($ai);
mkos@397 180 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
ohair@286 181 }
ohair@286 182 else {
ohair@286 183 unexpectedLeaveElement($__qname);
ohair@286 184 }
ohair@286 185 }
ohair@286 186 break;
ohair@286 187 case 15:
ohair@286 188 {
ohair@286 189 if((($ai = $runtime.getAttributeIndex("","name"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("notation")))) {
mkos@397 190 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 224, null);
ohair@286 191 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
ohair@286 192 }
ohair@286 193 else {
ohair@286 194 unexpectedLeaveElement($__qname);
ohair@286 195 }
ohair@286 196 }
ohair@286 197 break;
ohair@286 198 case 4:
ohair@286 199 {
ohair@286 200 if(($ai = $runtime.getAttributeIndex("","system"))>=0) {
ohair@286 201 $runtime.consumeAttribute($ai);
ohair@286 202 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
ohair@286 203 }
ohair@286 204 else {
ohair@286 205 $_ngcc_current_state = 2;
ohair@286 206 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
ohair@286 207 }
ohair@286 208 }
ohair@286 209 break;
mkos@397 210 case 1:
ohair@286 211 {
mkos@397 212 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("notation"))) {
mkos@397 213 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
mkos@397 214 $_ngcc_current_state = 0;
ohair@286 215 }
ohair@286 216 else {
ohair@286 217 unexpectedLeaveElement($__qname);
ohair@286 218 }
ohair@286 219 }
ohair@286 220 break;
ohair@286 221 case 8:
ohair@286 222 {
ohair@286 223 if(($ai = $runtime.getAttributeIndex("","public"))>=0) {
ohair@286 224 $runtime.consumeAttribute($ai);
ohair@286 225 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
ohair@286 226 }
ohair@286 227 else {
ohair@286 228 $_ngcc_current_state = 4;
ohair@286 229 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
ohair@286 230 }
ohair@286 231 }
ohair@286 232 break;
mkos@397 233 case 0:
mkos@397 234 {
mkos@397 235 revertToParentFromLeaveElement(makeResult(), super._cookie, $__uri, $__local, $__qname);
mkos@397 236 }
mkos@397 237 break;
ohair@286 238 default:
ohair@286 239 {
ohair@286 240 unexpectedLeaveElement($__qname);
ohair@286 241 }
ohair@286 242 break;
ohair@286 243 }
ohair@286 244 }
ohair@286 245
ohair@286 246 public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
ohair@286 247 int $ai;
ohair@286 248 $uri = $__uri;
ohair@286 249 $localName = $__local;
ohair@286 250 $qname = $__qname;
ohair@286 251 switch($_ngcc_current_state) {
mkos@397 252 case 2:
ohair@286 253 {
mkos@397 254 $_ngcc_current_state = 1;
mkos@397 255 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
ohair@286 256 }
ohair@286 257 break;
mkos@397 258 case 14:
ohair@286 259 {
ohair@286 260 if(($__uri.equals("") && $__local.equals("name"))) {
mkos@397 261 $_ngcc_current_state = 13;
ohair@286 262 }
ohair@286 263 else {
ohair@286 264 unexpectedEnterAttribute($__qname);
ohair@286 265 }
ohair@286 266 }
ohair@286 267 break;
mkos@397 268 case 15:
ohair@286 269 {
mkos@397 270 if(($__uri.equals("") && $__local.equals("name"))) {
mkos@397 271 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 224, null);
mkos@397 272 spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
mkos@397 273 }
mkos@397 274 else {
mkos@397 275 unexpectedEnterAttribute($__qname);
mkos@397 276 }
ohair@286 277 }
ohair@286 278 break;
ohair@286 279 case 4:
ohair@286 280 {
ohair@286 281 if(($__uri.equals("") && $__local.equals("system"))) {
ohair@286 282 $_ngcc_current_state = 6;
ohair@286 283 }
ohair@286 284 else {
ohair@286 285 $_ngcc_current_state = 2;
ohair@286 286 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
ohair@286 287 }
ohair@286 288 }
ohair@286 289 break;
ohair@286 290 case 8:
ohair@286 291 {
ohair@286 292 if(($__uri.equals("") && $__local.equals("public"))) {
ohair@286 293 $_ngcc_current_state = 10;
ohair@286 294 }
ohair@286 295 else {
ohair@286 296 $_ngcc_current_state = 4;
ohair@286 297 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
ohair@286 298 }
ohair@286 299 }
ohair@286 300 break;
mkos@397 301 case 0:
mkos@397 302 {
mkos@397 303 revertToParentFromEnterAttribute(makeResult(), super._cookie, $__uri, $__local, $__qname);
mkos@397 304 }
mkos@397 305 break;
ohair@286 306 default:
ohair@286 307 {
ohair@286 308 unexpectedEnterAttribute($__qname);
ohair@286 309 }
ohair@286 310 break;
ohair@286 311 }
ohair@286 312 }
ohair@286 313
ohair@286 314 public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
ohair@286 315 int $ai;
ohair@286 316 $uri = $__uri;
ohair@286 317 $localName = $__local;
ohair@286 318 $qname = $__qname;
ohair@286 319 switch($_ngcc_current_state) {
ohair@286 320 case 2:
ohair@286 321 {
ohair@286 322 $_ngcc_current_state = 1;
ohair@286 323 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
ohair@286 324 }
ohair@286 325 break;
ohair@286 326 case 9:
ohair@286 327 {
ohair@286 328 if(($__uri.equals("") && $__local.equals("public"))) {
ohair@286 329 $_ngcc_current_state = 4;
ohair@286 330 }
ohair@286 331 else {
ohair@286 332 unexpectedLeaveAttribute($__qname);
ohair@286 333 }
ohair@286 334 }
ohair@286 335 break;
ohair@286 336 case 12:
ohair@286 337 {
ohair@286 338 if(($__uri.equals("") && $__local.equals("name"))) {
ohair@286 339 $_ngcc_current_state = 8;
ohair@286 340 }
ohair@286 341 else {
ohair@286 342 unexpectedLeaveAttribute($__qname);
ohair@286 343 }
ohair@286 344 }
ohair@286 345 break;
mkos@397 346 case 5:
mkos@397 347 {
mkos@397 348 if(($__uri.equals("") && $__local.equals("system"))) {
mkos@397 349 $_ngcc_current_state = 2;
mkos@397 350 }
mkos@397 351 else {
mkos@397 352 unexpectedLeaveAttribute($__qname);
mkos@397 353 }
mkos@397 354 }
mkos@397 355 break;
mkos@397 356 case 4:
mkos@397 357 {
mkos@397 358 $_ngcc_current_state = 2;
mkos@397 359 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
mkos@397 360 }
mkos@397 361 break;
mkos@397 362 case 8:
mkos@397 363 {
mkos@397 364 $_ngcc_current_state = 4;
mkos@397 365 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
mkos@397 366 }
mkos@397 367 break;
mkos@397 368 case 0:
mkos@397 369 {
mkos@397 370 revertToParentFromLeaveAttribute(makeResult(), super._cookie, $__uri, $__local, $__qname);
mkos@397 371 }
mkos@397 372 break;
ohair@286 373 default:
ohair@286 374 {
ohair@286 375 unexpectedLeaveAttribute($__qname);
ohair@286 376 }
ohair@286 377 break;
ohair@286 378 }
ohair@286 379 }
ohair@286 380
ohair@286 381 public void text(String $value) throws SAXException {
ohair@286 382 int $ai;
ohair@286 383 switch($_ngcc_current_state) {
mkos@397 384 case 2:
ohair@286 385 {
mkos@397 386 $_ngcc_current_state = 1;
mkos@397 387 $runtime.sendText(super._cookie, $value);
ohair@286 388 }
ohair@286 389 break;
ohair@286 390 case 10:
ohair@286 391 {
ohair@286 392 pub = $value;
ohair@286 393 $_ngcc_current_state = 9;
ohair@286 394 }
ohair@286 395 break;
mkos@397 396 case 14:
mkos@397 397 {
mkos@397 398 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
mkos@397 399 $runtime.consumeAttribute($ai);
mkos@397 400 $runtime.sendText(super._cookie, $value);
mkos@397 401 }
mkos@397 402 }
mkos@397 403 break;
ohair@286 404 case 15:
ohair@286 405 {
ohair@286 406 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
mkos@397 407 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 224, null);
ohair@286 408 spawnChildFromText(h, $value);
ohair@286 409 }
ohair@286 410 }
ohair@286 411 break;
ohair@286 412 case 4:
ohair@286 413 {
ohair@286 414 if(($ai = $runtime.getAttributeIndex("","system"))>=0) {
ohair@286 415 $runtime.consumeAttribute($ai);
ohair@286 416 $runtime.sendText(super._cookie, $value);
ohair@286 417 }
ohair@286 418 else {
ohair@286 419 $_ngcc_current_state = 2;
ohair@286 420 $runtime.sendText(super._cookie, $value);
ohair@286 421 }
ohair@286 422 }
ohair@286 423 break;
ohair@286 424 case 8:
ohair@286 425 {
ohair@286 426 if(($ai = $runtime.getAttributeIndex("","public"))>=0) {
ohair@286 427 $runtime.consumeAttribute($ai);
ohair@286 428 $runtime.sendText(super._cookie, $value);
ohair@286 429 }
ohair@286 430 else {
ohair@286 431 $_ngcc_current_state = 4;
ohair@286 432 $runtime.sendText(super._cookie, $value);
ohair@286 433 }
ohair@286 434 }
ohair@286 435 break;
mkos@397 436 case 13:
mkos@397 437 {
mkos@397 438 name = $value;
mkos@397 439 $_ngcc_current_state = 12;
mkos@397 440 }
mkos@397 441 break;
mkos@397 442 case 6:
mkos@397 443 {
mkos@397 444 sys = $value;
mkos@397 445 $_ngcc_current_state = 5;
mkos@397 446 }
mkos@397 447 break;
mkos@397 448 case 0:
mkos@397 449 {
mkos@397 450 revertToParentFromText(makeResult(), super._cookie, $value);
mkos@397 451 }
mkos@397 452 break;
ohair@286 453 }
ohair@286 454 }
ohair@286 455
ohair@286 456 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
ohair@286 457 switch($__cookie__) {
mkos@397 458 case 209:
mkos@397 459 {
mkos@397 460 ann = ((AnnotationImpl)$__result__);
mkos@397 461 $_ngcc_current_state = 1;
mkos@397 462 }
mkos@397 463 break;
mkos@397 464 case 224:
ohair@286 465 {
ohair@286 466 fa = ((ForeignAttributesImpl)$__result__);
ohair@286 467 $_ngcc_current_state = 14;
ohair@286 468 }
ohair@286 469 break;
ohair@286 470 }
ohair@286 471 }
ohair@286 472
ohair@286 473 public boolean accepted() {
ohair@286 474 return(($_ngcc_current_state == 0));
ohair@286 475 }
ohair@286 476
ohair@286 477
ohair@286 478 private Locator loc;
ohair@286 479 private XSNotation makeResult() {
ohair@286 480 return new NotationImpl( $runtime.document,ann,loc,fa,name,pub,sys);
ohair@286 481 }
ohair@286 482
ohair@286 483 }

mercurial