aoqi@0: /* aoqi@0: * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. aoqi@0: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. aoqi@0: * aoqi@0: * This code is free software; you can redistribute it and/or modify it aoqi@0: * under the terms of the GNU General Public License version 2 only, as aoqi@0: * published by the Free Software Foundation. Oracle designates this aoqi@0: * particular file as subject to the "Classpath" exception as provided aoqi@0: * by Oracle in the LICENSE file that accompanied this code. aoqi@0: * aoqi@0: * This code is distributed in the hope that it will be useful, but WITHOUT aoqi@0: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or aoqi@0: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License aoqi@0: * version 2 for more details (a copy is included in the LICENSE file that aoqi@0: * accompanied this code). aoqi@0: * aoqi@0: * You should have received a copy of the GNU General Public License version aoqi@0: * 2 along with this work; if not, write to the Free Software Foundation, aoqi@0: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. aoqi@0: * aoqi@0: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA aoqi@0: * or visit www.oracle.com if you need additional information or have any aoqi@0: * questions. aoqi@0: */ aoqi@0: aoqi@0: /* this file is generated by RelaxNGCC */ aoqi@0: package com.sun.xml.internal.xsom.impl.parser.state; aoqi@0: import org.xml.sax.SAXException; aoqi@0: import org.xml.sax.XMLReader; aoqi@0: import org.xml.sax.Attributes; aoqi@0: import com.sun.xml.internal.xsom.impl.parser.NGCCRuntimeEx; aoqi@0: import javax.xml.parsers.SAXParserFactory; aoqi@0: import org.xml.sax.XMLReader; aoqi@0: aoqi@0: import com.sun.xml.internal.xsom.*; aoqi@0: import com.sun.xml.internal.xsom.parser.*; aoqi@0: import com.sun.xml.internal.xsom.impl.*; aoqi@0: import com.sun.xml.internal.xsom.impl.parser.*; aoqi@0: import org.xml.sax.Locator; aoqi@0: import org.xml.sax.ContentHandler; aoqi@0: import org.xml.sax.helpers.*; aoqi@0: import java.util.*; aoqi@0: import java.math.BigInteger; aoqi@0: aoqi@0: aoqi@0: aoqi@0: public class Schema extends NGCCHandler { aoqi@0: private Integer finalDefault; aoqi@0: private boolean efd; aoqi@0: private boolean afd; aoqi@0: private Integer blockDefault; aoqi@0: private ForeignAttributesImpl fa; aoqi@0: private boolean includeMode; aoqi@0: private AnnotationImpl anno; aoqi@0: private ComplexTypeImpl ct; aoqi@0: private ElementDecl e; aoqi@0: private String defaultValue; aoqi@0: private XSNotation notation; aoqi@0: private AttGroupDeclImpl ag; aoqi@0: private String fixedValue; aoqi@0: private ModelGroupDeclImpl group; aoqi@0: private AttributeDeclImpl ad; aoqi@0: private SimpleTypeImpl st; aoqi@0: private String expectedNamespace; aoqi@0: protected final NGCCRuntimeEx $runtime; aoqi@0: private int $_ngcc_current_state; aoqi@0: protected String $uri; aoqi@0: protected String $localName; aoqi@0: protected String $qname; aoqi@0: aoqi@0: public final NGCCRuntime getRuntime() { aoqi@0: return($runtime); aoqi@0: } aoqi@0: aoqi@0: public Schema(NGCCHandler parent, NGCCEventSource source, NGCCRuntimeEx runtime, int cookie, boolean _includeMode, String _expectedNamespace) { aoqi@0: super(source, parent, cookie); aoqi@0: $runtime = runtime; aoqi@0: this.includeMode = _includeMode; aoqi@0: this.expectedNamespace = _expectedNamespace; aoqi@0: $_ngcc_current_state = 57; aoqi@0: } aoqi@0: aoqi@0: public Schema(NGCCRuntimeEx runtime, boolean _includeMode, String _expectedNamespace) { aoqi@0: this(null, runtime, runtime, -1, _includeMode, _expectedNamespace); aoqi@0: } aoqi@0: aoqi@0: private void action0()throws SAXException { aoqi@0: $runtime.checkDoubleDefError( $runtime.currentSchema.getAttGroupDecl(ag.getName()) ); aoqi@0: $runtime.currentSchema.addAttGroupDecl(ag,false); aoqi@0: } aoqi@0: aoqi@0: private void action1()throws SAXException { aoqi@0: $runtime.currentSchema.addNotation(notation); aoqi@0: } aoqi@0: aoqi@0: private void action2()throws SAXException { aoqi@0: $runtime.checkDoubleDefError( $runtime.currentSchema.getModelGroupDecl(group.getName()) ); aoqi@0: $runtime.currentSchema.addModelGroupDecl(group,false); aoqi@0: } aoqi@0: aoqi@0: private void action3()throws SAXException { aoqi@0: $runtime.checkDoubleDefError( $runtime.currentSchema.getAttributeDecl(ad.getName()) ); aoqi@0: $runtime.currentSchema.addAttributeDecl(ad); aoqi@0: } aoqi@0: aoqi@0: private void action4()throws SAXException { aoqi@0: locator = $runtime.copyLocator(); aoqi@0: defaultValue = null; aoqi@0: fixedValue = null; aoqi@0: } aoqi@0: aoqi@0: private void action5()throws SAXException { aoqi@0: $runtime.checkDoubleDefError( $runtime.currentSchema.getType(ct.getName()) ); aoqi@0: $runtime.currentSchema.addComplexType(ct,false); aoqi@0: } aoqi@0: aoqi@0: private void action6()throws SAXException { aoqi@0: $runtime.checkDoubleDefError( $runtime.currentSchema.getType(st.getName()) ); aoqi@0: $runtime.currentSchema.addSimpleType(st,false); aoqi@0: } aoqi@0: aoqi@0: private void action7()throws SAXException { aoqi@0: $runtime.checkDoubleDefError( $runtime.currentSchema.getElementDecl(e.getName()) ); aoqi@0: $runtime.currentSchema.addElementDecl(e); aoqi@0: } aoqi@0: aoqi@0: private void action8()throws SAXException { aoqi@0: locator = $runtime.copyLocator(); aoqi@0: } aoqi@0: aoqi@0: private void action9()throws SAXException { aoqi@0: $runtime.currentSchema.setAnnotation(anno); aoqi@0: } aoqi@0: aoqi@0: private void action10()throws SAXException { aoqi@0: $runtime.currentSchema.addForeignAttributes(fa); aoqi@0: } aoqi@0: aoqi@0: private void action11()throws SAXException { aoqi@0: $runtime.finalDefault=this.finalDefault.intValue(); aoqi@0: } aoqi@0: aoqi@0: private void action12()throws SAXException { aoqi@0: $runtime.blockDefault=this.blockDefault.intValue(); aoqi@0: } aoqi@0: aoqi@0: private void action13()throws SAXException { aoqi@0: $runtime.elementFormDefault = efd; aoqi@0: } aoqi@0: aoqi@0: private void action14()throws SAXException { aoqi@0: $runtime.attributeFormDefault = afd; aoqi@0: } aoqi@0: aoqi@0: private void action15()throws SAXException { aoqi@0: Attributes test = $runtime.getCurrentAttributes(); aoqi@0: String tns = test.getValue("targetNamespace"); aoqi@0: aoqi@0: if(!includeMode) { aoqi@0: // importing aoqi@0: if(tns==null) tns=""; // if not present, then the empty namespace aoqi@0: $runtime.currentSchema = $runtime.parser.schemaSet.createSchema(tns,$runtime.copyLocator()); aoqi@0: if(expectedNamespace!=null && !expectedNamespace.equals(tns)) { aoqi@0: $runtime.reportError( aoqi@0: Messages.format("UnexpectedTargetnamespace.Import", tns, expectedNamespace, tns ), aoqi@0: $runtime.getLocator()); aoqi@0: } aoqi@0: } else { aoqi@0: // including aoqi@0: aoqi@0: // check the consistency of @targetNamespace. aoqi@0: // @targetNamespace must be null or equal to the target namespace of the schema aoqi@0: if(tns!=null && expectedNamespace!=null && !expectedNamespace.equals(tns)) { aoqi@0: $runtime.reportError( aoqi@0: Messages.format("UnexpectedTargetnamespace.Include", tns, expectedNamespace, tns ) ); aoqi@0: } aoqi@0: $runtime.chameleonMode = true; aoqi@0: } aoqi@0: aoqi@0: // multiple inclusion test. aoqi@0: if( $runtime.hasAlreadyBeenRead() ) { aoqi@0: // skip this document aoqi@0: $runtime.redirectSubtree(new DefaultHandler(),"","","" ); aoqi@0: return; aoqi@0: } aoqi@0: aoqi@0: anno = (AnnotationImpl)$runtime.currentSchema.getAnnotation(); aoqi@0: $runtime.blockDefault = 0; aoqi@0: $runtime.finalDefault = 0; aoqi@0: } aoqi@0: aoqi@0: public void enterElement(String $__uri, String $__local, String $__qname, Attributes $attrs) throws SAXException { aoqi@0: int $ai; aoqi@0: $uri = $__uri; aoqi@0: $localName = $__local; aoqi@0: $qname = $__qname; aoqi@0: switch($_ngcc_current_state) { aoqi@0: case 49: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","attributeFormDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 45; aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 36: aoqi@0: { aoqi@0: 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"))))))))))))) { aoqi@0: NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 527, null); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: unexpectedEnterElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 0: aoqi@0: { aoqi@0: revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: break; aoqi@0: case 16: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","default"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 12; aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 53: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","targetNamespace"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 49; aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 37: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","finalDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 36; aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 12: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 11; aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 45: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","elementFormDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 41; aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 41: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","blockDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 37; aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 2: aoqi@0: { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { aoqi@0: NGCCHandler h = new annotation(this, super._source, $runtime, 515, anno,AnnotationContext.SCHEMA); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("include"))) { aoqi@0: NGCCHandler h = new includeDecl(this, super._source, $runtime, 516); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("import"))) { aoqi@0: NGCCHandler h = new importDecl(this, super._source, $runtime, 517); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine"))) { aoqi@0: NGCCHandler h = new redefine(this, super._source, $runtime, 518); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) { aoqi@0: $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); aoqi@0: action8(); aoqi@0: $_ngcc_current_state = 27; aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { aoqi@0: NGCCHandler h = new simpleType(this, super._source, $runtime, 520); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) { aoqi@0: NGCCHandler h = new complexType(this, super._source, $runtime, 521); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) { aoqi@0: $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); aoqi@0: action4(); aoqi@0: $_ngcc_current_state = 16; aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group"))) { aoqi@0: NGCCHandler h = new group(this, super._source, $runtime, 523); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("notation"))) { aoqi@0: NGCCHandler h = new notation(this, super._source, $runtime, 524); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup"))) { aoqi@0: NGCCHandler h = new attributeGroupDecl(this, super._source, $runtime, 525); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 1; aoqi@0: $runtime.sendEnterElement(super._cookie, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 27: aoqi@0: { aoqi@0: 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))))))) { aoqi@0: NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: unexpectedEnterElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 57: aoqi@0: { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("schema"))) { aoqi@0: $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); aoqi@0: action15(); aoqi@0: $_ngcc_current_state = 53; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedEnterElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 11: aoqi@0: { aoqi@0: if((($ai = $runtime.getAttributeIndex("","name"))>=0 || ($ai = $runtime.getAttributeIndex("","form"))>=0)) { aoqi@0: NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 421, locator,false,defaultValue,fixedValue); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: unexpectedEnterElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 1: aoqi@0: { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("annotation"))) { aoqi@0: NGCCHandler h = new annotation(this, super._source, $runtime, 504, anno,AnnotationContext.SCHEMA); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("include"))) { aoqi@0: NGCCHandler h = new includeDecl(this, super._source, $runtime, 505); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("import"))) { aoqi@0: NGCCHandler h = new importDecl(this, super._source, $runtime, 506); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("redefine"))) { aoqi@0: NGCCHandler h = new redefine(this, super._source, $runtime, 507); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) { aoqi@0: $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); aoqi@0: action8(); aoqi@0: $_ngcc_current_state = 27; aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("simpleType"))) { aoqi@0: NGCCHandler h = new simpleType(this, super._source, $runtime, 509); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("complexType"))) { aoqi@0: NGCCHandler h = new complexType(this, super._source, $runtime, 510); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) { aoqi@0: $runtime.onEnterElementConsumed($__uri, $__local, $__qname, $attrs); aoqi@0: action4(); aoqi@0: $_ngcc_current_state = 16; aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("group"))) { aoqi@0: NGCCHandler h = new group(this, super._source, $runtime, 512); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("notation"))) { aoqi@0: NGCCHandler h = new notation(this, super._source, $runtime, 513); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attributeGroup"))) { aoqi@0: NGCCHandler h = new attributeGroupDecl(this, super._source, $runtime, 514); aoqi@0: spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); aoqi@0: } aoqi@0: else { aoqi@0: unexpectedEnterElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: default: aoqi@0: { aoqi@0: unexpectedEnterElement($__qname); aoqi@0: } aoqi@0: break; aoqi@0: } aoqi@0: } aoqi@0: aoqi@0: public void leaveElement(String $__uri, String $__local, String $__qname) throws SAXException { aoqi@0: int $ai; aoqi@0: $uri = $__uri; aoqi@0: $localName = $__local; aoqi@0: $qname = $__qname; aoqi@0: switch($_ngcc_current_state) { aoqi@0: case 49: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","attributeFormDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 45; aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 36: aoqi@0: { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("schema"))) { aoqi@0: NGCCHandler h = new foreignAttributes(this, super._source, $runtime, 527, null); aoqi@0: spawnChildFromLeaveElement(h, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 0: aoqi@0: { aoqi@0: revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 10: aoqi@0: { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("attribute"))) { aoqi@0: $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 16: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","default"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 12; aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 53: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","targetNamespace"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 49; aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 26: aoqi@0: { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("element"))) { aoqi@0: $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 37: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","finalDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 36; aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 12: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 11; aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 45: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","elementFormDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 41; aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 41: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","blockDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 37; aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 2: aoqi@0: { aoqi@0: $_ngcc_current_state = 1; aoqi@0: $runtime.sendLeaveElement(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 27: aoqi@0: { aoqi@0: 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")))))))))) { aoqi@0: NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); aoqi@0: spawnChildFromLeaveElement(h, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 11: aoqi@0: { aoqi@0: 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"))))) { aoqi@0: NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 421, locator,false,defaultValue,fixedValue); aoqi@0: spawnChildFromLeaveElement(h, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 1: aoqi@0: { aoqi@0: if(($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local.equals("schema"))) { aoqi@0: $runtime.onLeaveElementConsumed($__uri, $__local, $__qname); aoqi@0: $_ngcc_current_state = 0; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveElement($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: default: aoqi@0: { aoqi@0: unexpectedLeaveElement($__qname); aoqi@0: } aoqi@0: break; aoqi@0: } aoqi@0: } aoqi@0: aoqi@0: public void enterAttribute(String $__uri, String $__local, String $__qname) throws SAXException { aoqi@0: int $ai; aoqi@0: $uri = $__uri; aoqi@0: $localName = $__local; aoqi@0: $qname = $__qname; aoqi@0: switch($_ngcc_current_state) { aoqi@0: case 49: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("attributeFormDefault"))) { aoqi@0: $_ngcc_current_state = 51; aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 45; aoqi@0: $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 45: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("elementFormDefault"))) { aoqi@0: $_ngcc_current_state = 47; aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 41; aoqi@0: $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 41: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("blockDefault"))) { aoqi@0: $_ngcc_current_state = 43; aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 37; aoqi@0: $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 2: aoqi@0: { aoqi@0: $_ngcc_current_state = 1; aoqi@0: $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 27: aoqi@0: { aoqi@0: 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"))))))))) { aoqi@0: NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); aoqi@0: spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: unexpectedEnterAttribute($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 0: aoqi@0: { aoqi@0: revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 16: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("default"))) { aoqi@0: $_ngcc_current_state = 18; aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 12; aoqi@0: $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 37: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("finalDefault"))) { aoqi@0: $_ngcc_current_state = 39; aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 36; aoqi@0: $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 53: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("targetNamespace"))) { aoqi@0: $_ngcc_current_state = 55; aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 49; aoqi@0: $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 11: aoqi@0: { aoqi@0: if((($__uri.equals("") && $__local.equals("name")) || ($__uri.equals("") && $__local.equals("form")))) { aoqi@0: NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 421, locator,false,defaultValue,fixedValue); aoqi@0: spawnChildFromEnterAttribute(h, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: else { aoqi@0: unexpectedEnterAttribute($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 12: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("fixed"))) { aoqi@0: $_ngcc_current_state = 14; aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 11; aoqi@0: $runtime.sendEnterAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: default: aoqi@0: { aoqi@0: unexpectedEnterAttribute($__qname); aoqi@0: } aoqi@0: break; aoqi@0: } aoqi@0: } aoqi@0: aoqi@0: public void leaveAttribute(String $__uri, String $__local, String $__qname) throws SAXException { aoqi@0: int $ai; aoqi@0: $uri = $__uri; aoqi@0: $localName = $__local; aoqi@0: $qname = $__qname; aoqi@0: switch($_ngcc_current_state) { aoqi@0: case 49: aoqi@0: { aoqi@0: $_ngcc_current_state = 45; aoqi@0: $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 38: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("finalDefault"))) { aoqi@0: $_ngcc_current_state = 36; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveAttribute($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 0: aoqi@0: { aoqi@0: revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 16: aoqi@0: { aoqi@0: $_ngcc_current_state = 12; aoqi@0: $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 13: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("fixed"))) { aoqi@0: $_ngcc_current_state = 11; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveAttribute($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 53: aoqi@0: { aoqi@0: $_ngcc_current_state = 49; aoqi@0: $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 37: aoqi@0: { aoqi@0: $_ngcc_current_state = 36; aoqi@0: $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 17: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("default"))) { aoqi@0: $_ngcc_current_state = 12; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveAttribute($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 12: aoqi@0: { aoqi@0: $_ngcc_current_state = 11; aoqi@0: $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 50: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("attributeFormDefault"))) { aoqi@0: $_ngcc_current_state = 45; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveAttribute($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 42: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("blockDefault"))) { aoqi@0: $_ngcc_current_state = 37; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveAttribute($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 45: aoqi@0: { aoqi@0: $_ngcc_current_state = 41; aoqi@0: $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 41: aoqi@0: { aoqi@0: $_ngcc_current_state = 37; aoqi@0: $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 2: aoqi@0: { aoqi@0: $_ngcc_current_state = 1; aoqi@0: $runtime.sendLeaveAttribute(super._cookie, $__uri, $__local, $__qname); aoqi@0: } aoqi@0: break; aoqi@0: case 54: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("targetNamespace"))) { aoqi@0: $_ngcc_current_state = 49; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveAttribute($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 46: aoqi@0: { aoqi@0: if(($__uri.equals("") && $__local.equals("elementFormDefault"))) { aoqi@0: $_ngcc_current_state = 41; aoqi@0: } aoqi@0: else { aoqi@0: unexpectedLeaveAttribute($__qname); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: default: aoqi@0: { aoqi@0: unexpectedLeaveAttribute($__qname); aoqi@0: } aoqi@0: break; aoqi@0: } aoqi@0: } aoqi@0: aoqi@0: public void text(String $value) throws SAXException { aoqi@0: int $ai; aoqi@0: switch($_ngcc_current_state) { aoqi@0: case 49: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","attributeFormDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 45; aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 0: aoqi@0: { aoqi@0: revertToParentFromText(this, super._cookie, $value); aoqi@0: } aoqi@0: break; aoqi@0: case 47: aoqi@0: { aoqi@0: if($value.equals("unqualified")) { aoqi@0: NGCCHandler h = new qualification(this, super._source, $runtime, 539); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: else { aoqi@0: if($value.equals("qualified")) { aoqi@0: NGCCHandler h = new qualification(this, super._source, $runtime, 539); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 43: aoqi@0: { aoqi@0: NGCCHandler h = new ersSet(this, super._source, $runtime, 534); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: break; aoqi@0: case 16: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","default"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 12; aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 53: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","targetNamespace"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 49; aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 37: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","finalDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 36; aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 12: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 11; aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 14: aoqi@0: { aoqi@0: fixedValue = $value; aoqi@0: $_ngcc_current_state = 13; aoqi@0: } aoqi@0: break; aoqi@0: case 45: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","elementFormDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 41; aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 41: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","blockDefault"))>=0) { aoqi@0: $runtime.consumeAttribute($ai); aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: else { aoqi@0: $_ngcc_current_state = 37; aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 55: aoqi@0: { aoqi@0: $_ngcc_current_state = 54; aoqi@0: } aoqi@0: break; aoqi@0: case 2: aoqi@0: { aoqi@0: $_ngcc_current_state = 1; aoqi@0: $runtime.sendText(super._cookie, $value); aoqi@0: } aoqi@0: break; aoqi@0: case 27: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","abstract"))>=0) { aoqi@0: NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: else { aoqi@0: if(($ai = $runtime.getAttributeIndex("","name"))>=0) { aoqi@0: NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: else { aoqi@0: if(($ai = $runtime.getAttributeIndex("","block"))>=0) { aoqi@0: NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: else { aoqi@0: if(($ai = $runtime.getAttributeIndex("","final"))>=0) { aoqi@0: NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: else { aoqi@0: if(($ai = $runtime.getAttributeIndex("","form"))>=0) { aoqi@0: NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: else { aoqi@0: if(($ai = $runtime.getAttributeIndex("","fixed"))>=0) { aoqi@0: NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: else { aoqi@0: if(($ai = $runtime.getAttributeIndex("","default"))>=0) { aoqi@0: NGCCHandler h = new elementDeclBody(this, super._source, $runtime, 439, locator,true); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 39: aoqi@0: { aoqi@0: NGCCHandler h = new erSet(this, super._source, $runtime, 529); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: break; aoqi@0: case 51: aoqi@0: { aoqi@0: if($value.equals("unqualified")) { aoqi@0: NGCCHandler h = new qualification(this, super._source, $runtime, 544); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: else { aoqi@0: if($value.equals("qualified")) { aoqi@0: NGCCHandler h = new qualification(this, super._source, $runtime, 544); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: case 18: aoqi@0: { aoqi@0: defaultValue = $value; aoqi@0: $_ngcc_current_state = 17; aoqi@0: } aoqi@0: break; aoqi@0: case 11: aoqi@0: { aoqi@0: if(($ai = $runtime.getAttributeIndex("","form"))>=0) { aoqi@0: NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 421, locator,false,defaultValue,fixedValue); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: else { aoqi@0: if(($ai = $runtime.getAttributeIndex("","name"))>=0) { aoqi@0: NGCCHandler h = new attributeDeclBody(this, super._source, $runtime, 421, locator,false,defaultValue,fixedValue); aoqi@0: spawnChildFromText(h, $value); aoqi@0: } aoqi@0: } aoqi@0: } aoqi@0: break; aoqi@0: } aoqi@0: } aoqi@0: aoqi@0: public void onChildCompleted(Object $__result__, int $__cookie__, boolean $__needAttCheck__)throws SAXException { aoqi@0: switch($__cookie__) { aoqi@0: case 527: aoqi@0: { aoqi@0: fa = ((ForeignAttributesImpl)$__result__); aoqi@0: action10(); aoqi@0: $_ngcc_current_state = 2; aoqi@0: } aoqi@0: break; aoqi@0: case 534: aoqi@0: { aoqi@0: blockDefault = ((Integer)$__result__); aoqi@0: action12(); aoqi@0: $_ngcc_current_state = 42; aoqi@0: } aoqi@0: break; aoqi@0: case 439: aoqi@0: { aoqi@0: e = ((ElementDecl)$__result__); aoqi@0: action7(); aoqi@0: $_ngcc_current_state = 26; aoqi@0: } aoqi@0: break; aoqi@0: case 544: aoqi@0: { aoqi@0: afd = ((Boolean)$__result__).booleanValue(); aoqi@0: action14(); aoqi@0: $_ngcc_current_state = 50; aoqi@0: } aoqi@0: break; aoqi@0: case 421: aoqi@0: { aoqi@0: ad = ((AttributeDeclImpl)$__result__); aoqi@0: action3(); aoqi@0: $_ngcc_current_state = 10; aoqi@0: } aoqi@0: break; aoqi@0: case 504: aoqi@0: { aoqi@0: anno = ((AnnotationImpl)$__result__); aoqi@0: action9(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 505: aoqi@0: { aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 506: aoqi@0: { aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 507: aoqi@0: { aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 509: aoqi@0: { aoqi@0: st = ((SimpleTypeImpl)$__result__); aoqi@0: action6(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 510: aoqi@0: { aoqi@0: ct = ((ComplexTypeImpl)$__result__); aoqi@0: action5(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 512: aoqi@0: { aoqi@0: group = ((ModelGroupDeclImpl)$__result__); aoqi@0: action2(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 513: aoqi@0: { aoqi@0: notation = ((XSNotation)$__result__); aoqi@0: action1(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 514: aoqi@0: { aoqi@0: ag = ((AttGroupDeclImpl)$__result__); aoqi@0: action0(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 539: aoqi@0: { aoqi@0: efd = ((Boolean)$__result__).booleanValue(); aoqi@0: action13(); aoqi@0: $_ngcc_current_state = 46; aoqi@0: } aoqi@0: break; aoqi@0: case 515: aoqi@0: { aoqi@0: anno = ((AnnotationImpl)$__result__); aoqi@0: action9(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 516: aoqi@0: { aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 517: aoqi@0: { aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 518: aoqi@0: { aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 520: aoqi@0: { aoqi@0: st = ((SimpleTypeImpl)$__result__); aoqi@0: action6(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 521: aoqi@0: { aoqi@0: ct = ((ComplexTypeImpl)$__result__); aoqi@0: action5(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 523: aoqi@0: { aoqi@0: group = ((ModelGroupDeclImpl)$__result__); aoqi@0: action2(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 524: aoqi@0: { aoqi@0: notation = ((XSNotation)$__result__); aoqi@0: action1(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 525: aoqi@0: { aoqi@0: ag = ((AttGroupDeclImpl)$__result__); aoqi@0: action0(); aoqi@0: $_ngcc_current_state = 1; aoqi@0: } aoqi@0: break; aoqi@0: case 529: aoqi@0: { aoqi@0: finalDefault = ((Integer)$__result__); aoqi@0: action11(); aoqi@0: $_ngcc_current_state = 38; aoqi@0: } aoqi@0: break; aoqi@0: } aoqi@0: } aoqi@0: aoqi@0: public boolean accepted() { aoqi@0: return(($_ngcc_current_state == 0)); aoqi@0: } aoqi@0: aoqi@0: aoqi@0: private String tns=null; // it defaults to the no namespace. aoqi@0: private Locator locator; aoqi@0: aoqi@0: }