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

Mon, 02 Oct 2017 14:20:23 +0100

author
aefimov
date
Mon, 02 Oct 2017 14:20:23 +0100
changeset 1445
06086cb6c349
parent 397
b99d7e355d4b
child 1546
dc8316632248
permissions
-rw-r--r--

8159240: XSOM parser incorrectly processes type names with whitespaces
Reviewed-by: coffeys

ohair@286 1 /*
aefimov@1445 2 * Copyright (c) 1997, 2017, 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;
aefimov@1445 28
aefimov@1445 29 import com.sun.xml.internal.bind.WhiteSpaceProcessor;
aefimov@1445 30 import com.sun.xml.internal.xsom.*;
aefimov@1445 31 import com.sun.xml.internal.xsom.impl.*;
aefimov@1445 32 import com.sun.xml.internal.xsom.impl.parser.*;
aefimov@1445 33 import com.sun.xml.internal.xsom.parser.*;
aefimov@1445 34
aefimov@1445 35 import java.util.ArrayList;
aefimov@1445 36 import java.util.List;
aefimov@1445 37
aefimov@1445 38 import org.xml.sax.Attributes;
ohair@286 39 import org.xml.sax.SAXException;
ohair@286 40
ohair@286 41 class identityConstraint extends NGCCHandler {
ohair@286 42 private String name;
ohair@286 43 private UName ref;
ohair@286 44 private ForeignAttributesImpl fa;
ohair@286 45 private AnnotationImpl ann;
ohair@286 46 private XPathImpl field;
ohair@286 47 protected final NGCCRuntimeEx $runtime;
ohair@286 48 private int $_ngcc_current_state;
ohair@286 49 protected String $uri;
ohair@286 50 protected String $localName;
ohair@286 51 protected String $qname;
ohair@286 52
ohair@286 53 public final NGCCRuntime getRuntime() {
ohair@286 54 return($runtime);
ohair@286 55 }
ohair@286 56
ohair@286 57 public identityConstraint(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
ohair@286 58 super(source, parent, cookie);
ohair@286 59 $runtime = runtime;
ohair@286 60 $_ngcc_current_state = 18;
ohair@286 61 }
ohair@286 62
ohair@286 63 public identityConstraint(NGCCRuntimeEx runtime) {
ohair@286 64 this(null, runtime, runtime, -1);
ohair@286 65 }
ohair@286 66
ohair@286 67 private void action0()throws SAXException {
ohair@286 68 fields.add(field);
ohair@286 69 }
ohair@286 70
ohair@286 71 private void action1()throws SAXException {
ohair@286 72
ohair@286 73 refer = new DelayedRef.IdentityConstraint(
ohair@286 74 $runtime, $runtime.copyLocator(), $runtime.currentSchema, ref );
ohair@286 75
ohair@286 76 }
ohair@286 77
ohair@286 78 private void action2()throws SAXException {
ohair@286 79 if($localName.equals("key"))
ohair@286 80 category = XSIdentityConstraint.KEY;
ohair@286 81 else
ohair@286 82 if($localName.equals("keyref"))
ohair@286 83 category = XSIdentityConstraint.KEYREF;
ohair@286 84 else
ohair@286 85 if($localName.equals("unique"))
ohair@286 86 category = XSIdentityConstraint.UNIQUE;
ohair@286 87 }
ohair@286 88
ohair@286 89 public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
ohair@286 90 int $ai;
ohair@286 91 $uri = $__uri;
ohair@286 92 $localName = $__local;
ohair@286 93 $qname = $__qname;
ohair@286 94 switch($_ngcc_current_state) {
mkos@397 95 case 16:
mkos@397 96 {
mkos@397 97 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
mkos@397 98 $runtime.consumeAttribute($ai);
mkos@397 99 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
mkos@397 100 }
mkos@397 101 else {
mkos@397 102 unexpectedEnterElement($__qname);
mkos@397 103 }
mkos@397 104 }
mkos@397 105 break;
ohair@286 106 case 1:
ohair@286 107 {
ohair@286 108 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("field"))) {
ohair@286 109 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
ohair@286 110 $_ngcc_current_state = 3;
ohair@286 111 }
ohair@286 112 else {
ohair@286 113 unexpectedEnterElement($__qname);
ohair@286 114 }
ohair@286 115 }
ohair@286 116 break;
mkos@397 117 case 0:
mkos@397 118 {
mkos@397 119 revertToParentFromEnterElement(makeResult(), super._cookie, $__uri, $__local, $__qname, $attrs);
mkos@397 120 }
mkos@397 121 break;
ohair@286 122 case 17:
ohair@286 123 {
mkos@397 124 if((($ai = $runtime.getAttributeIndex("","name"))>=0 && (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("selector")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))))) {
mkos@397 125 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 287, null);
ohair@286 126 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
ohair@286 127 }
ohair@286 128 else {
ohair@286 129 unexpectedEnterElement($__qname);
ohair@286 130 }
ohair@286 131 }
ohair@286 132 break;
ohair@286 133 case 7:
ohair@286 134 {
ohair@286 135 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("selector"))) {
ohair@286 136 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
ohair@286 137 $_ngcc_current_state = 6;
ohair@286 138 }
ohair@286 139 else {
ohair@286 140 unexpectedEnterElement($__qname);
ohair@286 141 }
ohair@286 142 }
ohair@286 143 break;
mkos@397 144 case 18:
mkos@397 145 {
mkos@397 146 if(((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) {
mkos@397 147 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
mkos@397 148 action2();
mkos@397 149 $_ngcc_current_state = 17;
mkos@397 150 }
mkos@397 151 else {
mkos@397 152 unexpectedEnterElement($__qname);
mkos@397 153 }
mkos@397 154 }
mkos@397 155 break;
mkos@397 156 case 3:
mkos@397 157 {
mkos@397 158 if(($ai = $runtime.getAttributeIndex("","xpath"))>=0) {
mkos@397 159 NGCCHandler h = new xpath(this, super._source, $runtime, 270);
mkos@397 160 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
mkos@397 161 }
mkos@397 162 else {
mkos@397 163 unexpectedEnterElement($__qname);
mkos@397 164 }
mkos@397 165 }
mkos@397 166 break;
mkos@397 167 case 4:
mkos@397 168 {
mkos@397 169 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("field"))) {
mkos@397 170 $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
mkos@397 171 $_ngcc_current_state = 3;
mkos@397 172 }
mkos@397 173 else {
mkos@397 174 unexpectedEnterElement($__qname);
mkos@397 175 }
mkos@397 176 }
mkos@397 177 break;
mkos@397 178 case 8:
mkos@397 179 {
mkos@397 180 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) {
mkos@397 181 NGCCHandler h = new annotation(this, super._source, $runtime, 277, null,AnnotationContext.IDENTITY_CONSTRAINT);
mkos@397 182 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
mkos@397 183 }
mkos@397 184 else {
mkos@397 185 $_ngcc_current_state = 7;
mkos@397 186 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
mkos@397 187 }
mkos@397 188 }
mkos@397 189 break;
ohair@286 190 case 10:
ohair@286 191 {
ohair@286 192 if(($ai = $runtime.getAttributeIndex("","refer"))>=0) {
ohair@286 193 $runtime.consumeAttribute($ai);
ohair@286 194 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
ohair@286 195 }
ohair@286 196 else {
ohair@286 197 $_ngcc_current_state = 8;
ohair@286 198 $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
ohair@286 199 }
ohair@286 200 }
ohair@286 201 break;
mkos@397 202 case 6:
ohair@286 203 {
mkos@397 204 if(($ai = $runtime.getAttributeIndex("","xpath"))>=0) {
mkos@397 205 NGCCHandler h = new xpath(this, super._source, $runtime, 274);
ohair@286 206 spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
ohair@286 207 }
ohair@286 208 else {
ohair@286 209 unexpectedEnterElement($__qname);
ohair@286 210 }
ohair@286 211 }
ohair@286 212 break;
ohair@286 213 default:
ohair@286 214 {
ohair@286 215 unexpectedEnterElement($__qname);
ohair@286 216 }
ohair@286 217 break;
ohair@286 218 }
ohair@286 219 }
ohair@286 220
ohair@286 221 public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
ohair@286 222 int $ai;
ohair@286 223 $uri = $__uri;
ohair@286 224 $localName = $__local;
ohair@286 225 $qname = $__qname;
ohair@286 226 switch($_ngcc_current_state) {
mkos@397 227 case 5:
ohair@286 228 {
mkos@397 229 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("selector"))) {
ohair@286 230 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
mkos@397 231 $_ngcc_current_state = 4;
ohair@286 232 }
ohair@286 233 else {
ohair@286 234 unexpectedLeaveElement($__qname);
ohair@286 235 }
ohair@286 236 }
ohair@286 237 break;
ohair@286 238 case 16:
ohair@286 239 {
ohair@286 240 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
ohair@286 241 $runtime.consumeAttribute($ai);
ohair@286 242 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
ohair@286 243 }
ohair@286 244 else {
ohair@286 245 unexpectedLeaveElement($__qname);
ohair@286 246 }
ohair@286 247 }
ohair@286 248 break;
mkos@397 249 case 1:
ohair@286 250 {
mkos@397 251 if(((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) {
mkos@397 252 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
mkos@397 253 $_ngcc_current_state = 0;
mkos@397 254 }
mkos@397 255 else {
mkos@397 256 unexpectedLeaveElement($__qname);
mkos@397 257 }
mkos@397 258 }
mkos@397 259 break;
mkos@397 260 case 2:
mkos@397 261 {
mkos@397 262 if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("field"))) {
mkos@397 263 $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
mkos@397 264 $_ngcc_current_state = 1;
mkos@397 265 }
mkos@397 266 else {
mkos@397 267 unexpectedLeaveElement($__qname);
mkos@397 268 }
mkos@397 269 }
mkos@397 270 break;
mkos@397 271 case 0:
mkos@397 272 {
mkos@397 273 revertToParentFromLeaveElement(makeResult(), super._cookie, $__uri, $__local, $__qname);
mkos@397 274 }
mkos@397 275 break;
mkos@397 276 case 17:
mkos@397 277 {
mkos@397 278 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
mkos@397 279 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 287, null);
ohair@286 280 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
ohair@286 281 }
ohair@286 282 else {
ohair@286 283 unexpectedLeaveElement($__qname);
ohair@286 284 }
ohair@286 285 }
ohair@286 286 break;
mkos@397 287 case 3:
mkos@397 288 {
mkos@397 289 if((($ai = $runtime.getAttributeIndex("","xpath"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("field")))) {
mkos@397 290 NGCCHandler h = new xpath(this, super._source, $runtime, 270);
mkos@397 291 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
mkos@397 292 }
mkos@397 293 else {
mkos@397 294 unexpectedLeaveElement($__qname);
mkos@397 295 }
mkos@397 296 }
mkos@397 297 break;
mkos@397 298 case 8:
mkos@397 299 {
mkos@397 300 $_ngcc_current_state = 7;
mkos@397 301 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
mkos@397 302 }
mkos@397 303 break;
ohair@286 304 case 10:
ohair@286 305 {
ohair@286 306 if(($ai = $runtime.getAttributeIndex("","refer"))>=0) {
ohair@286 307 $runtime.consumeAttribute($ai);
ohair@286 308 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
ohair@286 309 }
ohair@286 310 else {
ohair@286 311 $_ngcc_current_state = 8;
ohair@286 312 $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
ohair@286 313 }
ohair@286 314 }
ohair@286 315 break;
mkos@397 316 case 6:
ohair@286 317 {
mkos@397 318 if((($ai = $runtime.getAttributeIndex("","xpath"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("selector")))) {
mkos@397 319 NGCCHandler h = new xpath(this, super._source, $runtime, 274);
mkos@397 320 spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
ohair@286 321 }
ohair@286 322 else {
ohair@286 323 unexpectedLeaveElement($__qname);
ohair@286 324 }
ohair@286 325 }
ohair@286 326 break;
ohair@286 327 default:
ohair@286 328 {
ohair@286 329 unexpectedLeaveElement($__qname);
ohair@286 330 }
ohair@286 331 break;
ohair@286 332 }
ohair@286 333 }
ohair@286 334
ohair@286 335 public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
ohair@286 336 int $ai;
ohair@286 337 $uri = $__uri;
ohair@286 338 $localName = $__local;
ohair@286 339 $qname = $__qname;
ohair@286 340 switch($_ngcc_current_state) {
ohair@286 341 case 16:
ohair@286 342 {
ohair@286 343 if(($__uri.equals("") && $__local.equals("name"))) {
ohair@286 344 $_ngcc_current_state = 15;
ohair@286 345 }
ohair@286 346 else {
ohair@286 347 unexpectedEnterAttribute($__qname);
ohair@286 348 }
ohair@286 349 }
ohair@286 350 break;
mkos@397 351 case 0:
ohair@286 352 {
mkos@397 353 revertToParentFromEnterAttribute(makeResult(), super._cookie, $__uri, $__local, $__qname);
mkos@397 354 }
mkos@397 355 break;
mkos@397 356 case 17:
mkos@397 357 {
mkos@397 358 if(($__uri.equals("") && $__local.equals("name"))) {
mkos@397 359 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 287, null);
ohair@286 360 spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
ohair@286 361 }
ohair@286 362 else {
ohair@286 363 unexpectedEnterAttribute($__qname);
ohair@286 364 }
ohair@286 365 }
ohair@286 366 break;
mkos@397 367 case 3:
mkos@397 368 {
mkos@397 369 if(($__uri.equals("") && $__local.equals("xpath"))) {
mkos@397 370 NGCCHandler h = new xpath(this, super._source, $runtime, 270);
mkos@397 371 spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
mkos@397 372 }
mkos@397 373 else {
mkos@397 374 unexpectedEnterAttribute($__qname);
mkos@397 375 }
mkos@397 376 }
mkos@397 377 break;
mkos@397 378 case 8:
mkos@397 379 {
mkos@397 380 $_ngcc_current_state = 7;
mkos@397 381 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
mkos@397 382 }
mkos@397 383 break;
ohair@286 384 case 10:
ohair@286 385 {
ohair@286 386 if(($__uri.equals("") && $__local.equals("refer"))) {
ohair@286 387 $_ngcc_current_state = 12;
ohair@286 388 }
ohair@286 389 else {
ohair@286 390 $_ngcc_current_state = 8;
ohair@286 391 $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
ohair@286 392 }
ohair@286 393 }
ohair@286 394 break;
mkos@397 395 case 6:
ohair@286 396 {
mkos@397 397 if(($__uri.equals("") && $__local.equals("xpath"))) {
mkos@397 398 NGCCHandler h = new xpath(this, super._source, $runtime, 274);
mkos@397 399 spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
mkos@397 400 }
mkos@397 401 else {
mkos@397 402 unexpectedEnterAttribute($__qname);
mkos@397 403 }
ohair@286 404 }
ohair@286 405 break;
ohair@286 406 default:
ohair@286 407 {
ohair@286 408 unexpectedEnterAttribute($__qname);
ohair@286 409 }
ohair@286 410 break;
ohair@286 411 }
ohair@286 412 }
ohair@286 413
ohair@286 414 public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
ohair@286 415 int $ai;
ohair@286 416 $uri = $__uri;
ohair@286 417 $localName = $__local;
ohair@286 418 $qname = $__qname;
ohair@286 419 switch($_ngcc_current_state) {
mkos@397 420 case 0:
mkos@397 421 {
mkos@397 422 revertToParentFromLeaveAttribute(makeResult(), super._cookie, $__uri, $__local, $__qname);
mkos@397 423 }
mkos@397 424 break;
ohair@286 425 case 14:
ohair@286 426 {
ohair@286 427 if(($__uri.equals("") && $__local.equals("name"))) {
ohair@286 428 $_ngcc_current_state = 10;
ohair@286 429 }
ohair@286 430 else {
ohair@286 431 unexpectedLeaveAttribute($__qname);
ohair@286 432 }
ohair@286 433 }
ohair@286 434 break;
mkos@397 435 case 8:
mkos@397 436 {
mkos@397 437 $_ngcc_current_state = 7;
mkos@397 438 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
mkos@397 439 }
mkos@397 440 break;
mkos@397 441 case 10:
mkos@397 442 {
mkos@397 443 $_ngcc_current_state = 8;
mkos@397 444 $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
mkos@397 445 }
mkos@397 446 break;
ohair@286 447 case 11:
ohair@286 448 {
ohair@286 449 if(($__uri.equals("") && $__local.equals("refer"))) {
ohair@286 450 $_ngcc_current_state = 8;
ohair@286 451 }
ohair@286 452 else {
ohair@286 453 unexpectedLeaveAttribute($__qname);
ohair@286 454 }
ohair@286 455 }
ohair@286 456 break;
ohair@286 457 default:
ohair@286 458 {
ohair@286 459 unexpectedLeaveAttribute($__qname);
ohair@286 460 }
ohair@286 461 break;
ohair@286 462 }
ohair@286 463 }
ohair@286 464
ohair@286 465 public void text(String $value) throws SAXException {
ohair@286 466 int $ai;
ohair@286 467 switch($_ngcc_current_state) {
mkos@397 468 case 15:
ohair@286 469 {
aefimov@1445 470 name = WhiteSpaceProcessor.collapse($value);
mkos@397 471 $_ngcc_current_state = 14;
ohair@286 472 }
ohair@286 473 break;
ohair@286 474 case 16:
ohair@286 475 {
ohair@286 476 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
ohair@286 477 $runtime.consumeAttribute($ai);
ohair@286 478 $runtime.sendText(super._cookie, $value);
ohair@286 479 }
ohair@286 480 }
ohair@286 481 break;
mkos@397 482 case 0:
ohair@286 483 {
mkos@397 484 revertToParentFromText(makeResult(), super._cookie, $value);
mkos@397 485 }
mkos@397 486 break;
mkos@397 487 case 12:
mkos@397 488 {
mkos@397 489 NGCCHandler h = new qname(this, super._source, $runtime, 280);
mkos@397 490 spawnChildFromText(h, $value);
mkos@397 491 }
mkos@397 492 break;
mkos@397 493 case 17:
mkos@397 494 {
mkos@397 495 if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
mkos@397 496 NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 287, null);
ohair@286 497 spawnChildFromText(h, $value);
ohair@286 498 }
ohair@286 499 }
ohair@286 500 break;
mkos@397 501 case 3:
ohair@286 502 {
mkos@397 503 if(($ai = $runtime.getAttributeIndex("","xpath"))>=0) {
mkos@397 504 NGCCHandler h = new xpath(this, super._source, $runtime, 270);
mkos@397 505 spawnChildFromText(h, $value);
mkos@397 506 }
mkos@397 507 }
mkos@397 508 break;
mkos@397 509 case 8:
mkos@397 510 {
mkos@397 511 $_ngcc_current_state = 7;
mkos@397 512 $runtime.sendText(super._cookie, $value);
ohair@286 513 }
ohair@286 514 break;
ohair@286 515 case 10:
ohair@286 516 {
ohair@286 517 if(($ai = $runtime.getAttributeIndex("","refer"))>=0) {
ohair@286 518 $runtime.consumeAttribute($ai);
ohair@286 519 $runtime.sendText(super._cookie, $value);
ohair@286 520 }
ohair@286 521 else {
ohair@286 522 $_ngcc_current_state = 8;
ohair@286 523 $runtime.sendText(super._cookie, $value);
ohair@286 524 }
ohair@286 525 }
ohair@286 526 break;
mkos@397 527 case 6:
ohair@286 528 {
mkos@397 529 if(($ai = $runtime.getAttributeIndex("","xpath"))>=0) {
mkos@397 530 NGCCHandler h = new xpath(this, super._source, $runtime, 274);
mkos@397 531 spawnChildFromText(h, $value);
mkos@397 532 }
ohair@286 533 }
ohair@286 534 break;
ohair@286 535 }
ohair@286 536 }
ohair@286 537
ohair@286 538 public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
ohair@286 539 switch($__cookie__) {
mkos@397 540 case 270:
ohair@286 541 {
ohair@286 542 field = ((XPathImpl)$__result__);
ohair@286 543 action0();
ohair@286 544 $_ngcc_current_state = 2;
ohair@286 545 }
ohair@286 546 break;
mkos@397 547 case 287:
ohair@286 548 {
mkos@397 549 fa = ((ForeignAttributesImpl)$__result__);
mkos@397 550 $_ngcc_current_state = 16;
ohair@286 551 }
ohair@286 552 break;
mkos@397 553 case 280:
ohair@286 554 {
ohair@286 555 ref = ((UName)$__result__);
ohair@286 556 action1();
ohair@286 557 $_ngcc_current_state = 11;
ohair@286 558 }
ohair@286 559 break;
mkos@397 560 case 277:
ohair@286 561 {
mkos@397 562 ann = ((AnnotationImpl)$__result__);
mkos@397 563 $_ngcc_current_state = 7;
mkos@397 564 }
mkos@397 565 break;
mkos@397 566 case 274:
mkos@397 567 {
mkos@397 568 selector = ((XPathImpl)$__result__);
mkos@397 569 $_ngcc_current_state = 5;
ohair@286 570 }
ohair@286 571 break;
ohair@286 572 }
ohair@286 573 }
ohair@286 574
ohair@286 575 public boolean accepted() {
ohair@286 576 return(($_ngcc_current_state == 0));
ohair@286 577 }
ohair@286 578
ohair@286 579
ohair@286 580 private short category;
ohair@286 581 private List fields = new ArrayList();
ohair@286 582 private XPathImpl selector;
ohair@286 583 private DelayedRef.IdentityConstraint refer = null;
ohair@286 584
ohair@286 585 private IdentityConstraintImpl makeResult() {
ohair@286 586 return new IdentityConstraintImpl($runtime.document,ann,$runtime.copyLocator(),fa,
ohair@286 587 category,name,selector,fields,refer);
ohair@286 588 }
ohair@286 589
ohair@286 590 }

mercurial