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

changeset 0
373ffda63c9a
child 637
9c07ef4934dd
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/xsom/impl/parser/state/identityConstraint.java	Wed Apr 27 01:27:09 2016 +0800
     1.3 @@ -0,0 +1,594 @@
     1.4 +/*
     1.5 + * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 + *
     1.8 + * This code is free software; you can redistribute it and/or modify it
     1.9 + * under the terms of the GNU General Public License version 2 only, as
    1.10 + * published by the Free Software Foundation.  Oracle designates this
    1.11 + * particular file as subject to the "Classpath" exception as provided
    1.12 + * by Oracle in the LICENSE file that accompanied this code.
    1.13 + *
    1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.17 + * version 2 for more details (a copy is included in the LICENSE file that
    1.18 + * accompanied this code).
    1.19 + *
    1.20 + * You should have received a copy of the GNU General Public License version
    1.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.23 + *
    1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    1.25 + * or visit www.oracle.com if you need additional information or have any
    1.26 + * questions.
    1.27 + */
    1.28 +
    1.29 +/* this file is generated by RelaxNGCC */
    1.30 +package com.sun.xml.internal.xsom.impl.parser.state;
    1.31 +import org.xml.sax.SAXException;
    1.32 +import org.xml.sax.XMLReader;
    1.33 +import org.xml.sax.Attributes;
    1.34 +import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx;
    1.35 +
    1.36 +    import com.sun.xml.internal.xsom.*;
    1.37 +    import com.sun.xml.internal.xsom.parser.*;
    1.38 +    import com.sun.xml.internal.xsom.impl.*;
    1.39 +    import com.sun.xml.internal.xsom.impl.parser.*;
    1.40 +    import org.xml.sax.Locator;
    1.41 +    import org.xml.sax.ContentHandler;
    1.42 +    import org.xml.sax.helpers.*;
    1.43 +    import java.util.*;
    1.44 +    import java.math.BigInteger;
    1.45 +
    1.46 +
    1.47 +
    1.48 +class identityConstraint extends NGCCHandler {
    1.49 +    private String name;
    1.50 +    private UName ref;
    1.51 +    private ForeignAttributesImpl fa;
    1.52 +    private AnnotationImpl ann;
    1.53 +    private XPathImpl field;
    1.54 +    protected final NGCCRuntimeEx $runtime;
    1.55 +    private int $_ngcc_current_state;
    1.56 +    protected String $uri;
    1.57 +    protected String $localName;
    1.58 +    protected String $qname;
    1.59 +
    1.60 +    public final NGCCRuntime getRuntime() {
    1.61 +        return($runtime);
    1.62 +    }
    1.63 +
    1.64 +    public identityConstraint(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie) {
    1.65 +        super(source, parent, cookie);
    1.66 +        $runtime = runtime;
    1.67 +        $_ngcc_current_state = 18;
    1.68 +    }
    1.69 +
    1.70 +    public identityConstraint(NGCCRuntimeEx runtime) {
    1.71 +        this(null, runtime, runtime, -1);
    1.72 +    }
    1.73 +
    1.74 +    private void action0()throws SAXException {
    1.75 +        fields.add(field);
    1.76 +}
    1.77 +
    1.78 +    private void action1()throws SAXException {
    1.79 +
    1.80 +            refer = new DelayedRef.IdentityConstraint(
    1.81 +              $runtime, $runtime.copyLocator(), $runtime.currentSchema, ref );
    1.82 +
    1.83 +}
    1.84 +
    1.85 +    private void action2()throws SAXException {
    1.86 +        if($localName.equals("key"))
    1.87 +        category = XSIdentityConstraint.KEY;
    1.88 +      else
    1.89 +      if($localName.equals("keyref"))
    1.90 +        category = XSIdentityConstraint.KEYREF;
    1.91 +      else
    1.92 +      if($localName.equals("unique"))
    1.93 +        category = XSIdentityConstraint.UNIQUE;
    1.94 +}
    1.95 +
    1.96 +    public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
    1.97 +        int $ai;
    1.98 +        $uri = $__uri;
    1.99 +        $localName = $__local;
   1.100 +        $qname = $__qname;
   1.101 +        switch($_ngcc_current_state) {
   1.102 +        case 16:
   1.103 +            {
   1.104 +                if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
   1.105 +                    $runtime.consumeAttribute($ai);
   1.106 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.107 +                }
   1.108 +                else {
   1.109 +                    unexpectedEnterElement($__qname);
   1.110 +                }
   1.111 +            }
   1.112 +            break;
   1.113 +        case 1:
   1.114 +            {
   1.115 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("field"))) {
   1.116 +                    $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
   1.117 +                    $_ngcc_current_state = 3;
   1.118 +                }
   1.119 +                else {
   1.120 +                    unexpectedEnterElement($__qname);
   1.121 +                }
   1.122 +            }
   1.123 +            break;
   1.124 +        case 0:
   1.125 +            {
   1.126 +                revertToParentFromEnterElement(makeResult(), super._cookie, $__uri, $__local, $__qname, $attrs);
   1.127 +            }
   1.128 +            break;
   1.129 +        case 17:
   1.130 +            {
   1.131 +                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"))))) {
   1.132 +                    NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 287, null);
   1.133 +                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.134 +                }
   1.135 +                else {
   1.136 +                    unexpectedEnterElement($__qname);
   1.137 +                }
   1.138 +            }
   1.139 +            break;
   1.140 +        case 7:
   1.141 +            {
   1.142 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("selector"))) {
   1.143 +                    $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
   1.144 +                    $_ngcc_current_state = 6;
   1.145 +                }
   1.146 +                else {
   1.147 +                    unexpectedEnterElement($__qname);
   1.148 +                }
   1.149 +            }
   1.150 +            break;
   1.151 +        case 18:
   1.152 +            {
   1.153 +                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")))) {
   1.154 +                    $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
   1.155 +                    action2();
   1.156 +                    $_ngcc_current_state = 17;
   1.157 +                }
   1.158 +                else {
   1.159 +                    unexpectedEnterElement($__qname);
   1.160 +                }
   1.161 +            }
   1.162 +            break;
   1.163 +        case 3:
   1.164 +            {
   1.165 +                if(($ai = $runtime.getAttributeIndex("","xpath"))>=0) {
   1.166 +                    NGCCHandler h = new xpath(this, super._source, $runtime, 270);
   1.167 +                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.168 +                }
   1.169 +                else {
   1.170 +                    unexpectedEnterElement($__qname);
   1.171 +                }
   1.172 +            }
   1.173 +            break;
   1.174 +        case 4:
   1.175 +            {
   1.176 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("field"))) {
   1.177 +                    $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
   1.178 +                    $_ngcc_current_state = 3;
   1.179 +                }
   1.180 +                else {
   1.181 +                    unexpectedEnterElement($__qname);
   1.182 +                }
   1.183 +            }
   1.184 +            break;
   1.185 +        case 8:
   1.186 +            {
   1.187 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) {
   1.188 +                    NGCCHandler h = new annotation(this, super._source, $runtime, 277, null,AnnotationContext.IDENTITY_CONSTRAINT);
   1.189 +                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.190 +                }
   1.191 +                else {
   1.192 +                    $_ngcc_current_state = 7;
   1.193 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.194 +                }
   1.195 +            }
   1.196 +            break;
   1.197 +        case 10:
   1.198 +            {
   1.199 +                if(($ai = $runtime.getAttributeIndex("","refer"))>=0) {
   1.200 +                    $runtime.consumeAttribute($ai);
   1.201 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.202 +                }
   1.203 +                else {
   1.204 +                    $_ngcc_current_state = 8;
   1.205 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.206 +                }
   1.207 +            }
   1.208 +            break;
   1.209 +        case 6:
   1.210 +            {
   1.211 +                if(($ai = $runtime.getAttributeIndex("","xpath"))>=0) {
   1.212 +                    NGCCHandler h = new xpath(this, super._source, $runtime, 274);
   1.213 +                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.214 +                }
   1.215 +                else {
   1.216 +                    unexpectedEnterElement($__qname);
   1.217 +                }
   1.218 +            }
   1.219 +            break;
   1.220 +        default:
   1.221 +            {
   1.222 +                unexpectedEnterElement($__qname);
   1.223 +            }
   1.224 +            break;
   1.225 +        }
   1.226 +    }
   1.227 +
   1.228 +    public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
   1.229 +        int $ai;
   1.230 +        $uri = $__uri;
   1.231 +        $localName = $__local;
   1.232 +        $qname = $__qname;
   1.233 +        switch($_ngcc_current_state) {
   1.234 +        case 5:
   1.235 +            {
   1.236 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("selector"))) {
   1.237 +                    $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
   1.238 +                    $_ngcc_current_state = 4;
   1.239 +                }
   1.240 +                else {
   1.241 +                    unexpectedLeaveElement($__qname);
   1.242 +                }
   1.243 +            }
   1.244 +            break;
   1.245 +        case 16:
   1.246 +            {
   1.247 +                if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
   1.248 +                    $runtime.consumeAttribute($ai);
   1.249 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.250 +                }
   1.251 +                else {
   1.252 +                    unexpectedLeaveElement($__qname);
   1.253 +                }
   1.254 +            }
   1.255 +            break;
   1.256 +        case 1:
   1.257 +            {
   1.258 +                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")))) {
   1.259 +                    $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
   1.260 +                    $_ngcc_current_state = 0;
   1.261 +                }
   1.262 +                else {
   1.263 +                    unexpectedLeaveElement($__qname);
   1.264 +                }
   1.265 +            }
   1.266 +            break;
   1.267 +        case 2:
   1.268 +            {
   1.269 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("field"))) {
   1.270 +                    $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
   1.271 +                    $_ngcc_current_state = 1;
   1.272 +                }
   1.273 +                else {
   1.274 +                    unexpectedLeaveElement($__qname);
   1.275 +                }
   1.276 +            }
   1.277 +            break;
   1.278 +        case 0:
   1.279 +            {
   1.280 +                revertToParentFromLeaveElement(makeResult(), super._cookie, $__uri, $__local, $__qname);
   1.281 +            }
   1.282 +            break;
   1.283 +        case 17:
   1.284 +            {
   1.285 +                if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
   1.286 +                    NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 287, null);
   1.287 +                    spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
   1.288 +                }
   1.289 +                else {
   1.290 +                    unexpectedLeaveElement($__qname);
   1.291 +                }
   1.292 +            }
   1.293 +            break;
   1.294 +        case 3:
   1.295 +            {
   1.296 +                if((($ai = $runtime.getAttributeIndex("","xpath"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("field")))) {
   1.297 +                    NGCCHandler h = new xpath(this, super._source, $runtime, 270);
   1.298 +                    spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
   1.299 +                }
   1.300 +                else {
   1.301 +                    unexpectedLeaveElement($__qname);
   1.302 +                }
   1.303 +            }
   1.304 +            break;
   1.305 +        case 8:
   1.306 +            {
   1.307 +                $_ngcc_current_state = 7;
   1.308 +                $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.309 +            }
   1.310 +            break;
   1.311 +        case 10:
   1.312 +            {
   1.313 +                if(($ai = $runtime.getAttributeIndex("","refer"))>=0) {
   1.314 +                    $runtime.consumeAttribute($ai);
   1.315 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.316 +                }
   1.317 +                else {
   1.318 +                    $_ngcc_current_state = 8;
   1.319 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.320 +                }
   1.321 +            }
   1.322 +            break;
   1.323 +        case 6:
   1.324 +            {
   1.325 +                if((($ai = $runtime.getAttributeIndex("","xpath"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("selector")))) {
   1.326 +                    NGCCHandler h = new xpath(this, super._source, $runtime, 274);
   1.327 +                    spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
   1.328 +                }
   1.329 +                else {
   1.330 +                    unexpectedLeaveElement($__qname);
   1.331 +                }
   1.332 +            }
   1.333 +            break;
   1.334 +        default:
   1.335 +            {
   1.336 +                unexpectedLeaveElement($__qname);
   1.337 +            }
   1.338 +            break;
   1.339 +        }
   1.340 +    }
   1.341 +
   1.342 +    public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
   1.343 +        int $ai;
   1.344 +        $uri = $__uri;
   1.345 +        $localName = $__local;
   1.346 +        $qname = $__qname;
   1.347 +        switch($_ngcc_current_state) {
   1.348 +        case 16:
   1.349 +            {
   1.350 +                if(($__uri.equals("") && $__local.equals("name"))) {
   1.351 +                    $_ngcc_current_state = 15;
   1.352 +                }
   1.353 +                else {
   1.354 +                    unexpectedEnterAttribute($__qname);
   1.355 +                }
   1.356 +            }
   1.357 +            break;
   1.358 +        case 0:
   1.359 +            {
   1.360 +                revertToParentFromEnterAttribute(makeResult(), super._cookie, $__uri, $__local, $__qname);
   1.361 +            }
   1.362 +            break;
   1.363 +        case 17:
   1.364 +            {
   1.365 +                if(($__uri.equals("") && $__local.equals("name"))) {
   1.366 +                    NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 287, null);
   1.367 +                    spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
   1.368 +                }
   1.369 +                else {
   1.370 +                    unexpectedEnterAttribute($__qname);
   1.371 +                }
   1.372 +            }
   1.373 +            break;
   1.374 +        case 3:
   1.375 +            {
   1.376 +                if(($__uri.equals("") && $__local.equals("xpath"))) {
   1.377 +                    NGCCHandler h = new xpath(this, super._source, $runtime, 270);
   1.378 +                    spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
   1.379 +                }
   1.380 +                else {
   1.381 +                    unexpectedEnterAttribute($__qname);
   1.382 +                }
   1.383 +            }
   1.384 +            break;
   1.385 +        case 8:
   1.386 +            {
   1.387 +                $_ngcc_current_state = 7;
   1.388 +                $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.389 +            }
   1.390 +            break;
   1.391 +        case 10:
   1.392 +            {
   1.393 +                if(($__uri.equals("") && $__local.equals("refer"))) {
   1.394 +                    $_ngcc_current_state = 12;
   1.395 +                }
   1.396 +                else {
   1.397 +                    $_ngcc_current_state = 8;
   1.398 +                    $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.399 +                }
   1.400 +            }
   1.401 +            break;
   1.402 +        case 6:
   1.403 +            {
   1.404 +                if(($__uri.equals("") && $__local.equals("xpath"))) {
   1.405 +                    NGCCHandler h = new xpath(this, super._source, $runtime, 274);
   1.406 +                    spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
   1.407 +                }
   1.408 +                else {
   1.409 +                    unexpectedEnterAttribute($__qname);
   1.410 +                }
   1.411 +            }
   1.412 +            break;
   1.413 +        default:
   1.414 +            {
   1.415 +                unexpectedEnterAttribute($__qname);
   1.416 +            }
   1.417 +            break;
   1.418 +        }
   1.419 +    }
   1.420 +
   1.421 +    public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
   1.422 +        int $ai;
   1.423 +        $uri = $__uri;
   1.424 +        $localName = $__local;
   1.425 +        $qname = $__qname;
   1.426 +        switch($_ngcc_current_state) {
   1.427 +        case 0:
   1.428 +            {
   1.429 +                revertToParentFromLeaveAttribute(makeResult(), super._cookie, $__uri, $__local, $__qname);
   1.430 +            }
   1.431 +            break;
   1.432 +        case 14:
   1.433 +            {
   1.434 +                if(($__uri.equals("") && $__local.equals("name"))) {
   1.435 +                    $_ngcc_current_state = 10;
   1.436 +                }
   1.437 +                else {
   1.438 +                    unexpectedLeaveAttribute($__qname);
   1.439 +                }
   1.440 +            }
   1.441 +            break;
   1.442 +        case 8:
   1.443 +            {
   1.444 +                $_ngcc_current_state = 7;
   1.445 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.446 +            }
   1.447 +            break;
   1.448 +        case 10:
   1.449 +            {
   1.450 +                $_ngcc_current_state = 8;
   1.451 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.452 +            }
   1.453 +            break;
   1.454 +        case 11:
   1.455 +            {
   1.456 +                if(($__uri.equals("") && $__local.equals("refer"))) {
   1.457 +                    $_ngcc_current_state = 8;
   1.458 +                }
   1.459 +                else {
   1.460 +                    unexpectedLeaveAttribute($__qname);
   1.461 +                }
   1.462 +            }
   1.463 +            break;
   1.464 +        default:
   1.465 +            {
   1.466 +                unexpectedLeaveAttribute($__qname);
   1.467 +            }
   1.468 +            break;
   1.469 +        }
   1.470 +    }
   1.471 +
   1.472 +    public void text(String $value) throws SAXException {
   1.473 +        int $ai;
   1.474 +        switch($_ngcc_current_state) {
   1.475 +        case 15:
   1.476 +            {
   1.477 +                name = $value;
   1.478 +                $_ngcc_current_state = 14;
   1.479 +            }
   1.480 +            break;
   1.481 +        case 16:
   1.482 +            {
   1.483 +                if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
   1.484 +                    $runtime.consumeAttribute($ai);
   1.485 +                    $runtime.sendText(super._cookie, $value);
   1.486 +                }
   1.487 +            }
   1.488 +            break;
   1.489 +        case 0:
   1.490 +            {
   1.491 +                revertToParentFromText(makeResult(), super._cookie, $value);
   1.492 +            }
   1.493 +            break;
   1.494 +        case 12:
   1.495 +            {
   1.496 +                NGCCHandler h = new qname(this, super._source, $runtime, 280);
   1.497 +                spawnChildFromText(h, $value);
   1.498 +            }
   1.499 +            break;
   1.500 +        case 17:
   1.501 +            {
   1.502 +                if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
   1.503 +                    NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 287, null);
   1.504 +                    spawnChildFromText(h, $value);
   1.505 +                }
   1.506 +            }
   1.507 +            break;
   1.508 +        case 3:
   1.509 +            {
   1.510 +                if(($ai = $runtime.getAttributeIndex("","xpath"))>=0) {
   1.511 +                    NGCCHandler h = new xpath(this, super._source, $runtime, 270);
   1.512 +                    spawnChildFromText(h, $value);
   1.513 +                }
   1.514 +            }
   1.515 +            break;
   1.516 +        case 8:
   1.517 +            {
   1.518 +                $_ngcc_current_state = 7;
   1.519 +                $runtime.sendText(super._cookie, $value);
   1.520 +            }
   1.521 +            break;
   1.522 +        case 10:
   1.523 +            {
   1.524 +                if(($ai = $runtime.getAttributeIndex("","refer"))>=0) {
   1.525 +                    $runtime.consumeAttribute($ai);
   1.526 +                    $runtime.sendText(super._cookie, $value);
   1.527 +                }
   1.528 +                else {
   1.529 +                    $_ngcc_current_state = 8;
   1.530 +                    $runtime.sendText(super._cookie, $value);
   1.531 +                }
   1.532 +            }
   1.533 +            break;
   1.534 +        case 6:
   1.535 +            {
   1.536 +                if(($ai = $runtime.getAttributeIndex("","xpath"))>=0) {
   1.537 +                    NGCCHandler h = new xpath(this, super._source, $runtime, 274);
   1.538 +                    spawnChildFromText(h, $value);
   1.539 +                }
   1.540 +            }
   1.541 +            break;
   1.542 +        }
   1.543 +    }
   1.544 +
   1.545 +    public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
   1.546 +        switch($__cookie__) {
   1.547 +        case 270:
   1.548 +            {
   1.549 +                field = ((XPathImpl)$__result__);
   1.550 +                action0();
   1.551 +                $_ngcc_current_state = 2;
   1.552 +            }
   1.553 +            break;
   1.554 +        case 287:
   1.555 +            {
   1.556 +                fa = ((ForeignAttributesImpl)$__result__);
   1.557 +                $_ngcc_current_state = 16;
   1.558 +            }
   1.559 +            break;
   1.560 +        case 280:
   1.561 +            {
   1.562 +                ref = ((UName)$__result__);
   1.563 +                action1();
   1.564 +                $_ngcc_current_state = 11;
   1.565 +            }
   1.566 +            break;
   1.567 +        case 277:
   1.568 +            {
   1.569 +                ann = ((AnnotationImpl)$__result__);
   1.570 +                $_ngcc_current_state = 7;
   1.571 +            }
   1.572 +            break;
   1.573 +        case 274:
   1.574 +            {
   1.575 +                selector = ((XPathImpl)$__result__);
   1.576 +                $_ngcc_current_state = 5;
   1.577 +            }
   1.578 +            break;
   1.579 +        }
   1.580 +    }
   1.581 +
   1.582 +    public boolean accepted() {
   1.583 +        return(($_ngcc_current_state == 0));
   1.584 +    }
   1.585 +
   1.586 +
   1.587 +      private short category;
   1.588 +      private List fields = new ArrayList();
   1.589 +      private XPathImpl selector;
   1.590 +      private DelayedRef.IdentityConstraint refer = null;
   1.591 +
   1.592 +      private IdentityConstraintImpl makeResult() {
   1.593 +        return new IdentityConstraintImpl($runtime.document,ann,$runtime.copyLocator(),fa,
   1.594 +          category,name,selector,fields,refer);
   1.595 +      }
   1.596 +
   1.597 +}

mercurial