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 Wed Apr 27 01:27:09 2016 +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 49: 1.202 + { 1.203 + if(($ai = $runtime.getAttributeIndex("","attributeFormDefault"))>=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 = 45; 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("annotation")) || (($__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("include")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType")) || (($__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("attributeGroup")) || (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("import"))))))))))))) { 1.216 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 527, 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 0: 1.225 + { 1.226 + revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs); 1.227 + } 1.228 + break; 1.229 + case 16: 1.230 + { 1.231 + if(($ai = $runtime.getAttributeIndex("","default"))>=0) { 1.232 + $runtime.consumeAttribute($ai); 1.233 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.234 + } 1.235 + else { 1.236 + $_ngcc_current_state = 12; 1.237 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.238 + } 1.239 + } 1.240 + break; 1.241 + case 53: 1.242 + { 1.243 + if(($ai = $runtime.getAttributeIndex("","targetNamespace"))>=0) { 1.244 + $runtime.consumeAttribute($ai); 1.245 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.246 + } 1.247 + else { 1.248 + $_ngcc_current_state = 49; 1.249 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.250 + } 1.251 + } 1.252 + break; 1.253 + case 37: 1.254 + { 1.255 + if(($ai = $runtime.getAttributeIndex("","finalDefault"))>=0) { 1.256 + $runtime.consumeAttribute($ai); 1.257 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.258 + } 1.259 + else { 1.260 + $_ngcc_current_state = 36; 1.261 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.262 + } 1.263 + } 1.264 + break; 1.265 + case 12: 1.266 + { 1.267 + if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { 1.268 + $runtime.consumeAttribute($ai); 1.269 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.270 + } 1.271 + else { 1.272 + $_ngcc_current_state = 11; 1.273 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.274 + } 1.275 + } 1.276 + break; 1.277 + case 45: 1.278 + { 1.279 + if(($ai = $runtime.getAttributeIndex("","elementFormDefault"))>=0) { 1.280 + $runtime.consumeAttribute($ai); 1.281 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.282 + } 1.283 + else { 1.284 + $_ngcc_current_state = 41; 1.285 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.286 + } 1.287 + } 1.288 + break; 1.289 + case 41: 1.290 + { 1.291 + if(($ai = $runtime.getAttributeIndex("","blockDefault"))>=0) { 1.292 + $runtime.consumeAttribute($ai); 1.293 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.294 + } 1.295 + else { 1.296 + $_ngcc_current_state = 37; 1.297 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.298 + } 1.299 + } 1.300 + break; 1.301 + case 2: 1.302 + { 1.303 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { 1.304 + NGCCHandler h = new annotation(this, super._source, $runtime, 515, anno,AnnotationContext.SCHEMA); 1.305 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.306 + } 1.307 + else { 1.308 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("include"))) { 1.309 + NGCCHandler h = new includeDecl(this, super._source, $runtime, 516); 1.310 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.311 + } 1.312 + else { 1.313 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("import"))) { 1.314 + NGCCHandler h = new importDecl(this, super._source, $runtime, 517); 1.315 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.316 + } 1.317 + else { 1.318 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine"))) { 1.319 + NGCCHandler h = new redefine(this, super._source, $runtime, 518); 1.320 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.321 + } 1.322 + else { 1.323 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) { 1.324 + $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); 1.325 + action8(); 1.326 + $_ngcc_current_state = 27; 1.327 + } 1.328 + else { 1.329 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { 1.330 + NGCCHandler h = new simpleType(this, super._source, $runtime, 520); 1.331 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.332 + } 1.333 + else { 1.334 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) { 1.335 + NGCCHandler h = new complexType(this, super._source, $runtime, 521); 1.336 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.337 + } 1.338 + else { 1.339 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) { 1.340 + $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); 1.341 + action4(); 1.342 + $_ngcc_current_state = 16; 1.343 + } 1.344 + else { 1.345 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group"))) { 1.346 + NGCCHandler h = new group(this, super._source, $runtime, 523); 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("notation"))) { 1.351 + NGCCHandler h = new notation(this, super._source, $runtime, 524); 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("attributeGroup"))) { 1.356 + NGCCHandler h = new attributeGroupDecl(this, super._source, $runtime, 525); 1.357 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.358 + } 1.359 + else { 1.360 + $_ngcc_current_state = 1; 1.361 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.362 + } 1.363 + } 1.364 + } 1.365 + } 1.366 + } 1.367 + } 1.368 + } 1.369 + } 1.370 + } 1.371 + } 1.372 + } 1.373 + } 1.374 + break; 1.375 + case 27: 1.376 + { 1.377 + if((($ai = $runtime.getAttributeIndex("","default"))>=0 || (($ai = $runtime.getAttributeIndex("","fixed"))>=0 || (($ai = $runtime.getAttributeIndex("","form"))>=0 || (($ai = $runtime.getAttributeIndex("","final"))>=0 || (($ai = $runtime.getAttributeIndex("","block"))>=0 || (($ai = $runtime.getAttributeIndex("","name"))>=0 || ($ai = $runtime.getAttributeIndex("","abstract"))>=0))))))) { 1.378 + NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); 1.379 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.380 + } 1.381 + else { 1.382 + unexpectedEnterElement($__qname); 1.383 + } 1.384 + } 1.385 + break; 1.386 + case 57: 1.387 + { 1.388 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("schema"))) { 1.389 + $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); 1.390 + action15(); 1.391 + $_ngcc_current_state = 53; 1.392 + } 1.393 + else { 1.394 + unexpectedEnterElement($__qname); 1.395 + } 1.396 + } 1.397 + break; 1.398 + case 11: 1.399 + { 1.400 + if((($ai = $runtime.getAttributeIndex("","name"))>=0 || ($ai = $runtime.getAttributeIndex("","form"))>=0)) { 1.401 + NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 421, locator,false,defaultValue,fixedValue); 1.402 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.403 + } 1.404 + else { 1.405 + unexpectedEnterElement($__qname); 1.406 + } 1.407 + } 1.408 + break; 1.409 + case 1: 1.410 + { 1.411 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { 1.412 + NGCCHandler h = new annotation(this, super._source, $runtime, 504, anno,AnnotationContext.SCHEMA); 1.413 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.414 + } 1.415 + else { 1.416 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("include"))) { 1.417 + NGCCHandler h = new includeDecl(this, super._source, $runtime, 505); 1.418 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.419 + } 1.420 + else { 1.421 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("import"))) { 1.422 + NGCCHandler h = new importDecl(this, super._source, $runtime, 506); 1.423 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.424 + } 1.425 + else { 1.426 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine"))) { 1.427 + NGCCHandler h = new redefine(this, super._source, $runtime, 507); 1.428 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.429 + } 1.430 + else { 1.431 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) { 1.432 + $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); 1.433 + action8(); 1.434 + $_ngcc_current_state = 27; 1.435 + } 1.436 + else { 1.437 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { 1.438 + NGCCHandler h = new simpleType(this, super._source, $runtime, 509); 1.439 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.440 + } 1.441 + else { 1.442 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) { 1.443 + NGCCHandler h = new complexType(this, super._source, $runtime, 510); 1.444 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.445 + } 1.446 + else { 1.447 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) { 1.448 + $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); 1.449 + action4(); 1.450 + $_ngcc_current_state = 16; 1.451 + } 1.452 + else { 1.453 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group"))) { 1.454 + NGCCHandler h = new group(this, super._source, $runtime, 512); 1.455 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.456 + } 1.457 + else { 1.458 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("notation"))) { 1.459 + NGCCHandler h = new notation(this, super._source, $runtime, 513); 1.460 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.461 + } 1.462 + else { 1.463 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup"))) { 1.464 + NGCCHandler h = new attributeGroupDecl(this, super._source, $runtime, 514); 1.465 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.466 + } 1.467 + else { 1.468 + unexpectedEnterElement($__qname); 1.469 + } 1.470 + } 1.471 + } 1.472 + } 1.473 + } 1.474 + } 1.475 + } 1.476 + } 1.477 + } 1.478 + } 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 49: 1.497 + { 1.498 + if(($ai = $runtime.getAttributeIndex("","attributeFormDefault"))>=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 = 45; 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, 527, 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 0: 1.520 + { 1.521 + revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname); 1.522 + } 1.523 + break; 1.524 + case 10: 1.525 + { 1.526 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) { 1.527 + $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); 1.528 + $_ngcc_current_state = 1; 1.529 + } 1.530 + else { 1.531 + unexpectedLeaveElement($__qname); 1.532 + } 1.533 + } 1.534 + break; 1.535 + case 16: 1.536 + { 1.537 + if(($ai = $runtime.getAttributeIndex("","default"))>=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 = 12; 1.543 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.544 + } 1.545 + } 1.546 + break; 1.547 + case 53: 1.548 + { 1.549 + if(($ai = $runtime.getAttributeIndex("","targetNamespace"))>=0) { 1.550 + $runtime.consumeAttribute($ai); 1.551 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.552 + } 1.553 + else { 1.554 + $_ngcc_current_state = 49; 1.555 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.556 + } 1.557 + } 1.558 + break; 1.559 + case 26: 1.560 + { 1.561 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) { 1.562 + $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); 1.563 + $_ngcc_current_state = 1; 1.564 + } 1.565 + else { 1.566 + unexpectedLeaveElement($__qname); 1.567 + } 1.568 + } 1.569 + break; 1.570 + case 37: 1.571 + { 1.572 + if(($ai = $runtime.getAttributeIndex("","finalDefault"))>=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 = 36; 1.578 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.579 + } 1.580 + } 1.581 + break; 1.582 + case 12: 1.583 + { 1.584 + if(($ai = $runtime.getAttributeIndex("","fixed"))>=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 = 11; 1.590 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.591 + } 1.592 + } 1.593 + break; 1.594 + case 45: 1.595 + { 1.596 + if(($ai = $runtime.getAttributeIndex("","elementFormDefault"))>=0) { 1.597 + $runtime.consumeAttribute($ai); 1.598 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.599 + } 1.600 + else { 1.601 + $_ngcc_current_state = 41; 1.602 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.603 + } 1.604 + } 1.605 + break; 1.606 + case 41: 1.607 + { 1.608 + if(($ai = $runtime.getAttributeIndex("","blockDefault"))>=0) { 1.609 + $runtime.consumeAttribute($ai); 1.610 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.611 + } 1.612 + else { 1.613 + $_ngcc_current_state = 37; 1.614 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.615 + } 1.616 + } 1.617 + break; 1.618 + case 2: 1.619 + { 1.620 + $_ngcc_current_state = 1; 1.621 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.622 + } 1.623 + break; 1.624 + case 27: 1.625 + { 1.626 + if(((($ai = $runtime.getAttributeIndex("","default"))>=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("","form"))>=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("","block"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) || ((($ai = $runtime.getAttributeIndex("","name"))>=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.627 + NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); 1.628 + spawnChildFromLeaveElement(h, $__uri, $__local, $__qname); 1.629 + } 1.630 + else { 1.631 + unexpectedLeaveElement($__qname); 1.632 + } 1.633 + } 1.634 + break; 1.635 + case 11: 1.636 + { 1.637 + if(((($ai = $runtime.getAttributeIndex("","name"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) || (($ai = $runtime.getAttributeIndex("","form"))>=0 && ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))))) { 1.638 + NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 421, locator,false,defaultValue,fixedValue); 1.639 + spawnChildFromLeaveElement(h, $__uri, $__local, $__qname); 1.640 + } 1.641 + else { 1.642 + unexpectedLeaveElement($__qname); 1.643 + } 1.644 + } 1.645 + break; 1.646 + case 1: 1.647 + { 1.648 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("schema"))) { 1.649 + $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); 1.650 + $_ngcc_current_state = 0; 1.651 + } 1.652 + else { 1.653 + unexpectedLeaveElement($__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 49: 1.672 + { 1.673 + if(($__uri.equals("") && $__local.equals("attributeFormDefault"))) { 1.674 + $_ngcc_current_state = 51; 1.675 + } 1.676 + else { 1.677 + $_ngcc_current_state = 45; 1.678 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.679 + } 1.680 + } 1.681 + break; 1.682 + case 45: 1.683 + { 1.684 + if(($__uri.equals("") && $__local.equals("elementFormDefault"))) { 1.685 + $_ngcc_current_state = 47; 1.686 + } 1.687 + else { 1.688 + $_ngcc_current_state = 41; 1.689 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.690 + } 1.691 + } 1.692 + break; 1.693 + case 41: 1.694 + { 1.695 + if(($__uri.equals("") && $__local.equals("blockDefault"))) { 1.696 + $_ngcc_current_state = 43; 1.697 + } 1.698 + else { 1.699 + $_ngcc_current_state = 37; 1.700 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.701 + } 1.702 + } 1.703 + break; 1.704 + case 2: 1.705 + { 1.706 + $_ngcc_current_state = 1; 1.707 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.708 + } 1.709 + break; 1.710 + case 27: 1.711 + { 1.712 + if((($__uri.equals("") && $__local.equals("default")) || (($__uri.equals("") && $__local.equals("fixed")) || (($__uri.equals("") && $__local.equals("form")) || (($__uri.equals("") && $__local.equals("final")) || (($__uri.equals("") && $__local.equals("block")) || (($__uri.equals("") && $__local.equals("name")) || ($__uri.equals("") && $__local.equals("abstract"))))))))) { 1.713 + NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); 1.714 + spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname); 1.715 + } 1.716 + else { 1.717 + unexpectedEnterAttribute($__qname); 1.718 + } 1.719 + } 1.720 + break; 1.721 + case 0: 1.722 + { 1.723 + revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname); 1.724 + } 1.725 + break; 1.726 + case 16: 1.727 + { 1.728 + if(($__uri.equals("") && $__local.equals("default"))) { 1.729 + $_ngcc_current_state = 18; 1.730 + } 1.731 + else { 1.732 + $_ngcc_current_state = 12; 1.733 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.734 + } 1.735 + } 1.736 + break; 1.737 + case 37: 1.738 + { 1.739 + if(($__uri.equals("") && $__local.equals("finalDefault"))) { 1.740 + $_ngcc_current_state = 39; 1.741 + } 1.742 + else { 1.743 + $_ngcc_current_state = 36; 1.744 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.745 + } 1.746 + } 1.747 + break; 1.748 + case 53: 1.749 + { 1.750 + if(($__uri.equals("") && $__local.equals("targetNamespace"))) { 1.751 + $_ngcc_current_state = 55; 1.752 + } 1.753 + else { 1.754 + $_ngcc_current_state = 49; 1.755 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.756 + } 1.757 + } 1.758 + break; 1.759 + case 11: 1.760 + { 1.761 + if((($__uri.equals("") && $__local.equals("name")) || ($__uri.equals("") && $__local.equals("form")))) { 1.762 + NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 421, locator,false,defaultValue,fixedValue); 1.763 + spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname); 1.764 + } 1.765 + else { 1.766 + unexpectedEnterAttribute($__qname); 1.767 + } 1.768 + } 1.769 + break; 1.770 + case 12: 1.771 + { 1.772 + if(($__uri.equals("") && $__local.equals("fixed"))) { 1.773 + $_ngcc_current_state = 14; 1.774 + } 1.775 + else { 1.776 + $_ngcc_current_state = 11; 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 49: 1.796 + { 1.797 + $_ngcc_current_state = 45; 1.798 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.799 + } 1.800 + break; 1.801 + case 38: 1.802 + { 1.803 + if(($__uri.equals("") && $__local.equals("finalDefault"))) { 1.804 + $_ngcc_current_state = 36; 1.805 + } 1.806 + else { 1.807 + unexpectedLeaveAttribute($__qname); 1.808 + } 1.809 + } 1.810 + break; 1.811 + case 0: 1.812 + { 1.813 + revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname); 1.814 + } 1.815 + break; 1.816 + case 16: 1.817 + { 1.818 + $_ngcc_current_state = 12; 1.819 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.820 + } 1.821 + break; 1.822 + case 13: 1.823 + { 1.824 + if(($__uri.equals("") && $__local.equals("fixed"))) { 1.825 + $_ngcc_current_state = 11; 1.826 + } 1.827 + else { 1.828 + unexpectedLeaveAttribute($__qname); 1.829 + } 1.830 + } 1.831 + break; 1.832 + case 53: 1.833 + { 1.834 + $_ngcc_current_state = 49; 1.835 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.836 + } 1.837 + break; 1.838 + case 37: 1.839 + { 1.840 + $_ngcc_current_state = 36; 1.841 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.842 + } 1.843 + break; 1.844 + case 17: 1.845 + { 1.846 + if(($__uri.equals("") && $__local.equals("default"))) { 1.847 + $_ngcc_current_state = 12; 1.848 + } 1.849 + else { 1.850 + unexpectedLeaveAttribute($__qname); 1.851 + } 1.852 + } 1.853 + break; 1.854 + case 12: 1.855 + { 1.856 + $_ngcc_current_state = 11; 1.857 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.858 + } 1.859 + break; 1.860 + case 50: 1.861 + { 1.862 + if(($__uri.equals("") && $__local.equals("attributeFormDefault"))) { 1.863 + $_ngcc_current_state = 45; 1.864 + } 1.865 + else { 1.866 + unexpectedLeaveAttribute($__qname); 1.867 + } 1.868 + } 1.869 + break; 1.870 + case 42: 1.871 + { 1.872 + if(($__uri.equals("") && $__local.equals("blockDefault"))) { 1.873 + $_ngcc_current_state = 37; 1.874 + } 1.875 + else { 1.876 + unexpectedLeaveAttribute($__qname); 1.877 + } 1.878 + } 1.879 + break; 1.880 + case 45: 1.881 + { 1.882 + $_ngcc_current_state = 41; 1.883 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.884 + } 1.885 + break; 1.886 + case 41: 1.887 + { 1.888 + $_ngcc_current_state = 37; 1.889 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.890 + } 1.891 + break; 1.892 + case 2: 1.893 + { 1.894 + $_ngcc_current_state = 1; 1.895 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.896 + } 1.897 + break; 1.898 + case 54: 1.899 + { 1.900 + if(($__uri.equals("") && $__local.equals("targetNamespace"))) { 1.901 + $_ngcc_current_state = 49; 1.902 + } 1.903 + else { 1.904 + unexpectedLeaveAttribute($__qname); 1.905 + } 1.906 + } 1.907 + break; 1.908 + case 46: 1.909 + { 1.910 + if(($__uri.equals("") && $__local.equals("elementFormDefault"))) { 1.911 + $_ngcc_current_state = 41; 1.912 + } 1.913 + else { 1.914 + unexpectedLeaveAttribute($__qname); 1.915 + } 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 49: 1.930 + { 1.931 + if(($ai = $runtime.getAttributeIndex("","attributeFormDefault"))>=0) { 1.932 + $runtime.consumeAttribute($ai); 1.933 + $runtime.sendText(super._cookie, $value); 1.934 + } 1.935 + else { 1.936 + $_ngcc_current_state = 45; 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 47: 1.947 + { 1.948 + if($value.equals("unqualified")) { 1.949 + NGCCHandler h = new qualification(this, super._source, $runtime, 539); 1.950 + spawnChildFromText(h, $value); 1.951 + } 1.952 + else { 1.953 + if($value.equals("qualified")) { 1.954 + NGCCHandler h = new qualification(this, super._source, $runtime, 539); 1.955 + spawnChildFromText(h, $value); 1.956 + } 1.957 + } 1.958 + } 1.959 + break; 1.960 + case 43: 1.961 + { 1.962 + NGCCHandler h = new ersSet(this, super._source, $runtime, 534); 1.963 + spawnChildFromText(h, $value); 1.964 + } 1.965 + break; 1.966 + case 16: 1.967 + { 1.968 + if(($ai = $runtime.getAttributeIndex("","default"))>=0) { 1.969 + $runtime.consumeAttribute($ai); 1.970 + $runtime.sendText(super._cookie, $value); 1.971 + } 1.972 + else { 1.973 + $_ngcc_current_state = 12; 1.974 + $runtime.sendText(super._cookie, $value); 1.975 + } 1.976 + } 1.977 + break; 1.978 + case 53: 1.979 + { 1.980 + if(($ai = $runtime.getAttributeIndex("","targetNamespace"))>=0) { 1.981 + $runtime.consumeAttribute($ai); 1.982 + $runtime.sendText(super._cookie, $value); 1.983 + } 1.984 + else { 1.985 + $_ngcc_current_state = 49; 1.986 + $runtime.sendText(super._cookie, $value); 1.987 + } 1.988 + } 1.989 + break; 1.990 + case 37: 1.991 + { 1.992 + if(($ai = $runtime.getAttributeIndex("","finalDefault"))>=0) { 1.993 + $runtime.consumeAttribute($ai); 1.994 + $runtime.sendText(super._cookie, $value); 1.995 + } 1.996 + else { 1.997 + $_ngcc_current_state = 36; 1.998 + $runtime.sendText(super._cookie, $value); 1.999 + } 1.1000 + } 1.1001 + break; 1.1002 + case 12: 1.1003 + { 1.1004 + if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { 1.1005 + $runtime.consumeAttribute($ai); 1.1006 + $runtime.sendText(super._cookie, $value); 1.1007 + } 1.1008 + else { 1.1009 + $_ngcc_current_state = 11; 1.1010 + $runtime.sendText(super._cookie, $value); 1.1011 + } 1.1012 + } 1.1013 + break; 1.1014 + case 14: 1.1015 + { 1.1016 + fixedValue = $value; 1.1017 + $_ngcc_current_state = 13; 1.1018 + } 1.1019 + break; 1.1020 + case 45: 1.1021 + { 1.1022 + if(($ai = $runtime.getAttributeIndex("","elementFormDefault"))>=0) { 1.1023 + $runtime.consumeAttribute($ai); 1.1024 + $runtime.sendText(super._cookie, $value); 1.1025 + } 1.1026 + else { 1.1027 + $_ngcc_current_state = 41; 1.1028 + $runtime.sendText(super._cookie, $value); 1.1029 + } 1.1030 + } 1.1031 + break; 1.1032 + case 41: 1.1033 + { 1.1034 + if(($ai = $runtime.getAttributeIndex("","blockDefault"))>=0) { 1.1035 + $runtime.consumeAttribute($ai); 1.1036 + $runtime.sendText(super._cookie, $value); 1.1037 + } 1.1038 + else { 1.1039 + $_ngcc_current_state = 37; 1.1040 + $runtime.sendText(super._cookie, $value); 1.1041 + } 1.1042 + } 1.1043 + break; 1.1044 + case 55: 1.1045 + { 1.1046 + $_ngcc_current_state = 54; 1.1047 + } 1.1048 + break; 1.1049 + case 2: 1.1050 + { 1.1051 + $_ngcc_current_state = 1; 1.1052 + $runtime.sendText(super._cookie, $value); 1.1053 + } 1.1054 + break; 1.1055 + case 27: 1.1056 + { 1.1057 + if(($ai = $runtime.getAttributeIndex("","abstract"))>=0) { 1.1058 + NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); 1.1059 + spawnChildFromText(h, $value); 1.1060 + } 1.1061 + else { 1.1062 + if(($ai = $runtime.getAttributeIndex("","name"))>=0) { 1.1063 + NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); 1.1064 + spawnChildFromText(h, $value); 1.1065 + } 1.1066 + else { 1.1067 + if(($ai = $runtime.getAttributeIndex("","block"))>=0) { 1.1068 + NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); 1.1069 + spawnChildFromText(h, $value); 1.1070 + } 1.1071 + else { 1.1072 + if(($ai = $runtime.getAttributeIndex("","final"))>=0) { 1.1073 + NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); 1.1074 + spawnChildFromText(h, $value); 1.1075 + } 1.1076 + else { 1.1077 + if(($ai = $runtime.getAttributeIndex("","form"))>=0) { 1.1078 + NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); 1.1079 + spawnChildFromText(h, $value); 1.1080 + } 1.1081 + else { 1.1082 + if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { 1.1083 + NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); 1.1084 + spawnChildFromText(h, $value); 1.1085 + } 1.1086 + else { 1.1087 + if(($ai = $runtime.getAttributeIndex("","default"))>=0) { 1.1088 + NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); 1.1089 + spawnChildFromText(h, $value); 1.1090 + } 1.1091 + } 1.1092 + } 1.1093 + } 1.1094 + } 1.1095 + } 1.1096 + } 1.1097 + } 1.1098 + break; 1.1099 + case 39: 1.1100 + { 1.1101 + NGCCHandler h = new erSet(this, super._source, $runtime, 529); 1.1102 + spawnChildFromText(h, $value); 1.1103 + } 1.1104 + break; 1.1105 + case 51: 1.1106 + { 1.1107 + if($value.equals("unqualified")) { 1.1108 + NGCCHandler h = new qualification(this, super._source, $runtime, 544); 1.1109 + spawnChildFromText(h, $value); 1.1110 + } 1.1111 + else { 1.1112 + if($value.equals("qualified")) { 1.1113 + NGCCHandler h = new qualification(this, super._source, $runtime, 544); 1.1114 + spawnChildFromText(h, $value); 1.1115 + } 1.1116 + } 1.1117 + } 1.1118 + break; 1.1119 + case 18: 1.1120 + { 1.1121 + defaultValue = $value; 1.1122 + $_ngcc_current_state = 17; 1.1123 + } 1.1124 + break; 1.1125 + case 11: 1.1126 + { 1.1127 + if(($ai = $runtime.getAttributeIndex("","form"))>=0) { 1.1128 + NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 421, locator,false,defaultValue,fixedValue); 1.1129 + spawnChildFromText(h, $value); 1.1130 + } 1.1131 + else { 1.1132 + if(($ai = $runtime.getAttributeIndex("","name"))>=0) { 1.1133 + NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 421, locator,false,defaultValue,fixedValue); 1.1134 + spawnChildFromText(h, $value); 1.1135 + } 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 527: 1.1145 + { 1.1146 + fa = ((ForeignAttributesImpl)$__result__); 1.1147 + action10(); 1.1148 + $_ngcc_current_state = 2; 1.1149 + } 1.1150 + break; 1.1151 + case 534: 1.1152 + { 1.1153 + blockDefault = ((Integer)$__result__); 1.1154 + action12(); 1.1155 + $_ngcc_current_state = 42; 1.1156 + } 1.1157 + break; 1.1158 + case 439: 1.1159 + { 1.1160 + e = ((ElementDecl)$__result__); 1.1161 + action7(); 1.1162 + $_ngcc_current_state = 26; 1.1163 + } 1.1164 + break; 1.1165 + case 544: 1.1166 + { 1.1167 + afd = ((Boolean)$__result__).booleanValue(); 1.1168 + action14(); 1.1169 + $_ngcc_current_state = 50; 1.1170 + } 1.1171 + break; 1.1172 + case 421: 1.1173 + { 1.1174 + ad = ((AttributeDeclImpl)$__result__); 1.1175 + action3(); 1.1176 + $_ngcc_current_state = 10; 1.1177 + } 1.1178 + break; 1.1179 + case 504: 1.1180 + { 1.1181 + anno = ((AnnotationImpl)$__result__); 1.1182 + action9(); 1.1183 + $_ngcc_current_state = 1; 1.1184 + } 1.1185 + break; 1.1186 + case 505: 1.1187 + { 1.1188 + $_ngcc_current_state = 1; 1.1189 + } 1.1190 + break; 1.1191 + case 506: 1.1192 + { 1.1193 + $_ngcc_current_state = 1; 1.1194 + } 1.1195 + break; 1.1196 + case 507: 1.1197 + { 1.1198 + $_ngcc_current_state = 1; 1.1199 + } 1.1200 + break; 1.1201 + case 509: 1.1202 + { 1.1203 + st = ((SimpleTypeImpl)$__result__); 1.1204 + action6(); 1.1205 + $_ngcc_current_state = 1; 1.1206 + } 1.1207 + break; 1.1208 + case 510: 1.1209 + { 1.1210 + ct = ((ComplexTypeImpl)$__result__); 1.1211 + action5(); 1.1212 + $_ngcc_current_state = 1; 1.1213 + } 1.1214 + break; 1.1215 + case 512: 1.1216 + { 1.1217 + group = ((ModelGroupDeclImpl)$__result__); 1.1218 + action2(); 1.1219 + $_ngcc_current_state = 1; 1.1220 + } 1.1221 + break; 1.1222 + case 513: 1.1223 + { 1.1224 + notation = ((XSNotation)$__result__); 1.1225 + action1(); 1.1226 + $_ngcc_current_state = 1; 1.1227 + } 1.1228 + break; 1.1229 + case 514: 1.1230 + { 1.1231 + ag = ((AttGroupDeclImpl)$__result__); 1.1232 + action0(); 1.1233 + $_ngcc_current_state = 1; 1.1234 + } 1.1235 + break; 1.1236 + case 539: 1.1237 + { 1.1238 + efd = ((Boolean)$__result__).booleanValue(); 1.1239 + action13(); 1.1240 + $_ngcc_current_state = 46; 1.1241 + } 1.1242 + break; 1.1243 + case 515: 1.1244 + { 1.1245 + anno = ((AnnotationImpl)$__result__); 1.1246 + action9(); 1.1247 + $_ngcc_current_state = 1; 1.1248 + } 1.1249 + break; 1.1250 + case 516: 1.1251 + { 1.1252 + $_ngcc_current_state = 1; 1.1253 + } 1.1254 + break; 1.1255 + case 517: 1.1256 + { 1.1257 + $_ngcc_current_state = 1; 1.1258 + } 1.1259 + break; 1.1260 + case 518: 1.1261 + { 1.1262 + $_ngcc_current_state = 1; 1.1263 + } 1.1264 + break; 1.1265 + case 520: 1.1266 + { 1.1267 + st = ((SimpleTypeImpl)$__result__); 1.1268 + action6(); 1.1269 + $_ngcc_current_state = 1; 1.1270 + } 1.1271 + break; 1.1272 + case 521: 1.1273 + { 1.1274 + ct = ((ComplexTypeImpl)$__result__); 1.1275 + action5(); 1.1276 + $_ngcc_current_state = 1; 1.1277 + } 1.1278 + break; 1.1279 + case 523: 1.1280 + { 1.1281 + group = ((ModelGroupDeclImpl)$__result__); 1.1282 + action2(); 1.1283 + $_ngcc_current_state = 1; 1.1284 + } 1.1285 + break; 1.1286 + case 524: 1.1287 + { 1.1288 + notation = ((XSNotation)$__result__); 1.1289 + action1(); 1.1290 + $_ngcc_current_state = 1; 1.1291 + } 1.1292 + break; 1.1293 + case 525: 1.1294 + { 1.1295 + ag = ((AttGroupDeclImpl)$__result__); 1.1296 + action0(); 1.1297 + $_ngcc_current_state = 1; 1.1298 + } 1.1299 + break; 1.1300 + case 529: 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 +}