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/elementDeclBody.java Wed Apr 27 01:27:09 2016 +0800 1.3 @@ -0,0 +1,1179 @@ 1.4 +/* 1.5 + * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. Oracle designates this 1.11 + * particular file as subject to the "Classpath" exception as provided 1.12 + * by Oracle in the LICENSE file that accompanied this code. 1.13 + * 1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 + * version 2 for more details (a copy is included in the LICENSE file that 1.18 + * accompanied this code). 1.19 + * 1.20 + * You should have received a copy of the GNU General Public License version 1.21 + * 2 along with this work; if not, write to the Free Software Foundation, 1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 + * 1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.25 + * or visit www.oracle.com if you need additional information or have any 1.26 + * questions. 1.27 + */ 1.28 + 1.29 +/* this file is generated by RelaxNGCC */ 1.30 +package com.sun.xml.internal.xsom.impl.parser.state; 1.31 +import org.xml.sax.SAXException; 1.32 +import org.xml.sax.XMLReader; 1.33 +import org.xml.sax.Attributes; 1.34 +import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx; 1.35 + 1.36 + import com.sun.xml.internal.xsom.*; 1.37 + import com.sun.xml.internal.xsom.parser.*; 1.38 + import com.sun.xml.internal.xsom.impl.*; 1.39 + import com.sun.xml.internal.xsom.impl.parser.*; 1.40 + import org.xml.sax.Locator; 1.41 + import org.xml.sax.ContentHandler; 1.42 + import org.xml.sax.helpers.*; 1.43 + import java.util.*; 1.44 + import java.math.BigInteger; 1.45 + 1.46 + 1.47 + 1.48 +class elementDeclBody extends NGCCHandler { 1.49 + private Integer finalValue; 1.50 + private String name; 1.51 + private String nillable; 1.52 + private String abstractValue; 1.53 + private Integer blockValue; 1.54 + private ForeignAttributesImpl fa; 1.55 + private AnnotationImpl annotation; 1.56 + private Locator locator; 1.57 + private String defaultValue; 1.58 + private IdentityConstraintImpl idc; 1.59 + private boolean isGlobal; 1.60 + private String fixedValue; 1.61 + private UName typeName; 1.62 + private UName substRef; 1.63 + protected final NGCCRuntimeEx $runtime; 1.64 + private int $_ngcc_current_state; 1.65 + protected String $uri; 1.66 + protected String $localName; 1.67 + protected String $qname; 1.68 + 1.69 + public final NGCCRuntime getRuntime() { 1.70 + return($runtime); 1.71 + } 1.72 + 1.73 + public elementDeclBody(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie, Locator _locator, boolean _isGlobal) { 1.74 + super(source, parent, cookie); 1.75 + $runtime = runtime; 1.76 + this.locator = _locator; 1.77 + this.isGlobal = _isGlobal; 1.78 + $_ngcc_current_state = 48; 1.79 + } 1.80 + 1.81 + public elementDeclBody(NGCCRuntimeEx runtime, Locator _locator, boolean _isGlobal) { 1.82 + this(null, runtime, runtime, -1, _locator, _isGlobal); 1.83 + } 1.84 + 1.85 + private void action0()throws SAXException { 1.86 + idcs.add(idc); 1.87 +} 1.88 + 1.89 + private void action1()throws SAXException { 1.90 + 1.91 + type = new DelayedRef.Type( 1.92 + $runtime, locator, $runtime.currentSchema, typeName ); 1.93 + 1.94 +} 1.95 + 1.96 + private void action2()throws SAXException { 1.97 + 1.98 + substHeadRef = new DelayedRef.Element( 1.99 + $runtime, locator, $runtime.currentSchema, substRef ); 1.100 + 1.101 +} 1.102 + 1.103 + private void action3()throws SAXException { 1.104 + formSpecified = true; 1.105 +} 1.106 + 1.107 + public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { 1.108 + int $ai; 1.109 + $uri = $__uri; 1.110 + $localName = $__local; 1.111 + $qname = $__qname; 1.112 + switch($_ngcc_current_state) { 1.113 + case 17: 1.114 + { 1.115 + if(($ai = $runtime.getAttributeIndex("","nillable"))>=0) { 1.116 + $runtime.consumeAttribute($ai); 1.117 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.118 + } 1.119 + else { 1.120 + $_ngcc_current_state = 13; 1.121 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.122 + } 1.123 + } 1.124 + break; 1.125 + case 28: 1.126 + { 1.127 + if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { 1.128 + $runtime.consumeAttribute($ai); 1.129 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.130 + } 1.131 + else { 1.132 + $_ngcc_current_state = 24; 1.133 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.134 + } 1.135 + } 1.136 + break; 1.137 + case 0: 1.138 + { 1.139 + if(((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) { 1.140 + NGCCHandler h = new identityConstraint(this, super._source, $runtime, 6); 1.141 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.142 + } 1.143 + else { 1.144 + revertToParentFromEnterElement(makeResult(), super._cookie, $__uri, $__local, $__qname, $attrs); 1.145 + } 1.146 + } 1.147 + break; 1.148 + case 32: 1.149 + { 1.150 + if(($ai = $runtime.getAttributeIndex("","default"))>=0) { 1.151 + $runtime.consumeAttribute($ai); 1.152 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.153 + } 1.154 + else { 1.155 + $_ngcc_current_state = 28; 1.156 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.157 + } 1.158 + } 1.159 + break; 1.160 + case 24: 1.161 + { 1.162 + if(($ai = $runtime.getAttributeIndex("","form"))>=0) { 1.163 + $runtime.consumeAttribute($ai); 1.164 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.165 + } 1.166 + else { 1.167 + $_ngcc_current_state = 23; 1.168 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.169 + } 1.170 + } 1.171 + break; 1.172 + case 11: 1.173 + { 1.174 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { 1.175 + NGCCHandler h = new annotation(this, super._source, $runtime, 24, null,AnnotationContext.ELEMENT_DECL); 1.176 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.177 + } 1.178 + else { 1.179 + $_ngcc_current_state = 3; 1.180 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.181 + } 1.182 + } 1.183 + break; 1.184 + case 23: 1.185 + { 1.186 + if(($ai = $runtime.getAttributeIndex("","name"))>=0) { 1.187 + $runtime.consumeAttribute($ai); 1.188 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.189 + } 1.190 + else { 1.191 + unexpectedEnterElement($__qname); 1.192 + } 1.193 + } 1.194 + break; 1.195 + case 44: 1.196 + { 1.197 + if(($ai = $runtime.getAttributeIndex("","abstract"))>=0) { 1.198 + $runtime.consumeAttribute($ai); 1.199 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.200 + } 1.201 + else { 1.202 + $_ngcc_current_state = 40; 1.203 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.204 + } 1.205 + } 1.206 + break; 1.207 + case 40: 1.208 + { 1.209 + if(($ai = $runtime.getAttributeIndex("","block"))>=0) { 1.210 + $runtime.consumeAttribute($ai); 1.211 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.212 + } 1.213 + else { 1.214 + $_ngcc_current_state = 36; 1.215 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.216 + } 1.217 + } 1.218 + break; 1.219 + case 48: 1.220 + { 1.221 + if(((($ai = $runtime.getAttributeIndex("","default"))>=0 && (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) || ((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")))) || ((($ai = $runtime.getAttributeIndex("","fixed"))>=0 && (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) || ((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")))) || ((($ai = $runtime.getAttributeIndex("","form"))>=0 && (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) || ((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")))) || ((($ai = $runtime.getAttributeIndex("","block"))>=0 && (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) || ((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")))) || ((($ai = $runtime.getAttributeIndex("","final"))>=0 && (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) || ((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")))) || ((($ai = $runtime.getAttributeIndex("","name"))>=0 && (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) || ((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation")))) || (($ai = $runtime.getAttributeIndex("","abstract"))>=0 && (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) || ((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))))))))))) { 1.222 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 69, fa); 1.223 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.224 + } 1.225 + else { 1.226 + unexpectedEnterElement($__qname); 1.227 + } 1.228 + } 1.229 + break; 1.230 + case 1: 1.231 + { 1.232 + if(((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("key")) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("keyref"))) || ($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("unique")))) { 1.233 + NGCCHandler h = new identityConstraint(this, super._source, $runtime, 7); 1.234 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.235 + } 1.236 + else { 1.237 + $_ngcc_current_state = 0; 1.238 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.239 + } 1.240 + } 1.241 + break; 1.242 + case 3: 1.243 + { 1.244 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { 1.245 + NGCCHandler h = new simpleType(this, super._source, $runtime, 19); 1.246 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.247 + } 1.248 + else { 1.249 + if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) { 1.250 + NGCCHandler h = new complexType(this, super._source, $runtime, 20); 1.251 + spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); 1.252 + } 1.253 + else { 1.254 + if(($ai = $runtime.getAttributeIndex("","type"))>=0) { 1.255 + $runtime.consumeAttribute($ai); 1.256 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.257 + } 1.258 + else { 1.259 + $_ngcc_current_state = 1; 1.260 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.261 + } 1.262 + } 1.263 + } 1.264 + } 1.265 + break; 1.266 + case 13: 1.267 + { 1.268 + if(($ai = $runtime.getAttributeIndex("","substitutionGroup"))>=0) { 1.269 + $runtime.consumeAttribute($ai); 1.270 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.271 + } 1.272 + else { 1.273 + $_ngcc_current_state = 11; 1.274 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.275 + } 1.276 + } 1.277 + break; 1.278 + case 36: 1.279 + { 1.280 + if(($ai = $runtime.getAttributeIndex("","final"))>=0) { 1.281 + $runtime.consumeAttribute($ai); 1.282 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.283 + } 1.284 + else { 1.285 + $_ngcc_current_state = 32; 1.286 + $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); 1.287 + } 1.288 + } 1.289 + break; 1.290 + default: 1.291 + { 1.292 + unexpectedEnterElement($__qname); 1.293 + } 1.294 + break; 1.295 + } 1.296 + } 1.297 + 1.298 + public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { 1.299 + int $ai; 1.300 + $uri = $__uri; 1.301 + $localName = $__local; 1.302 + $qname = $__qname; 1.303 + switch($_ngcc_current_state) { 1.304 + case 17: 1.305 + { 1.306 + if(($ai = $runtime.getAttributeIndex("","nillable"))>=0) { 1.307 + $runtime.consumeAttribute($ai); 1.308 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.309 + } 1.310 + else { 1.311 + $_ngcc_current_state = 13; 1.312 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.313 + } 1.314 + } 1.315 + break; 1.316 + case 28: 1.317 + { 1.318 + if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { 1.319 + $runtime.consumeAttribute($ai); 1.320 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.321 + } 1.322 + else { 1.323 + $_ngcc_current_state = 24; 1.324 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.325 + } 1.326 + } 1.327 + break; 1.328 + case 0: 1.329 + { 1.330 + revertToParentFromLeaveElement(makeResult(), super._cookie, $__uri, $__local, $__qname); 1.331 + } 1.332 + break; 1.333 + case 32: 1.334 + { 1.335 + if(($ai = $runtime.getAttributeIndex("","default"))>=0) { 1.336 + $runtime.consumeAttribute($ai); 1.337 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.338 + } 1.339 + else { 1.340 + $_ngcc_current_state = 28; 1.341 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.342 + } 1.343 + } 1.344 + break; 1.345 + case 24: 1.346 + { 1.347 + if(($ai = $runtime.getAttributeIndex("","form"))>=0) { 1.348 + $runtime.consumeAttribute($ai); 1.349 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.350 + } 1.351 + else { 1.352 + $_ngcc_current_state = 23; 1.353 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.354 + } 1.355 + } 1.356 + break; 1.357 + case 11: 1.358 + { 1.359 + $_ngcc_current_state = 3; 1.360 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.361 + } 1.362 + break; 1.363 + case 23: 1.364 + { 1.365 + if(($ai = $runtime.getAttributeIndex("","name"))>=0) { 1.366 + $runtime.consumeAttribute($ai); 1.367 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.368 + } 1.369 + else { 1.370 + unexpectedLeaveElement($__qname); 1.371 + } 1.372 + } 1.373 + break; 1.374 + case 44: 1.375 + { 1.376 + if(($ai = $runtime.getAttributeIndex("","abstract"))>=0) { 1.377 + $runtime.consumeAttribute($ai); 1.378 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.379 + } 1.380 + else { 1.381 + $_ngcc_current_state = 40; 1.382 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.383 + } 1.384 + } 1.385 + break; 1.386 + case 40: 1.387 + { 1.388 + if(($ai = $runtime.getAttributeIndex("","block"))>=0) { 1.389 + $runtime.consumeAttribute($ai); 1.390 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.391 + } 1.392 + else { 1.393 + $_ngcc_current_state = 36; 1.394 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.395 + } 1.396 + } 1.397 + break; 1.398 + case 48: 1.399 + { 1.400 + if((($ai = $runtime.getAttributeIndex("","default"))>=0 || (($ai = $runtime.getAttributeIndex("","fixed"))>=0 || (($ai = $runtime.getAttributeIndex("","form"))>=0 || (($ai = $runtime.getAttributeIndex("","block"))>=0 || (($ai = $runtime.getAttributeIndex("","final"))>=0 || (($ai = $runtime.getAttributeIndex("","name"))>=0 || ($ai = $runtime.getAttributeIndex("","abstract"))>=0))))))) { 1.401 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 69, fa); 1.402 + spawnChildFromLeaveElement(h, $__uri, $__local, $__qname); 1.403 + } 1.404 + else { 1.405 + unexpectedLeaveElement($__qname); 1.406 + } 1.407 + } 1.408 + break; 1.409 + case 1: 1.410 + { 1.411 + $_ngcc_current_state = 0; 1.412 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.413 + } 1.414 + break; 1.415 + case 3: 1.416 + { 1.417 + if(($ai = $runtime.getAttributeIndex("","type"))>=0) { 1.418 + $runtime.consumeAttribute($ai); 1.419 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.420 + } 1.421 + else { 1.422 + $_ngcc_current_state = 1; 1.423 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.424 + } 1.425 + } 1.426 + break; 1.427 + case 13: 1.428 + { 1.429 + if(($ai = $runtime.getAttributeIndex("","substitutionGroup"))>=0) { 1.430 + $runtime.consumeAttribute($ai); 1.431 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.432 + } 1.433 + else { 1.434 + $_ngcc_current_state = 11; 1.435 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.436 + } 1.437 + } 1.438 + break; 1.439 + case 36: 1.440 + { 1.441 + if(($ai = $runtime.getAttributeIndex("","final"))>=0) { 1.442 + $runtime.consumeAttribute($ai); 1.443 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.444 + } 1.445 + else { 1.446 + $_ngcc_current_state = 32; 1.447 + $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); 1.448 + } 1.449 + } 1.450 + break; 1.451 + default: 1.452 + { 1.453 + unexpectedLeaveElement($__qname); 1.454 + } 1.455 + break; 1.456 + } 1.457 + } 1.458 + 1.459 + public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException { 1.460 + int $ai; 1.461 + $uri = $__uri; 1.462 + $localName = $__local; 1.463 + $qname = $__qname; 1.464 + switch($_ngcc_current_state) { 1.465 + case 17: 1.466 + { 1.467 + if(($__uri.equals("") && $__local.equals("nillable"))) { 1.468 + $_ngcc_current_state = 19; 1.469 + } 1.470 + else { 1.471 + $_ngcc_current_state = 13; 1.472 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.473 + } 1.474 + } 1.475 + break; 1.476 + case 28: 1.477 + { 1.478 + if(($__uri.equals("") && $__local.equals("fixed"))) { 1.479 + $_ngcc_current_state = 30; 1.480 + } 1.481 + else { 1.482 + $_ngcc_current_state = 24; 1.483 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.484 + } 1.485 + } 1.486 + break; 1.487 + case 0: 1.488 + { 1.489 + revertToParentFromEnterAttribute(makeResult(), super._cookie, $__uri, $__local, $__qname); 1.490 + } 1.491 + break; 1.492 + case 32: 1.493 + { 1.494 + if(($__uri.equals("") && $__local.equals("default"))) { 1.495 + $_ngcc_current_state = 34; 1.496 + } 1.497 + else { 1.498 + $_ngcc_current_state = 28; 1.499 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.500 + } 1.501 + } 1.502 + break; 1.503 + case 24: 1.504 + { 1.505 + if(($__uri.equals("") && $__local.equals("form"))) { 1.506 + $_ngcc_current_state = 26; 1.507 + } 1.508 + else { 1.509 + $_ngcc_current_state = 23; 1.510 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.511 + } 1.512 + } 1.513 + break; 1.514 + case 11: 1.515 + { 1.516 + $_ngcc_current_state = 3; 1.517 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.518 + } 1.519 + break; 1.520 + case 23: 1.521 + { 1.522 + if(($__uri.equals("") && $__local.equals("name"))) { 1.523 + $_ngcc_current_state = 22; 1.524 + } 1.525 + else { 1.526 + unexpectedEnterAttribute($__qname); 1.527 + } 1.528 + } 1.529 + break; 1.530 + case 44: 1.531 + { 1.532 + if(($__uri.equals("") && $__local.equals("abstract"))) { 1.533 + $_ngcc_current_state = 46; 1.534 + } 1.535 + else { 1.536 + $_ngcc_current_state = 40; 1.537 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.538 + } 1.539 + } 1.540 + break; 1.541 + case 40: 1.542 + { 1.543 + if(($__uri.equals("") && $__local.equals("block"))) { 1.544 + $_ngcc_current_state = 42; 1.545 + } 1.546 + else { 1.547 + $_ngcc_current_state = 36; 1.548 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.549 + } 1.550 + } 1.551 + break; 1.552 + case 48: 1.553 + { 1.554 + if((($__uri.equals("") && $__local.equals("default")) || (($__uri.equals("") && $__local.equals("fixed")) || (($__uri.equals("") && $__local.equals("form")) || (($__uri.equals("") && $__local.equals("block")) || (($__uri.equals("") && $__local.equals("final")) || (($__uri.equals("") && $__local.equals("name")) || ($__uri.equals("") && $__local.equals("abstract"))))))))) { 1.555 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 69, fa); 1.556 + spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname); 1.557 + } 1.558 + else { 1.559 + unexpectedEnterAttribute($__qname); 1.560 + } 1.561 + } 1.562 + break; 1.563 + case 1: 1.564 + { 1.565 + $_ngcc_current_state = 0; 1.566 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.567 + } 1.568 + break; 1.569 + case 3: 1.570 + { 1.571 + if(($__uri.equals("") && $__local.equals("type"))) { 1.572 + $_ngcc_current_state = 6; 1.573 + } 1.574 + else { 1.575 + $_ngcc_current_state = 1; 1.576 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.577 + } 1.578 + } 1.579 + break; 1.580 + case 13: 1.581 + { 1.582 + if(($__uri.equals("") && $__local.equals("substitutionGroup"))) { 1.583 + $_ngcc_current_state = 15; 1.584 + } 1.585 + else { 1.586 + $_ngcc_current_state = 11; 1.587 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.588 + } 1.589 + } 1.590 + break; 1.591 + case 36: 1.592 + { 1.593 + if(($__uri.equals("") && $__local.equals("final"))) { 1.594 + $_ngcc_current_state = 38; 1.595 + } 1.596 + else { 1.597 + $_ngcc_current_state = 32; 1.598 + $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); 1.599 + } 1.600 + } 1.601 + break; 1.602 + default: 1.603 + { 1.604 + unexpectedEnterAttribute($__qname); 1.605 + } 1.606 + break; 1.607 + } 1.608 + } 1.609 + 1.610 + public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { 1.611 + int $ai; 1.612 + $uri = $__uri; 1.613 + $localName = $__local; 1.614 + $qname = $__qname; 1.615 + switch($_ngcc_current_state) { 1.616 + case 21: 1.617 + { 1.618 + if(($__uri.equals("") && $__local.equals("name"))) { 1.619 + $_ngcc_current_state = 17; 1.620 + } 1.621 + else { 1.622 + unexpectedLeaveAttribute($__qname); 1.623 + } 1.624 + } 1.625 + break; 1.626 + case 17: 1.627 + { 1.628 + $_ngcc_current_state = 13; 1.629 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.630 + } 1.631 + break; 1.632 + case 18: 1.633 + { 1.634 + if(($__uri.equals("") && $__local.equals("nillable"))) { 1.635 + $_ngcc_current_state = 13; 1.636 + } 1.637 + else { 1.638 + unexpectedLeaveAttribute($__qname); 1.639 + } 1.640 + } 1.641 + break; 1.642 + case 25: 1.643 + { 1.644 + if(($__uri.equals("") && $__local.equals("form"))) { 1.645 + $_ngcc_current_state = 23; 1.646 + } 1.647 + else { 1.648 + unexpectedLeaveAttribute($__qname); 1.649 + } 1.650 + } 1.651 + break; 1.652 + case 41: 1.653 + { 1.654 + if(($__uri.equals("") && $__local.equals("block"))) { 1.655 + $_ngcc_current_state = 36; 1.656 + } 1.657 + else { 1.658 + unexpectedLeaveAttribute($__qname); 1.659 + } 1.660 + } 1.661 + break; 1.662 + case 28: 1.663 + { 1.664 + $_ngcc_current_state = 24; 1.665 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.666 + } 1.667 + break; 1.668 + case 32: 1.669 + { 1.670 + $_ngcc_current_state = 28; 1.671 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.672 + } 1.673 + break; 1.674 + case 0: 1.675 + { 1.676 + revertToParentFromLeaveAttribute(makeResult(), super._cookie, $__uri, $__local, $__qname); 1.677 + } 1.678 + break; 1.679 + case 24: 1.680 + { 1.681 + $_ngcc_current_state = 23; 1.682 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.683 + } 1.684 + break; 1.685 + case 11: 1.686 + { 1.687 + $_ngcc_current_state = 3; 1.688 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.689 + } 1.690 + break; 1.691 + case 33: 1.692 + { 1.693 + if(($__uri.equals("") && $__local.equals("default"))) { 1.694 + $_ngcc_current_state = 28; 1.695 + } 1.696 + else { 1.697 + unexpectedLeaveAttribute($__qname); 1.698 + } 1.699 + } 1.700 + break; 1.701 + case 37: 1.702 + { 1.703 + if(($__uri.equals("") && $__local.equals("final"))) { 1.704 + $_ngcc_current_state = 32; 1.705 + } 1.706 + else { 1.707 + unexpectedLeaveAttribute($__qname); 1.708 + } 1.709 + } 1.710 + break; 1.711 + case 44: 1.712 + { 1.713 + $_ngcc_current_state = 40; 1.714 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.715 + } 1.716 + break; 1.717 + case 14: 1.718 + { 1.719 + if(($__uri.equals("") && $__local.equals("substitutionGroup"))) { 1.720 + $_ngcc_current_state = 11; 1.721 + } 1.722 + else { 1.723 + unexpectedLeaveAttribute($__qname); 1.724 + } 1.725 + } 1.726 + break; 1.727 + case 40: 1.728 + { 1.729 + $_ngcc_current_state = 36; 1.730 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.731 + } 1.732 + break; 1.733 + case 45: 1.734 + { 1.735 + if(($__uri.equals("") && $__local.equals("abstract"))) { 1.736 + $_ngcc_current_state = 40; 1.737 + } 1.738 + else { 1.739 + unexpectedLeaveAttribute($__qname); 1.740 + } 1.741 + } 1.742 + break; 1.743 + case 1: 1.744 + { 1.745 + $_ngcc_current_state = 0; 1.746 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.747 + } 1.748 + break; 1.749 + case 3: 1.750 + { 1.751 + $_ngcc_current_state = 1; 1.752 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.753 + } 1.754 + break; 1.755 + case 13: 1.756 + { 1.757 + $_ngcc_current_state = 11; 1.758 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.759 + } 1.760 + break; 1.761 + case 36: 1.762 + { 1.763 + $_ngcc_current_state = 32; 1.764 + $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); 1.765 + } 1.766 + break; 1.767 + case 5: 1.768 + { 1.769 + if(($__uri.equals("") && $__local.equals("type"))) { 1.770 + $_ngcc_current_state = 1; 1.771 + action1(); 1.772 + } 1.773 + else { 1.774 + unexpectedLeaveAttribute($__qname); 1.775 + } 1.776 + } 1.777 + break; 1.778 + case 29: 1.779 + { 1.780 + if(($__uri.equals("") && $__local.equals("fixed"))) { 1.781 + $_ngcc_current_state = 24; 1.782 + } 1.783 + else { 1.784 + unexpectedLeaveAttribute($__qname); 1.785 + } 1.786 + } 1.787 + break; 1.788 + default: 1.789 + { 1.790 + unexpectedLeaveAttribute($__qname); 1.791 + } 1.792 + break; 1.793 + } 1.794 + } 1.795 + 1.796 + public void text(String $value) throws SAXException { 1.797 + int $ai; 1.798 + switch($_ngcc_current_state) { 1.799 + case 17: 1.800 + { 1.801 + if(($ai = $runtime.getAttributeIndex("","nillable"))>=0) { 1.802 + $runtime.consumeAttribute($ai); 1.803 + $runtime.sendText(super._cookie, $value); 1.804 + } 1.805 + else { 1.806 + $_ngcc_current_state = 13; 1.807 + $runtime.sendText(super._cookie, $value); 1.808 + } 1.809 + } 1.810 + break; 1.811 + case 34: 1.812 + { 1.813 + defaultValue = $value; 1.814 + $_ngcc_current_state = 33; 1.815 + } 1.816 + break; 1.817 + case 22: 1.818 + { 1.819 + name = $value; 1.820 + $_ngcc_current_state = 21; 1.821 + } 1.822 + break; 1.823 + case 28: 1.824 + { 1.825 + if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { 1.826 + $runtime.consumeAttribute($ai); 1.827 + $runtime.sendText(super._cookie, $value); 1.828 + } 1.829 + else { 1.830 + $_ngcc_current_state = 24; 1.831 + $runtime.sendText(super._cookie, $value); 1.832 + } 1.833 + } 1.834 + break; 1.835 + case 32: 1.836 + { 1.837 + if(($ai = $runtime.getAttributeIndex("","default"))>=0) { 1.838 + $runtime.consumeAttribute($ai); 1.839 + $runtime.sendText(super._cookie, $value); 1.840 + } 1.841 + else { 1.842 + $_ngcc_current_state = 28; 1.843 + $runtime.sendText(super._cookie, $value); 1.844 + } 1.845 + } 1.846 + break; 1.847 + case 0: 1.848 + { 1.849 + revertToParentFromText(makeResult(), super._cookie, $value); 1.850 + } 1.851 + break; 1.852 + case 6: 1.853 + { 1.854 + NGCCHandler h = new qname(this, super._source, $runtime, 10); 1.855 + spawnChildFromText(h, $value); 1.856 + } 1.857 + break; 1.858 + case 24: 1.859 + { 1.860 + if(($ai = $runtime.getAttributeIndex("","form"))>=0) { 1.861 + $runtime.consumeAttribute($ai); 1.862 + $runtime.sendText(super._cookie, $value); 1.863 + } 1.864 + else { 1.865 + $_ngcc_current_state = 23; 1.866 + $runtime.sendText(super._cookie, $value); 1.867 + } 1.868 + } 1.869 + break; 1.870 + case 11: 1.871 + { 1.872 + $_ngcc_current_state = 3; 1.873 + $runtime.sendText(super._cookie, $value); 1.874 + } 1.875 + break; 1.876 + case 23: 1.877 + { 1.878 + if(($ai = $runtime.getAttributeIndex("","name"))>=0) { 1.879 + $runtime.consumeAttribute($ai); 1.880 + $runtime.sendText(super._cookie, $value); 1.881 + } 1.882 + } 1.883 + break; 1.884 + case 44: 1.885 + { 1.886 + if(($ai = $runtime.getAttributeIndex("","abstract"))>=0) { 1.887 + $runtime.consumeAttribute($ai); 1.888 + $runtime.sendText(super._cookie, $value); 1.889 + } 1.890 + else { 1.891 + $_ngcc_current_state = 40; 1.892 + $runtime.sendText(super._cookie, $value); 1.893 + } 1.894 + } 1.895 + break; 1.896 + case 46: 1.897 + { 1.898 + abstractValue = $value; 1.899 + $_ngcc_current_state = 45; 1.900 + } 1.901 + break; 1.902 + case 19: 1.903 + { 1.904 + nillable = $value; 1.905 + $_ngcc_current_state = 18; 1.906 + } 1.907 + break; 1.908 + case 40: 1.909 + { 1.910 + if(($ai = $runtime.getAttributeIndex("","block"))>=0) { 1.911 + $runtime.consumeAttribute($ai); 1.912 + $runtime.sendText(super._cookie, $value); 1.913 + } 1.914 + else { 1.915 + $_ngcc_current_state = 36; 1.916 + $runtime.sendText(super._cookie, $value); 1.917 + } 1.918 + } 1.919 + break; 1.920 + case 48: 1.921 + { 1.922 + if(($ai = $runtime.getAttributeIndex("","abstract"))>=0) { 1.923 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 69, fa); 1.924 + spawnChildFromText(h, $value); 1.925 + } 1.926 + else { 1.927 + if(($ai = $runtime.getAttributeIndex("","name"))>=0) { 1.928 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 69, fa); 1.929 + spawnChildFromText(h, $value); 1.930 + } 1.931 + else { 1.932 + if(($ai = $runtime.getAttributeIndex("","final"))>=0) { 1.933 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 69, fa); 1.934 + spawnChildFromText(h, $value); 1.935 + } 1.936 + else { 1.937 + if(($ai = $runtime.getAttributeIndex("","block"))>=0) { 1.938 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 69, fa); 1.939 + spawnChildFromText(h, $value); 1.940 + } 1.941 + else { 1.942 + if(($ai = $runtime.getAttributeIndex("","form"))>=0) { 1.943 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 69, fa); 1.944 + spawnChildFromText(h, $value); 1.945 + } 1.946 + else { 1.947 + if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { 1.948 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 69, fa); 1.949 + spawnChildFromText(h, $value); 1.950 + } 1.951 + else { 1.952 + if(($ai = $runtime.getAttributeIndex("","default"))>=0) { 1.953 + NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 69, fa); 1.954 + spawnChildFromText(h, $value); 1.955 + } 1.956 + } 1.957 + } 1.958 + } 1.959 + } 1.960 + } 1.961 + } 1.962 + } 1.963 + break; 1.964 + case 30: 1.965 + { 1.966 + fixedValue = $value; 1.967 + $_ngcc_current_state = 29; 1.968 + } 1.969 + break; 1.970 + case 1: 1.971 + { 1.972 + $_ngcc_current_state = 0; 1.973 + $runtime.sendText(super._cookie, $value); 1.974 + } 1.975 + break; 1.976 + case 3: 1.977 + { 1.978 + if(($ai = $runtime.getAttributeIndex("","type"))>=0) { 1.979 + $runtime.consumeAttribute($ai); 1.980 + $runtime.sendText(super._cookie, $value); 1.981 + } 1.982 + else { 1.983 + $_ngcc_current_state = 1; 1.984 + $runtime.sendText(super._cookie, $value); 1.985 + } 1.986 + } 1.987 + break; 1.988 + case 13: 1.989 + { 1.990 + if(($ai = $runtime.getAttributeIndex("","substitutionGroup"))>=0) { 1.991 + $runtime.consumeAttribute($ai); 1.992 + $runtime.sendText(super._cookie, $value); 1.993 + } 1.994 + else { 1.995 + $_ngcc_current_state = 11; 1.996 + $runtime.sendText(super._cookie, $value); 1.997 + } 1.998 + } 1.999 + break; 1.1000 + case 38: 1.1001 + { 1.1002 + NGCCHandler h = new erSet(this, super._source, $runtime, 55); 1.1003 + spawnChildFromText(h, $value); 1.1004 + } 1.1005 + break; 1.1006 + case 15: 1.1007 + { 1.1008 + NGCCHandler h = new qname(this, super._source, $runtime, 27); 1.1009 + spawnChildFromText(h, $value); 1.1010 + } 1.1011 + break; 1.1012 + case 26: 1.1013 + { 1.1014 + if($value.equals("unqualified")) { 1.1015 + NGCCHandler h = new qualification(this, super._source, $runtime, 40); 1.1016 + spawnChildFromText(h, $value); 1.1017 + } 1.1018 + else { 1.1019 + if($value.equals("qualified")) { 1.1020 + NGCCHandler h = new qualification(this, super._source, $runtime, 40); 1.1021 + spawnChildFromText(h, $value); 1.1022 + } 1.1023 + } 1.1024 + } 1.1025 + break; 1.1026 + case 36: 1.1027 + { 1.1028 + if(($ai = $runtime.getAttributeIndex("","final"))>=0) { 1.1029 + $runtime.consumeAttribute($ai); 1.1030 + $runtime.sendText(super._cookie, $value); 1.1031 + } 1.1032 + else { 1.1033 + $_ngcc_current_state = 32; 1.1034 + $runtime.sendText(super._cookie, $value); 1.1035 + } 1.1036 + } 1.1037 + break; 1.1038 + case 42: 1.1039 + { 1.1040 + NGCCHandler h = new ersSet(this, super._source, $runtime, 60); 1.1041 + spawnChildFromText(h, $value); 1.1042 + } 1.1043 + break; 1.1044 + } 1.1045 + } 1.1046 + 1.1047 + public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException { 1.1048 + switch($__cookie__) { 1.1049 + case 24: 1.1050 + { 1.1051 + annotation = ((AnnotationImpl)$__result__); 1.1052 + $_ngcc_current_state = 3; 1.1053 + } 1.1054 + break; 1.1055 + case 27: 1.1056 + { 1.1057 + substRef = ((UName)$__result__); 1.1058 + action2(); 1.1059 + $_ngcc_current_state = 14; 1.1060 + } 1.1061 + break; 1.1062 + case 10: 1.1063 + { 1.1064 + typeName = ((UName)$__result__); 1.1065 + $_ngcc_current_state = 5; 1.1066 + } 1.1067 + break; 1.1068 + case 60: 1.1069 + { 1.1070 + blockValue = ((Integer)$__result__); 1.1071 + $_ngcc_current_state = 41; 1.1072 + } 1.1073 + break; 1.1074 + case 69: 1.1075 + { 1.1076 + fa = ((ForeignAttributesImpl)$__result__); 1.1077 + $_ngcc_current_state = 44; 1.1078 + } 1.1079 + break; 1.1080 + case 19: 1.1081 + { 1.1082 + type = ((SimpleTypeImpl)$__result__); 1.1083 + $_ngcc_current_state = 1; 1.1084 + } 1.1085 + break; 1.1086 + case 20: 1.1087 + { 1.1088 + type = ((ComplexTypeImpl)$__result__); 1.1089 + $_ngcc_current_state = 1; 1.1090 + } 1.1091 + break; 1.1092 + case 40: 1.1093 + { 1.1094 + form = ((Boolean)$__result__).booleanValue(); 1.1095 + action3(); 1.1096 + $_ngcc_current_state = 25; 1.1097 + } 1.1098 + break; 1.1099 + case 6: 1.1100 + { 1.1101 + idc = ((IdentityConstraintImpl)$__result__); 1.1102 + action0(); 1.1103 + $_ngcc_current_state = 0; 1.1104 + } 1.1105 + break; 1.1106 + case 7: 1.1107 + { 1.1108 + idc = ((IdentityConstraintImpl)$__result__); 1.1109 + action0(); 1.1110 + $_ngcc_current_state = 0; 1.1111 + } 1.1112 + break; 1.1113 + case 55: 1.1114 + { 1.1115 + finalValue = ((Integer)$__result__); 1.1116 + $_ngcc_current_state = 37; 1.1117 + } 1.1118 + break; 1.1119 + } 1.1120 + } 1.1121 + 1.1122 + public boolean accepted() { 1.1123 + return((($_ngcc_current_state == 1) || (($_ngcc_current_state == 0) || (($_ngcc_current_state == 3) || (($_ngcc_current_state == 17) || (($_ngcc_current_state == 13) || ($_ngcc_current_state == 11))))))); 1.1124 + } 1.1125 + 1.1126 + 1.1127 + private boolean form; 1.1128 + private boolean formSpecified; 1.1129 + private Ref.Type type; 1.1130 + private List idcs = new ArrayList(); // identity constraints 1.1131 + 1.1132 + private DelayedRef.Element substHeadRef; 1.1133 + 1.1134 + private ElementDecl makeResult() { 1.1135 + if(finalValue==null) 1.1136 + finalValue = new Integer($runtime.finalDefault); 1.1137 + if(blockValue==null) 1.1138 + blockValue = new Integer($runtime.blockDefault); 1.1139 + 1.1140 + if(!formSpecified) 1.1141 + form = $runtime.elementFormDefault; 1.1142 + if(isGlobal) // global elements are always qualified 1.1143 + form = true; 1.1144 + 1.1145 + String tns; 1.1146 + if(form) tns = $runtime.currentSchema.getTargetNamespace(); 1.1147 + else tns = ""; 1.1148 + 1.1149 + if( type==null ) { 1.1150 + if( substHeadRef!=null ) 1.1151 + type = new SubstGroupBaseTypeRef(substHeadRef); 1.1152 + else 1.1153 + type = $runtime.parser.schemaSet.anyType; 1.1154 + } 1.1155 + 1.1156 + ElementDecl ed = new ElementDecl( 1.1157 + $runtime, 1.1158 + $runtime.document, 1.1159 + annotation, 1.1160 + locator, 1.1161 + fa, 1.1162 + tns, 1.1163 + name, 1.1164 + !isGlobal, 1.1165 + $runtime.createXmlString(defaultValue), 1.1166 + $runtime.createXmlString(fixedValue), 1.1167 + $runtime.parseBoolean(nillable), 1.1168 + $runtime.parseBoolean(abstractValue), 1.1169 + (java.lang.Boolean)(formSpecified ? form : null), 1.1170 + type, 1.1171 + substHeadRef, 1.1172 + blockValue.intValue(), 1.1173 + finalValue.intValue(), 1.1174 + idcs); 1.1175 + 1.1176 + // if this element has anonymous complex type, it will be set here. 1.1177 + if(type instanceof ComplexTypeImpl) 1.1178 + ((ComplexTypeImpl)type).setScope(ed); 1.1179 + return ed; 1.1180 + } 1.1181 + 1.1182 +}