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

changeset 286
f50545b5e2f1
child 397
b99d7e355d4b
     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/Schema.java	Tue Mar 06 16:09:35 2012 -0800
     1.3 @@ -0,0 +1,1315 @@
     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 +import javax.xml.parsers.SAXParserFactory;
    1.36 +import org.xml.sax.XMLReader;
    1.37 +
    1.38 +    import com.sun.xml.internal.xsom.*;
    1.39 +    import com.sun.xml.internal.xsom.parser.*;
    1.40 +    import com.sun.xml.internal.xsom.impl.*;
    1.41 +    import com.sun.xml.internal.xsom.impl.parser.*;
    1.42 +    import org.xml.sax.Locator;
    1.43 +    import org.xml.sax.ContentHandler;
    1.44 +    import org.xml.sax.helpers.*;
    1.45 +    import java.util.*;
    1.46 +    import java.math.BigInteger;
    1.47 +
    1.48 +
    1.49 +
    1.50 +public class Schema extends NGCCHandler {
    1.51 +    private Integer finalDefault;
    1.52 +    private boolean efd;
    1.53 +    private boolean afd;
    1.54 +    private Integer blockDefault;
    1.55 +    private ForeignAttributesImpl fa;
    1.56 +    private boolean includeMode;
    1.57 +    private AnnotationImpl anno;
    1.58 +    private ComplexTypeImpl ct;
    1.59 +    private ElementDecl e;
    1.60 +    private String defaultValue;
    1.61 +    private XSNotation notation;
    1.62 +    private AttGroupDeclImpl ag;
    1.63 +    private String fixedValue;
    1.64 +    private ModelGroupDeclImpl group;
    1.65 +    private AttributeDeclImpl ad;
    1.66 +    private SimpleTypeImpl st;
    1.67 +    private String expectedNamespace;
    1.68 +    protected final NGCCRuntimeEx $runtime;
    1.69 +    private int $_ngcc_current_state;
    1.70 +    protected String $uri;
    1.71 +    protected String $localName;
    1.72 +    protected String $qname;
    1.73 +
    1.74 +    public final NGCCRuntime getRuntime() {
    1.75 +        return($runtime);
    1.76 +    }
    1.77 +
    1.78 +    public Schema(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie, boolean _includeMode, String _expectedNamespace) {
    1.79 +        super(source, parent, cookie);
    1.80 +        $runtime = runtime;
    1.81 +        this.includeMode = _includeMode;
    1.82 +        this.expectedNamespace = _expectedNamespace;
    1.83 +        $_ngcc_current_state = 57;
    1.84 +    }
    1.85 +
    1.86 +    public Schema(NGCCRuntimeEx runtime, boolean _includeMode, String _expectedNamespace) {
    1.87 +        this(null, runtime, runtime, -1, _includeMode, _expectedNamespace);
    1.88 +    }
    1.89 +
    1.90 +    private void action0()throws SAXException {
    1.91 +        $runtime.checkDoubleDefError( $runtime.currentSchema.getAttGroupDecl(ag.getName()) );
    1.92 +            $runtime.currentSchema.addAttGroupDecl(ag,false);
    1.93 +}
    1.94 +
    1.95 +    private void action1()throws SAXException {
    1.96 +        $runtime.currentSchema.addNotation(notation);
    1.97 +}
    1.98 +
    1.99 +    private void action2()throws SAXException {
   1.100 +        $runtime.checkDoubleDefError( $runtime.currentSchema.getModelGroupDecl(group.getName()) );
   1.101 +            $runtime.currentSchema.addModelGroupDecl(group,false);
   1.102 +}
   1.103 +
   1.104 +    private void action3()throws SAXException {
   1.105 +        $runtime.checkDoubleDefError( $runtime.currentSchema.getAttributeDecl(ad.getName()) );
   1.106 +            $runtime.currentSchema.addAttributeDecl(ad);
   1.107 +}
   1.108 +
   1.109 +    private void action4()throws SAXException {
   1.110 +        locator = $runtime.copyLocator();
   1.111 +            defaultValue = null;
   1.112 +            fixedValue = null;
   1.113 +}
   1.114 +
   1.115 +    private void action5()throws SAXException {
   1.116 +        $runtime.checkDoubleDefError( $runtime.currentSchema.getType(ct.getName()) );
   1.117 +            $runtime.currentSchema.addComplexType(ct,false);
   1.118 +}
   1.119 +
   1.120 +    private void action6()throws SAXException {
   1.121 +        $runtime.checkDoubleDefError( $runtime.currentSchema.getType(st.getName()) );
   1.122 +            $runtime.currentSchema.addSimpleType(st,false);
   1.123 +}
   1.124 +
   1.125 +    private void action7()throws SAXException {
   1.126 +        $runtime.checkDoubleDefError( $runtime.currentSchema.getElementDecl(e.getName()) );
   1.127 +            $runtime.currentSchema.addElementDecl(e);
   1.128 +}
   1.129 +
   1.130 +    private void action8()throws SAXException {
   1.131 +        locator = $runtime.copyLocator();
   1.132 +}
   1.133 +
   1.134 +    private void action9()throws SAXException {
   1.135 +        $runtime.currentSchema.setAnnotation(anno);
   1.136 +}
   1.137 +
   1.138 +    private void action10()throws SAXException {
   1.139 +        $runtime.currentSchema.addForeignAttributes(fa);
   1.140 +}
   1.141 +
   1.142 +    private void action11()throws SAXException {
   1.143 +        $runtime.finalDefault=this.finalDefault.intValue();
   1.144 +}
   1.145 +
   1.146 +    private void action12()throws SAXException {
   1.147 +        $runtime.blockDefault=this.blockDefault.intValue();
   1.148 +}
   1.149 +
   1.150 +    private void action13()throws SAXException {
   1.151 +        $runtime.elementFormDefault = efd;
   1.152 +}
   1.153 +
   1.154 +    private void action14()throws SAXException {
   1.155 +        $runtime.attributeFormDefault = afd;
   1.156 +}
   1.157 +
   1.158 +    private void action15()throws SAXException {
   1.159 +        Attributes test = $runtime.getCurrentAttributes();
   1.160 +        String tns = test.getValue("targetNamespace");
   1.161 +
   1.162 +      if(!includeMode) {
   1.163 +        // importing
   1.164 +        if(tns==null) tns=""; // if not present, then the empty namespace
   1.165 +        $runtime.currentSchema = $runtime.parser.schemaSet.createSchema(tns,$runtime.copyLocator());
   1.166 +        if(expectedNamespace!=null && !expectedNamespace.equals(tns)) {
   1.167 +          $runtime.reportError(
   1.168 +            Messages.format("UnexpectedTargetnamespace.Import", tns, expectedNamespace, tns ),
   1.169 +            $runtime.getLocator());
   1.170 +        }
   1.171 +      } else {
   1.172 +        // including
   1.173 +
   1.174 +        // check the consistency of @targetNamespace.
   1.175 +        // @targetNamespace must be null or equal to the target namespace of the schema
   1.176 +        if(tns!=null && expectedNamespace!=null && !expectedNamespace.equals(tns)) {
   1.177 +          $runtime.reportError(
   1.178 +            Messages.format("UnexpectedTargetnamespace.Include", tns, expectedNamespace, tns ) );
   1.179 +        }
   1.180 +        $runtime.chameleonMode = true;
   1.181 +      }
   1.182 +
   1.183 +      // multiple inclusion test.
   1.184 +      if( $runtime.hasAlreadyBeenRead() ) {
   1.185 +          // skip this document
   1.186 +          $runtime.redirectSubtree(new DefaultHandler(),"","","" );
   1.187 +          return;
   1.188 +      }
   1.189 +
   1.190 +      anno = (AnnotationImpl)$runtime.currentSchema.getAnnotation();
   1.191 +      $runtime.blockDefault = 0;
   1.192 +      $runtime.finalDefault = 0;
   1.193 +}
   1.194 +
   1.195 +    public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException {
   1.196 +        int $ai;
   1.197 +        $uri = $__uri;
   1.198 +        $localName = $__local;
   1.199 +        $qname = $__qname;
   1.200 +        switch($_ngcc_current_state) {
   1.201 +        case 12:
   1.202 +            {
   1.203 +                if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) {
   1.204 +                    $runtime.consumeAttribute($ai);
   1.205 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.206 +                }
   1.207 +                else {
   1.208 +                    $_ngcc_current_state = 11;
   1.209 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.210 +                }
   1.211 +            }
   1.212 +            break;
   1.213 +        case 36:
   1.214 +            {
   1.215 +                if((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("notation")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("import")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("include"))))))))))))) {
   1.216 +                    NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 374, null);
   1.217 +                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.218 +                }
   1.219 +                else {
   1.220 +                    unexpectedEnterElement($__qname);
   1.221 +                }
   1.222 +            }
   1.223 +            break;
   1.224 +        case 1:
   1.225 +            {
   1.226 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) {
   1.227 +                    NGCCHandler h = new annotation(this, super._source, $runtime, 351, anno,AnnotationContext.SCHEMA);
   1.228 +                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.229 +                }
   1.230 +                else {
   1.231 +                    if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("include"))) {
   1.232 +                        NGCCHandler h = new includeDecl(this, super._source, $runtime, 352);
   1.233 +                        spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.234 +                    }
   1.235 +                    else {
   1.236 +                        if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("import"))) {
   1.237 +                            NGCCHandler h = new importDecl(this, super._source, $runtime, 353);
   1.238 +                            spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.239 +                        }
   1.240 +                        else {
   1.241 +                            if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine"))) {
   1.242 +                                NGCCHandler h = new redefine(this, super._source, $runtime, 354);
   1.243 +                                spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.244 +                            }
   1.245 +                            else {
   1.246 +                                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) {
   1.247 +                                    $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
   1.248 +                                    action8();
   1.249 +                                    $_ngcc_current_state = 27;
   1.250 +                                }
   1.251 +                                else {
   1.252 +                                    if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) {
   1.253 +                                        NGCCHandler h = new simpleType(this, super._source, $runtime, 356);
   1.254 +                                        spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.255 +                                    }
   1.256 +                                    else {
   1.257 +                                        if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) {
   1.258 +                                            NGCCHandler h = new complexType(this, super._source, $runtime, 357);
   1.259 +                                            spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.260 +                                        }
   1.261 +                                        else {
   1.262 +                                            if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) {
   1.263 +                                                $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
   1.264 +                                                action4();
   1.265 +                                                $_ngcc_current_state = 16;
   1.266 +                                            }
   1.267 +                                            else {
   1.268 +                                                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group"))) {
   1.269 +                                                    NGCCHandler h = new group(this, super._source, $runtime, 359);
   1.270 +                                                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.271 +                                                }
   1.272 +                                                else {
   1.273 +                                                    if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("notation"))) {
   1.274 +                                                        NGCCHandler h = new notation(this, super._source, $runtime, 360);
   1.275 +                                                        spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.276 +                                                    }
   1.277 +                                                    else {
   1.278 +                                                        if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup"))) {
   1.279 +                                                            NGCCHandler h = new attributeGroupDecl(this, super._source, $runtime, 361);
   1.280 +                                                            spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.281 +                                                        }
   1.282 +                                                        else {
   1.283 +                                                            unexpectedEnterElement($__qname);
   1.284 +                                                        }
   1.285 +                                                    }
   1.286 +                                                }
   1.287 +                                            }
   1.288 +                                        }
   1.289 +                                    }
   1.290 +                                }
   1.291 +                            }
   1.292 +                        }
   1.293 +                    }
   1.294 +                }
   1.295 +            }
   1.296 +            break;
   1.297 +        case 0:
   1.298 +            {
   1.299 +                revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs);
   1.300 +            }
   1.301 +            break;
   1.302 +        case 53:
   1.303 +            {
   1.304 +                if(($ai = $runtime.getAttributeIndex("","targetNamespace"))>=0) {
   1.305 +                    $runtime.consumeAttribute($ai);
   1.306 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.307 +                }
   1.308 +                else {
   1.309 +                    $_ngcc_current_state = 49;
   1.310 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.311 +                }
   1.312 +            }
   1.313 +            break;
   1.314 +        case 41:
   1.315 +            {
   1.316 +                if(($ai = $runtime.getAttributeIndex("","blockDefault"))>=0) {
   1.317 +                    $runtime.consumeAttribute($ai);
   1.318 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.319 +                }
   1.320 +                else {
   1.321 +                    $_ngcc_current_state = 37;
   1.322 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.323 +                }
   1.324 +            }
   1.325 +            break;
   1.326 +        case 37:
   1.327 +            {
   1.328 +                if(($ai = $runtime.getAttributeIndex("","finalDefault"))>=0) {
   1.329 +                    $runtime.consumeAttribute($ai);
   1.330 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.331 +                }
   1.332 +                else {
   1.333 +                    $_ngcc_current_state = 36;
   1.334 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.335 +                }
   1.336 +            }
   1.337 +            break;
   1.338 +        case 2:
   1.339 +            {
   1.340 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) {
   1.341 +                    NGCCHandler h = new annotation(this, super._source, $runtime, 362, anno,AnnotationContext.SCHEMA);
   1.342 +                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.343 +                }
   1.344 +                else {
   1.345 +                    if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("include"))) {
   1.346 +                        NGCCHandler h = new includeDecl(this, super._source, $runtime, 363);
   1.347 +                        spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.348 +                    }
   1.349 +                    else {
   1.350 +                        if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("import"))) {
   1.351 +                            NGCCHandler h = new importDecl(this, super._source, $runtime, 364);
   1.352 +                            spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.353 +                        }
   1.354 +                        else {
   1.355 +                            if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine"))) {
   1.356 +                                NGCCHandler h = new redefine(this, super._source, $runtime, 365);
   1.357 +                                spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.358 +                            }
   1.359 +                            else {
   1.360 +                                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) {
   1.361 +                                    $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
   1.362 +                                    action8();
   1.363 +                                    $_ngcc_current_state = 27;
   1.364 +                                }
   1.365 +                                else {
   1.366 +                                    if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) {
   1.367 +                                        NGCCHandler h = new simpleType(this, super._source, $runtime, 367);
   1.368 +                                        spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.369 +                                    }
   1.370 +                                    else {
   1.371 +                                        if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) {
   1.372 +                                            NGCCHandler h = new complexType(this, super._source, $runtime, 368);
   1.373 +                                            spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.374 +                                        }
   1.375 +                                        else {
   1.376 +                                            if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) {
   1.377 +                                                $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
   1.378 +                                                action4();
   1.379 +                                                $_ngcc_current_state = 16;
   1.380 +                                            }
   1.381 +                                            else {
   1.382 +                                                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group"))) {
   1.383 +                                                    NGCCHandler h = new group(this, super._source, $runtime, 370);
   1.384 +                                                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.385 +                                                }
   1.386 +                                                else {
   1.387 +                                                    if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("notation"))) {
   1.388 +                                                        NGCCHandler h = new notation(this, super._source, $runtime, 371);
   1.389 +                                                        spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.390 +                                                    }
   1.391 +                                                    else {
   1.392 +                                                        if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup"))) {
   1.393 +                                                            NGCCHandler h = new attributeGroupDecl(this, super._source, $runtime, 372);
   1.394 +                                                            spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.395 +                                                        }
   1.396 +                                                        else {
   1.397 +                                                            $_ngcc_current_state = 1;
   1.398 +                                                            $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.399 +                                                        }
   1.400 +                                                    }
   1.401 +                                                }
   1.402 +                                            }
   1.403 +                                        }
   1.404 +                                    }
   1.405 +                                }
   1.406 +                            }
   1.407 +                        }
   1.408 +                    }
   1.409 +                }
   1.410 +            }
   1.411 +            break;
   1.412 +        case 45:
   1.413 +            {
   1.414 +                if(($ai = $runtime.getAttributeIndex("","elementFormDefault"))>=0) {
   1.415 +                    $runtime.consumeAttribute($ai);
   1.416 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.417 +                }
   1.418 +                else {
   1.419 +                    $_ngcc_current_state = 41;
   1.420 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.421 +                }
   1.422 +            }
   1.423 +            break;
   1.424 +        case 57:
   1.425 +            {
   1.426 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("schema"))) {
   1.427 +                    $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs);
   1.428 +                    action15();
   1.429 +                    $_ngcc_current_state = 53;
   1.430 +                }
   1.431 +                else {
   1.432 +                    unexpectedEnterElement($__qname);
   1.433 +                }
   1.434 +            }
   1.435 +            break;
   1.436 +        case 27:
   1.437 +            {
   1.438 +                if((($ai = $runtime.getAttributeIndex("","name"))>=0 || (($ai = $runtime.getAttributeIndex("","final"))>=0 || (($ai = $runtime.getAttributeIndex("","form"))>=0 || (($ai = $runtime.getAttributeIndex("","block"))>=0 || (($ai = $runtime.getAttributeIndex("","fixed"))>=0 || (($ai = $runtime.getAttributeIndex("","default"))>=0 || ($ai = $runtime.getAttributeIndex("","abstract"))>=0))))))) {
   1.439 +                    NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 286, locator,true);
   1.440 +                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.441 +                }
   1.442 +                else {
   1.443 +                    unexpectedEnterElement($__qname);
   1.444 +                }
   1.445 +            }
   1.446 +            break;
   1.447 +        case 11:
   1.448 +            {
   1.449 +                if((($ai = $runtime.getAttributeIndex("","form"))>=0 || ($ai = $runtime.getAttributeIndex("","name"))>=0)) {
   1.450 +                    NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 268, locator,false,defaultValue,fixedValue);
   1.451 +                    spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs);
   1.452 +                }
   1.453 +                else {
   1.454 +                    unexpectedEnterElement($__qname);
   1.455 +                }
   1.456 +            }
   1.457 +            break;
   1.458 +        case 49:
   1.459 +            {
   1.460 +                if(($ai = $runtime.getAttributeIndex("","attributeFormDefault"))>=0) {
   1.461 +                    $runtime.consumeAttribute($ai);
   1.462 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.463 +                }
   1.464 +                else {
   1.465 +                    $_ngcc_current_state = 45;
   1.466 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.467 +                }
   1.468 +            }
   1.469 +            break;
   1.470 +        case 16:
   1.471 +            {
   1.472 +                if(($ai = $runtime.getAttributeIndex("","default"))>=0) {
   1.473 +                    $runtime.consumeAttribute($ai);
   1.474 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.475 +                }
   1.476 +                else {
   1.477 +                    $_ngcc_current_state = 12;
   1.478 +                    $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs);
   1.479 +                }
   1.480 +            }
   1.481 +            break;
   1.482 +        default:
   1.483 +            {
   1.484 +                unexpectedEnterElement($__qname);
   1.485 +            }
   1.486 +            break;
   1.487 +        }
   1.488 +    }
   1.489 +
   1.490 +    public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException {
   1.491 +        int $ai;
   1.492 +        $uri = $__uri;
   1.493 +        $localName = $__local;
   1.494 +        $qname = $__qname;
   1.495 +        switch($_ngcc_current_state) {
   1.496 +        case 12:
   1.497 +            {
   1.498 +                if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) {
   1.499 +                    $runtime.consumeAttribute($ai);
   1.500 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.501 +                }
   1.502 +                else {
   1.503 +                    $_ngcc_current_state = 11;
   1.504 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.505 +                }
   1.506 +            }
   1.507 +            break;
   1.508 +        case 36:
   1.509 +            {
   1.510 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("schema"))) {
   1.511 +                    NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 374, null);
   1.512 +                    spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
   1.513 +                }
   1.514 +                else {
   1.515 +                    unexpectedLeaveElement($__qname);
   1.516 +                }
   1.517 +            }
   1.518 +            break;
   1.519 +        case 1:
   1.520 +            {
   1.521 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("schema"))) {
   1.522 +                    $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
   1.523 +                    $_ngcc_current_state = 0;
   1.524 +                }
   1.525 +                else {
   1.526 +                    unexpectedLeaveElement($__qname);
   1.527 +                }
   1.528 +            }
   1.529 +            break;
   1.530 +        case 0:
   1.531 +            {
   1.532 +                revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname);
   1.533 +            }
   1.534 +            break;
   1.535 +        case 53:
   1.536 +            {
   1.537 +                if(($ai = $runtime.getAttributeIndex("","targetNamespace"))>=0) {
   1.538 +                    $runtime.consumeAttribute($ai);
   1.539 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.540 +                }
   1.541 +                else {
   1.542 +                    $_ngcc_current_state = 49;
   1.543 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.544 +                }
   1.545 +            }
   1.546 +            break;
   1.547 +        case 10:
   1.548 +            {
   1.549 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) {
   1.550 +                    $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
   1.551 +                    $_ngcc_current_state = 1;
   1.552 +                }
   1.553 +                else {
   1.554 +                    unexpectedLeaveElement($__qname);
   1.555 +                }
   1.556 +            }
   1.557 +            break;
   1.558 +        case 41:
   1.559 +            {
   1.560 +                if(($ai = $runtime.getAttributeIndex("","blockDefault"))>=0) {
   1.561 +                    $runtime.consumeAttribute($ai);
   1.562 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.563 +                }
   1.564 +                else {
   1.565 +                    $_ngcc_current_state = 37;
   1.566 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.567 +                }
   1.568 +            }
   1.569 +            break;
   1.570 +        case 45:
   1.571 +            {
   1.572 +                if(($ai = $runtime.getAttributeIndex("","elementFormDefault"))>=0) {
   1.573 +                    $runtime.consumeAttribute($ai);
   1.574 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.575 +                }
   1.576 +                else {
   1.577 +                    $_ngcc_current_state = 41;
   1.578 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.579 +                }
   1.580 +            }
   1.581 +            break;
   1.582 +        case 37:
   1.583 +            {
   1.584 +                if(($ai = $runtime.getAttributeIndex("","finalDefault"))>=0) {
   1.585 +                    $runtime.consumeAttribute($ai);
   1.586 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.587 +                }
   1.588 +                else {
   1.589 +                    $_ngcc_current_state = 36;
   1.590 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.591 +                }
   1.592 +            }
   1.593 +            break;
   1.594 +        case 2:
   1.595 +            {
   1.596 +                $_ngcc_current_state = 1;
   1.597 +                $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.598 +            }
   1.599 +            break;
   1.600 +        case 27:
   1.601 +            {
   1.602 +                if(((($ai = $runtime.getAttributeIndex("","name"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) || ((($ai = $runtime.getAttributeIndex("","final"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) || ((($ai = $runtime.getAttributeIndex("","form"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) || ((($ai = $runtime.getAttributeIndex("","block"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) || ((($ai = $runtime.getAttributeIndex("","fixed"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) || ((($ai = $runtime.getAttributeIndex("","default"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) || (($ai = $runtime.getAttributeIndex("","abstract"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element")))))))))) {
   1.603 +                    NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 286, locator,true);
   1.604 +                    spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
   1.605 +                }
   1.606 +                else {
   1.607 +                    unexpectedLeaveElement($__qname);
   1.608 +                }
   1.609 +            }
   1.610 +            break;
   1.611 +        case 11:
   1.612 +            {
   1.613 +                if(((($ai = $runtime.getAttributeIndex("","form"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) || (($ai = $runtime.getAttributeIndex("","name"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))))) {
   1.614 +                    NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 268, locator,false,defaultValue,fixedValue);
   1.615 +                    spawnChildFromLeaveElement(h, $__uri, $__local, $__qname);
   1.616 +                }
   1.617 +                else {
   1.618 +                    unexpectedLeaveElement($__qname);
   1.619 +                }
   1.620 +            }
   1.621 +            break;
   1.622 +        case 26:
   1.623 +            {
   1.624 +                if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) {
   1.625 +                    $runtime.onLeaveElementConsumed($__uri, $__local, $__qname);
   1.626 +                    $_ngcc_current_state = 1;
   1.627 +                }
   1.628 +                else {
   1.629 +                    unexpectedLeaveElement($__qname);
   1.630 +                }
   1.631 +            }
   1.632 +            break;
   1.633 +        case 49:
   1.634 +            {
   1.635 +                if(($ai = $runtime.getAttributeIndex("","attributeFormDefault"))>=0) {
   1.636 +                    $runtime.consumeAttribute($ai);
   1.637 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.638 +                }
   1.639 +                else {
   1.640 +                    $_ngcc_current_state = 45;
   1.641 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.642 +                }
   1.643 +            }
   1.644 +            break;
   1.645 +        case 16:
   1.646 +            {
   1.647 +                if(($ai = $runtime.getAttributeIndex("","default"))>=0) {
   1.648 +                    $runtime.consumeAttribute($ai);
   1.649 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.650 +                }
   1.651 +                else {
   1.652 +                    $_ngcc_current_state = 12;
   1.653 +                    $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname);
   1.654 +                }
   1.655 +            }
   1.656 +            break;
   1.657 +        default:
   1.658 +            {
   1.659 +                unexpectedLeaveElement($__qname);
   1.660 +            }
   1.661 +            break;
   1.662 +        }
   1.663 +    }
   1.664 +
   1.665 +    public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
   1.666 +        int $ai;
   1.667 +        $uri = $__uri;
   1.668 +        $localName = $__local;
   1.669 +        $qname = $__qname;
   1.670 +        switch($_ngcc_current_state) {
   1.671 +        case 12:
   1.672 +            {
   1.673 +                if(($__uri.equals("") && $__local.equals("fixed"))) {
   1.674 +                    $_ngcc_current_state = 14;
   1.675 +                }
   1.676 +                else {
   1.677 +                    $_ngcc_current_state = 11;
   1.678 +                    $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.679 +                }
   1.680 +            }
   1.681 +            break;
   1.682 +        case 0:
   1.683 +            {
   1.684 +                revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname);
   1.685 +            }
   1.686 +            break;
   1.687 +        case 27:
   1.688 +            {
   1.689 +                if((($__uri.equals("") && $__local.equals("name")) || (($__uri.equals("") && $__local.equals("final")) || (($__uri.equals("") && $__local.equals("form")) || (($__uri.equals("") && $__local.equals("block")) || (($__uri.equals("") && $__local.equals("fixed")) || (($__uri.equals("") && $__local.equals("default")) || ($__uri.equals("") && $__local.equals("abstract"))))))))) {
   1.690 +                    NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 286, locator,true);
   1.691 +                    spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
   1.692 +                }
   1.693 +                else {
   1.694 +                    unexpectedEnterAttribute($__qname);
   1.695 +                }
   1.696 +            }
   1.697 +            break;
   1.698 +        case 53:
   1.699 +            {
   1.700 +                if(($__uri.equals("") && $__local.equals("targetNamespace"))) {
   1.701 +                    $_ngcc_current_state = 55;
   1.702 +                }
   1.703 +                else {
   1.704 +                    $_ngcc_current_state = 49;
   1.705 +                    $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.706 +                }
   1.707 +            }
   1.708 +            break;
   1.709 +        case 11:
   1.710 +            {
   1.711 +                if((($__uri.equals("") && $__local.equals("form")) || ($__uri.equals("") && $__local.equals("name")))) {
   1.712 +                    NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 268, locator,false,defaultValue,fixedValue);
   1.713 +                    spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname);
   1.714 +                }
   1.715 +                else {
   1.716 +                    unexpectedEnterAttribute($__qname);
   1.717 +                }
   1.718 +            }
   1.719 +            break;
   1.720 +        case 41:
   1.721 +            {
   1.722 +                if(($__uri.equals("") && $__local.equals("blockDefault"))) {
   1.723 +                    $_ngcc_current_state = 43;
   1.724 +                }
   1.725 +                else {
   1.726 +                    $_ngcc_current_state = 37;
   1.727 +                    $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.728 +                }
   1.729 +            }
   1.730 +            break;
   1.731 +        case 49:
   1.732 +            {
   1.733 +                if(($__uri.equals("") && $__local.equals("attributeFormDefault"))) {
   1.734 +                    $_ngcc_current_state = 51;
   1.735 +                }
   1.736 +                else {
   1.737 +                    $_ngcc_current_state = 45;
   1.738 +                    $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.739 +                }
   1.740 +            }
   1.741 +            break;
   1.742 +        case 45:
   1.743 +            {
   1.744 +                if(($__uri.equals("") && $__local.equals("elementFormDefault"))) {
   1.745 +                    $_ngcc_current_state = 47;
   1.746 +                }
   1.747 +                else {
   1.748 +                    $_ngcc_current_state = 41;
   1.749 +                    $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.750 +                }
   1.751 +            }
   1.752 +            break;
   1.753 +        case 2:
   1.754 +            {
   1.755 +                $_ngcc_current_state = 1;
   1.756 +                $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.757 +            }
   1.758 +            break;
   1.759 +        case 37:
   1.760 +            {
   1.761 +                if(($__uri.equals("") && $__local.equals("finalDefault"))) {
   1.762 +                    $_ngcc_current_state = 39;
   1.763 +                }
   1.764 +                else {
   1.765 +                    $_ngcc_current_state = 36;
   1.766 +                    $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.767 +                }
   1.768 +            }
   1.769 +            break;
   1.770 +        case 16:
   1.771 +            {
   1.772 +                if(($__uri.equals("") && $__local.equals("default"))) {
   1.773 +                    $_ngcc_current_state = 18;
   1.774 +                }
   1.775 +                else {
   1.776 +                    $_ngcc_current_state = 12;
   1.777 +                    $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname);
   1.778 +                }
   1.779 +            }
   1.780 +            break;
   1.781 +        default:
   1.782 +            {
   1.783 +                unexpectedEnterAttribute($__qname);
   1.784 +            }
   1.785 +            break;
   1.786 +        }
   1.787 +    }
   1.788 +
   1.789 +    public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException {
   1.790 +        int $ai;
   1.791 +        $uri = $__uri;
   1.792 +        $localName = $__local;
   1.793 +        $qname = $__qname;
   1.794 +        switch($_ngcc_current_state) {
   1.795 +        case 12:
   1.796 +            {
   1.797 +                $_ngcc_current_state = 11;
   1.798 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.799 +            }
   1.800 +            break;
   1.801 +        case 0:
   1.802 +            {
   1.803 +                revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname);
   1.804 +            }
   1.805 +            break;
   1.806 +        case 53:
   1.807 +            {
   1.808 +                $_ngcc_current_state = 49;
   1.809 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.810 +            }
   1.811 +            break;
   1.812 +        case 41:
   1.813 +            {
   1.814 +                $_ngcc_current_state = 37;
   1.815 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.816 +            }
   1.817 +            break;
   1.818 +        case 45:
   1.819 +            {
   1.820 +                $_ngcc_current_state = 41;
   1.821 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.822 +            }
   1.823 +            break;
   1.824 +        case 2:
   1.825 +            {
   1.826 +                $_ngcc_current_state = 1;
   1.827 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.828 +            }
   1.829 +            break;
   1.830 +        case 37:
   1.831 +            {
   1.832 +                $_ngcc_current_state = 36;
   1.833 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.834 +            }
   1.835 +            break;
   1.836 +        case 50:
   1.837 +            {
   1.838 +                if(($__uri.equals("") && $__local.equals("attributeFormDefault"))) {
   1.839 +                    $_ngcc_current_state = 45;
   1.840 +                }
   1.841 +                else {
   1.842 +                    unexpectedLeaveAttribute($__qname);
   1.843 +                }
   1.844 +            }
   1.845 +            break;
   1.846 +        case 46:
   1.847 +            {
   1.848 +                if(($__uri.equals("") && $__local.equals("elementFormDefault"))) {
   1.849 +                    $_ngcc_current_state = 41;
   1.850 +                }
   1.851 +                else {
   1.852 +                    unexpectedLeaveAttribute($__qname);
   1.853 +                }
   1.854 +            }
   1.855 +            break;
   1.856 +        case 54:
   1.857 +            {
   1.858 +                if(($__uri.equals("") && $__local.equals("targetNamespace"))) {
   1.859 +                    $_ngcc_current_state = 49;
   1.860 +                }
   1.861 +                else {
   1.862 +                    unexpectedLeaveAttribute($__qname);
   1.863 +                }
   1.864 +            }
   1.865 +            break;
   1.866 +        case 13:
   1.867 +            {
   1.868 +                if(($__uri.equals("") && $__local.equals("fixed"))) {
   1.869 +                    $_ngcc_current_state = 11;
   1.870 +                }
   1.871 +                else {
   1.872 +                    unexpectedLeaveAttribute($__qname);
   1.873 +                }
   1.874 +            }
   1.875 +            break;
   1.876 +        case 17:
   1.877 +            {
   1.878 +                if(($__uri.equals("") && $__local.equals("default"))) {
   1.879 +                    $_ngcc_current_state = 12;
   1.880 +                }
   1.881 +                else {
   1.882 +                    unexpectedLeaveAttribute($__qname);
   1.883 +                }
   1.884 +            }
   1.885 +            break;
   1.886 +        case 42:
   1.887 +            {
   1.888 +                if(($__uri.equals("") && $__local.equals("blockDefault"))) {
   1.889 +                    $_ngcc_current_state = 37;
   1.890 +                }
   1.891 +                else {
   1.892 +                    unexpectedLeaveAttribute($__qname);
   1.893 +                }
   1.894 +            }
   1.895 +            break;
   1.896 +        case 38:
   1.897 +            {
   1.898 +                if(($__uri.equals("") && $__local.equals("finalDefault"))) {
   1.899 +                    $_ngcc_current_state = 36;
   1.900 +                }
   1.901 +                else {
   1.902 +                    unexpectedLeaveAttribute($__qname);
   1.903 +                }
   1.904 +            }
   1.905 +            break;
   1.906 +        case 49:
   1.907 +            {
   1.908 +                $_ngcc_current_state = 45;
   1.909 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.910 +            }
   1.911 +            break;
   1.912 +        case 16:
   1.913 +            {
   1.914 +                $_ngcc_current_state = 12;
   1.915 +                $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname);
   1.916 +            }
   1.917 +            break;
   1.918 +        default:
   1.919 +            {
   1.920 +                unexpectedLeaveAttribute($__qname);
   1.921 +            }
   1.922 +            break;
   1.923 +        }
   1.924 +    }
   1.925 +
   1.926 +    public void text(String $value) throws SAXException {
   1.927 +        int $ai;
   1.928 +        switch($_ngcc_current_state) {
   1.929 +        case 12:
   1.930 +            {
   1.931 +                if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) {
   1.932 +                    $runtime.consumeAttribute($ai);
   1.933 +                    $runtime.sendText(super._cookie, $value);
   1.934 +                }
   1.935 +                else {
   1.936 +                    $_ngcc_current_state = 11;
   1.937 +                    $runtime.sendText(super._cookie, $value);
   1.938 +                }
   1.939 +            }
   1.940 +            break;
   1.941 +        case 0:
   1.942 +            {
   1.943 +                revertToParentFromText(this, super._cookie, $value);
   1.944 +            }
   1.945 +            break;
   1.946 +        case 53:
   1.947 +            {
   1.948 +                if(($ai = $runtime.getAttributeIndex("","targetNamespace"))>=0) {
   1.949 +                    $runtime.consumeAttribute($ai);
   1.950 +                    $runtime.sendText(super._cookie, $value);
   1.951 +                }
   1.952 +                else {
   1.953 +                    $_ngcc_current_state = 49;
   1.954 +                    $runtime.sendText(super._cookie, $value);
   1.955 +                }
   1.956 +            }
   1.957 +            break;
   1.958 +        case 43:
   1.959 +            {
   1.960 +                NGCCHandler h = new ersSet(this, super._source, $runtime, 381);
   1.961 +                spawnChildFromText(h, $value);
   1.962 +            }
   1.963 +            break;
   1.964 +        case 41:
   1.965 +            {
   1.966 +                if(($ai = $runtime.getAttributeIndex("","blockDefault"))>=0) {
   1.967 +                    $runtime.consumeAttribute($ai);
   1.968 +                    $runtime.sendText(super._cookie, $value);
   1.969 +                }
   1.970 +                else {
   1.971 +                    $_ngcc_current_state = 37;
   1.972 +                    $runtime.sendText(super._cookie, $value);
   1.973 +                }
   1.974 +            }
   1.975 +            break;
   1.976 +        case 45:
   1.977 +            {
   1.978 +                if(($ai = $runtime.getAttributeIndex("","elementFormDefault"))>=0) {
   1.979 +                    $runtime.consumeAttribute($ai);
   1.980 +                    $runtime.sendText(super._cookie, $value);
   1.981 +                }
   1.982 +                else {
   1.983 +                    $_ngcc_current_state = 41;
   1.984 +                    $runtime.sendText(super._cookie, $value);
   1.985 +                }
   1.986 +            }
   1.987 +            break;
   1.988 +        case 2:
   1.989 +            {
   1.990 +                $_ngcc_current_state = 1;
   1.991 +                $runtime.sendText(super._cookie, $value);
   1.992 +            }
   1.993 +            break;
   1.994 +        case 37:
   1.995 +            {
   1.996 +                if(($ai = $runtime.getAttributeIndex("","finalDefault"))>=0) {
   1.997 +                    $runtime.consumeAttribute($ai);
   1.998 +                    $runtime.sendText(super._cookie, $value);
   1.999 +                }
  1.1000 +                else {
  1.1001 +                    $_ngcc_current_state = 36;
  1.1002 +                    $runtime.sendText(super._cookie, $value);
  1.1003 +                }
  1.1004 +            }
  1.1005 +            break;
  1.1006 +        case 55:
  1.1007 +            {
  1.1008 +                $_ngcc_current_state = 54;
  1.1009 +            }
  1.1010 +            break;
  1.1011 +        case 14:
  1.1012 +            {
  1.1013 +                fixedValue = $value;
  1.1014 +                $_ngcc_current_state = 13;
  1.1015 +            }
  1.1016 +            break;
  1.1017 +        case 47:
  1.1018 +            {
  1.1019 +                if($value.equals("unqualified")) {
  1.1020 +                    NGCCHandler h = new qualification(this, super._source, $runtime, 386);
  1.1021 +                    spawnChildFromText(h, $value);
  1.1022 +                }
  1.1023 +                else {
  1.1024 +                    if($value.equals("qualified")) {
  1.1025 +                        NGCCHandler h = new qualification(this, super._source, $runtime, 386);
  1.1026 +                        spawnChildFromText(h, $value);
  1.1027 +                    }
  1.1028 +                }
  1.1029 +            }
  1.1030 +            break;
  1.1031 +        case 39:
  1.1032 +            {
  1.1033 +                NGCCHandler h = new erSet(this, super._source, $runtime, 376);
  1.1034 +                spawnChildFromText(h, $value);
  1.1035 +            }
  1.1036 +            break;
  1.1037 +        case 27:
  1.1038 +            {
  1.1039 +                if(($ai = $runtime.getAttributeIndex("","abstract"))>=0) {
  1.1040 +                    NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 286, locator,true);
  1.1041 +                    spawnChildFromText(h, $value);
  1.1042 +                }
  1.1043 +                else {
  1.1044 +                    if(($ai = $runtime.getAttributeIndex("","default"))>=0) {
  1.1045 +                        NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 286, locator,true);
  1.1046 +                        spawnChildFromText(h, $value);
  1.1047 +                    }
  1.1048 +                    else {
  1.1049 +                        if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) {
  1.1050 +                            NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 286, locator,true);
  1.1051 +                            spawnChildFromText(h, $value);
  1.1052 +                        }
  1.1053 +                        else {
  1.1054 +                            if(($ai = $runtime.getAttributeIndex("","block"))>=0) {
  1.1055 +                                NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 286, locator,true);
  1.1056 +                                spawnChildFromText(h, $value);
  1.1057 +                            }
  1.1058 +                            else {
  1.1059 +                                if(($ai = $runtime.getAttributeIndex("","form"))>=0) {
  1.1060 +                                    NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 286, locator,true);
  1.1061 +                                    spawnChildFromText(h, $value);
  1.1062 +                                }
  1.1063 +                                else {
  1.1064 +                                    if(($ai = $runtime.getAttributeIndex("","final"))>=0) {
  1.1065 +                                        NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 286, locator,true);
  1.1066 +                                        spawnChildFromText(h, $value);
  1.1067 +                                    }
  1.1068 +                                    else {
  1.1069 +                                        if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
  1.1070 +                                            NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 286, locator,true);
  1.1071 +                                            spawnChildFromText(h, $value);
  1.1072 +                                        }
  1.1073 +                                    }
  1.1074 +                                }
  1.1075 +                            }
  1.1076 +                        }
  1.1077 +                    }
  1.1078 +                }
  1.1079 +            }
  1.1080 +            break;
  1.1081 +        case 11:
  1.1082 +            {
  1.1083 +                if(($ai = $runtime.getAttributeIndex("","name"))>=0) {
  1.1084 +                    NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 268, locator,false,defaultValue,fixedValue);
  1.1085 +                    spawnChildFromText(h, $value);
  1.1086 +                }
  1.1087 +                else {
  1.1088 +                    if(($ai = $runtime.getAttributeIndex("","form"))>=0) {
  1.1089 +                        NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 268, locator,false,defaultValue,fixedValue);
  1.1090 +                        spawnChildFromText(h, $value);
  1.1091 +                    }
  1.1092 +                }
  1.1093 +            }
  1.1094 +            break;
  1.1095 +        case 18:
  1.1096 +            {
  1.1097 +                defaultValue = $value;
  1.1098 +                $_ngcc_current_state = 17;
  1.1099 +            }
  1.1100 +            break;
  1.1101 +        case 51:
  1.1102 +            {
  1.1103 +                if($value.equals("unqualified")) {
  1.1104 +                    NGCCHandler h = new qualification(this, super._source, $runtime, 391);
  1.1105 +                    spawnChildFromText(h, $value);
  1.1106 +                }
  1.1107 +                else {
  1.1108 +                    if($value.equals("qualified")) {
  1.1109 +                        NGCCHandler h = new qualification(this, super._source, $runtime, 391);
  1.1110 +                        spawnChildFromText(h, $value);
  1.1111 +                    }
  1.1112 +                }
  1.1113 +            }
  1.1114 +            break;
  1.1115 +        case 49:
  1.1116 +            {
  1.1117 +                if(($ai = $runtime.getAttributeIndex("","attributeFormDefault"))>=0) {
  1.1118 +                    $runtime.consumeAttribute($ai);
  1.1119 +                    $runtime.sendText(super._cookie, $value);
  1.1120 +                }
  1.1121 +                else {
  1.1122 +                    $_ngcc_current_state = 45;
  1.1123 +                    $runtime.sendText(super._cookie, $value);
  1.1124 +                }
  1.1125 +            }
  1.1126 +            break;
  1.1127 +        case 16:
  1.1128 +            {
  1.1129 +                if(($ai = $runtime.getAttributeIndex("","default"))>=0) {
  1.1130 +                    $runtime.consumeAttribute($ai);
  1.1131 +                    $runtime.sendText(super._cookie, $value);
  1.1132 +                }
  1.1133 +                else {
  1.1134 +                    $_ngcc_current_state = 12;
  1.1135 +                    $runtime.sendText(super._cookie, $value);
  1.1136 +                }
  1.1137 +            }
  1.1138 +            break;
  1.1139 +        }
  1.1140 +    }
  1.1141 +
  1.1142 +    public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException {
  1.1143 +        switch($__cookie__) {
  1.1144 +        case 381:
  1.1145 +            {
  1.1146 +                blockDefault = ((Integer)$__result__);
  1.1147 +                action12();
  1.1148 +                $_ngcc_current_state = 42;
  1.1149 +            }
  1.1150 +            break;
  1.1151 +        case 268:
  1.1152 +            {
  1.1153 +                ad = ((AttributeDeclImpl)$__result__);
  1.1154 +                action3();
  1.1155 +                $_ngcc_current_state = 10;
  1.1156 +            }
  1.1157 +            break;
  1.1158 +        case 391:
  1.1159 +            {
  1.1160 +                afd = ((Boolean)$__result__).booleanValue();
  1.1161 +                action14();
  1.1162 +                $_ngcc_current_state = 50;
  1.1163 +            }
  1.1164 +            break;
  1.1165 +        case 386:
  1.1166 +            {
  1.1167 +                efd = ((Boolean)$__result__).booleanValue();
  1.1168 +                action13();
  1.1169 +                $_ngcc_current_state = 46;
  1.1170 +            }
  1.1171 +            break;
  1.1172 +        case 351:
  1.1173 +            {
  1.1174 +                anno = ((AnnotationImpl)$__result__);
  1.1175 +                action9();
  1.1176 +                $_ngcc_current_state = 1;
  1.1177 +            }
  1.1178 +            break;
  1.1179 +        case 352:
  1.1180 +            {
  1.1181 +                $_ngcc_current_state = 1;
  1.1182 +            }
  1.1183 +            break;
  1.1184 +        case 353:
  1.1185 +            {
  1.1186 +                $_ngcc_current_state = 1;
  1.1187 +            }
  1.1188 +            break;
  1.1189 +        case 354:
  1.1190 +            {
  1.1191 +                $_ngcc_current_state = 1;
  1.1192 +            }
  1.1193 +            break;
  1.1194 +        case 356:
  1.1195 +            {
  1.1196 +                st = ((SimpleTypeImpl)$__result__);
  1.1197 +                action6();
  1.1198 +                $_ngcc_current_state = 1;
  1.1199 +            }
  1.1200 +            break;
  1.1201 +        case 357:
  1.1202 +            {
  1.1203 +                ct = ((ComplexTypeImpl)$__result__);
  1.1204 +                action5();
  1.1205 +                $_ngcc_current_state = 1;
  1.1206 +            }
  1.1207 +            break;
  1.1208 +        case 359:
  1.1209 +            {
  1.1210 +                group = ((ModelGroupDeclImpl)$__result__);
  1.1211 +                action2();
  1.1212 +                $_ngcc_current_state = 1;
  1.1213 +            }
  1.1214 +            break;
  1.1215 +        case 360:
  1.1216 +            {
  1.1217 +                notation = ((XSNotation)$__result__);
  1.1218 +                action1();
  1.1219 +                $_ngcc_current_state = 1;
  1.1220 +            }
  1.1221 +            break;
  1.1222 +        case 361:
  1.1223 +            {
  1.1224 +                ag = ((AttGroupDeclImpl)$__result__);
  1.1225 +                action0();
  1.1226 +                $_ngcc_current_state = 1;
  1.1227 +            }
  1.1228 +            break;
  1.1229 +        case 286:
  1.1230 +            {
  1.1231 +                e = ((ElementDecl)$__result__);
  1.1232 +                action7();
  1.1233 +                $_ngcc_current_state = 26;
  1.1234 +            }
  1.1235 +            break;
  1.1236 +        case 374:
  1.1237 +            {
  1.1238 +                fa = ((ForeignAttributesImpl)$__result__);
  1.1239 +                action10();
  1.1240 +                $_ngcc_current_state = 2;
  1.1241 +            }
  1.1242 +            break;
  1.1243 +        case 362:
  1.1244 +            {
  1.1245 +                anno = ((AnnotationImpl)$__result__);
  1.1246 +                action9();
  1.1247 +                $_ngcc_current_state = 1;
  1.1248 +            }
  1.1249 +            break;
  1.1250 +        case 363:
  1.1251 +            {
  1.1252 +                $_ngcc_current_state = 1;
  1.1253 +            }
  1.1254 +            break;
  1.1255 +        case 364:
  1.1256 +            {
  1.1257 +                $_ngcc_current_state = 1;
  1.1258 +            }
  1.1259 +            break;
  1.1260 +        case 365:
  1.1261 +            {
  1.1262 +                $_ngcc_current_state = 1;
  1.1263 +            }
  1.1264 +            break;
  1.1265 +        case 367:
  1.1266 +            {
  1.1267 +                st = ((SimpleTypeImpl)$__result__);
  1.1268 +                action6();
  1.1269 +                $_ngcc_current_state = 1;
  1.1270 +            }
  1.1271 +            break;
  1.1272 +        case 368:
  1.1273 +            {
  1.1274 +                ct = ((ComplexTypeImpl)$__result__);
  1.1275 +                action5();
  1.1276 +                $_ngcc_current_state = 1;
  1.1277 +            }
  1.1278 +            break;
  1.1279 +        case 370:
  1.1280 +            {
  1.1281 +                group = ((ModelGroupDeclImpl)$__result__);
  1.1282 +                action2();
  1.1283 +                $_ngcc_current_state = 1;
  1.1284 +            }
  1.1285 +            break;
  1.1286 +        case 371:
  1.1287 +            {
  1.1288 +                notation = ((XSNotation)$__result__);
  1.1289 +                action1();
  1.1290 +                $_ngcc_current_state = 1;
  1.1291 +            }
  1.1292 +            break;
  1.1293 +        case 372:
  1.1294 +            {
  1.1295 +                ag = ((AttGroupDeclImpl)$__result__);
  1.1296 +                action0();
  1.1297 +                $_ngcc_current_state = 1;
  1.1298 +            }
  1.1299 +            break;
  1.1300 +        case 376:
  1.1301 +            {
  1.1302 +                finalDefault = ((Integer)$__result__);
  1.1303 +                action11();
  1.1304 +                $_ngcc_current_state = 38;
  1.1305 +            }
  1.1306 +            break;
  1.1307 +        }
  1.1308 +    }
  1.1309 +
  1.1310 +    public boolean accepted() {
  1.1311 +        return(($_ngcc_current_state == 0));
  1.1312 +    }
  1.1313 +
  1.1314 +
  1.1315 +      private String tns=null;  // it defaults to the no namespace.
  1.1316 +      private Locator locator;
  1.1317 +
  1.1318 +}

mercurial