0001: /* this file is generated by RelaxNGCC */
0002: package com.sun.xml.xsom.impl.parser.state;
0003:
0004: import org.xml.sax.SAXException;
0005: import org.xml.sax.XMLReader;
0006: import org.xml.sax.Attributes;
0007: import com.sun.xml.xsom.impl.parser.NGCCRuntimeEx;
0008: import javax.xml.parsers.SAXParserFactory;
0009: import org.xml.sax.XMLReader;
0010:
0011: import com.sun.xml.xsom.*;
0012: import com.sun.xml.xsom.parser.*;
0013: import com.sun.xml.xsom.impl.*;
0014: import com.sun.xml.xsom.impl.parser.*;
0015: import org.xml.sax.Locator;
0016: import org.xml.sax.ContentHandler;
0017: import org.xml.sax.helpers.*;
0018: import java.util.*;
0019:
0020: public class Schema extends NGCCHandler {
0021: private Integer finalDefault;
0022: private boolean efd;
0023: private boolean afd;
0024: private Integer blockDefault;
0025: private ForeignAttributesImpl fa;
0026: private boolean includeMode;
0027: private AnnotationImpl anno;
0028: private ComplexTypeImpl ct;
0029: private ElementDecl e;
0030: private String defaultValue;
0031: private XSNotation notation;
0032: private AttGroupDeclImpl ag;
0033: private String fixedValue;
0034: private ModelGroupDeclImpl group;
0035: private AttributeDeclImpl ad;
0036: private SimpleTypeImpl st;
0037: private String expectedNamespace;
0038: protected final NGCCRuntimeEx $runtime;
0039: private int $_ngcc_current_state;
0040: protected String $uri;
0041: protected String $localName;
0042: protected String $qname;
0043:
0044: public final NGCCRuntime getRuntime() {
0045: return ($runtime);
0046: }
0047:
0048: public Schema(NGCCHandler parent, NGCCEventSource source,
0049: NGCCRuntimeEx runtime, int cookie, boolean _includeMode,
0050: String _expectedNamespace) {
0051: super (source, parent, cookie);
0052: $runtime = runtime;
0053: this .includeMode = _includeMode;
0054: this .expectedNamespace = _expectedNamespace;
0055: $_ngcc_current_state = 57;
0056: }
0057:
0058: public Schema(NGCCRuntimeEx runtime, boolean _includeMode,
0059: String _expectedNamespace) {
0060: this (null, runtime, runtime, -1, _includeMode,
0061: _expectedNamespace);
0062: }
0063:
0064: private void action0() throws SAXException {
0065: $runtime.checkDoubleDefError($runtime.currentSchema
0066: .getAttGroupDecl(ag.getName()));
0067: $runtime.currentSchema.addAttGroupDecl(ag, false);
0068: }
0069:
0070: private void action1() throws SAXException {
0071: $runtime.currentSchema.addNotation(notation);
0072: }
0073:
0074: private void action2() throws SAXException {
0075: $runtime.checkDoubleDefError($runtime.currentSchema
0076: .getModelGroupDecl(group.getName()));
0077: $runtime.currentSchema.addModelGroupDecl(group, false);
0078: }
0079:
0080: private void action3() throws SAXException {
0081: $runtime.checkDoubleDefError($runtime.currentSchema
0082: .getAttributeDecl(ad.getName()));
0083: $runtime.currentSchema.addAttributeDecl(ad);
0084: }
0085:
0086: private void action4() throws SAXException {
0087: locator = $runtime.copyLocator();
0088: defaultValue = null;
0089: fixedValue = null;
0090: }
0091:
0092: private void action5() throws SAXException {
0093: $runtime.checkDoubleDefError($runtime.currentSchema.getType(ct
0094: .getName()));
0095: $runtime.currentSchema.addComplexType(ct, false);
0096: }
0097:
0098: private void action6() throws SAXException {
0099: $runtime.checkDoubleDefError($runtime.currentSchema.getType(st
0100: .getName()));
0101: $runtime.currentSchema.addSimpleType(st, false);
0102: }
0103:
0104: private void action7() throws SAXException {
0105: $runtime.checkDoubleDefError($runtime.currentSchema
0106: .getElementDecl(e.getName()));
0107: $runtime.currentSchema.addElementDecl(e);
0108: }
0109:
0110: private void action8() throws SAXException {
0111: locator = $runtime.copyLocator();
0112: }
0113:
0114: private void action9() throws SAXException {
0115: $runtime.currentSchema.setAnnotation(anno);
0116: }
0117:
0118: private void action10() throws SAXException {
0119: $runtime.currentSchema.addForeignAttributes(fa);
0120: }
0121:
0122: private void action11() throws SAXException {
0123: $runtime.finalDefault = this .finalDefault.intValue();
0124: }
0125:
0126: private void action12() throws SAXException {
0127: $runtime.blockDefault = this .blockDefault.intValue();
0128: }
0129:
0130: private void action13() throws SAXException {
0131: $runtime.elementFormDefault = efd;
0132: }
0133:
0134: private void action14() throws SAXException {
0135: $runtime.attributeFormDefault = afd;
0136: }
0137:
0138: private void action15() throws SAXException {
0139: Attributes test = $runtime.getCurrentAttributes();
0140: String tns = test.getValue("targetNamespace");
0141:
0142: if (!includeMode) {
0143: // importing
0144: if (tns == null)
0145: tns = ""; // if not present, then the empty namespace
0146: $runtime.currentSchema = $runtime.parser.schemaSet
0147: .createSchema(tns, $runtime.copyLocator());
0148: if (expectedNamespace != null
0149: && !expectedNamespace.equals(tns)) {
0150: $runtime.reportError(Messages.format(
0151: "UnexpectedTargetnamespace.Import", tns,
0152: expectedNamespace, tns), $runtime.getLocator());
0153: }
0154: } else {
0155: // including
0156:
0157: // check the consistency of @targetNamespace.
0158: // @targetNamespace must be null or equal to the target namespace of the schema
0159: if (tns != null && expectedNamespace != null
0160: && !expectedNamespace.equals(tns)) {
0161: $runtime.reportError(Messages.format(
0162: "UnexpectedTargetnamespace.Include", tns,
0163: expectedNamespace, tns));
0164: }
0165: if (tns == null)
0166: $runtime.chameleonMode = true;
0167: }
0168:
0169: // multiple inclusion test.
0170: if ($runtime.hasAlreadyBeenRead()) {
0171: // skip this document
0172: $runtime.redirectSubtree(new DefaultHandler(), "", "", "");
0173: return;
0174: }
0175:
0176: anno = (AnnotationImpl) $runtime.currentSchema.getAnnotation();
0177: $runtime.blockDefault = 0;
0178: $runtime.finalDefault = 0;
0179: }
0180:
0181: public void enterElement(String $__uri, String $__local,
0182: String $__qname, Attributes $attrs) throws SAXException {
0183: int $ai;
0184: $uri = $__uri;
0185: $localName = $__local;
0186: $qname = $__qname;
0187: switch ($_ngcc_current_state) {
0188: case 16: {
0189: if (($ai = $runtime.getAttributeIndex("", "default")) >= 0) {
0190: $runtime.consumeAttribute($ai);
0191: $runtime.sendEnterElement(super ._cookie, $__uri,
0192: $__local, $__qname, $attrs);
0193: } else {
0194: $_ngcc_current_state = 12;
0195: $runtime.sendEnterElement(super ._cookie, $__uri,
0196: $__local, $__qname, $attrs);
0197: }
0198: }
0199: break;
0200: case 11: {
0201: if ((($ai = $runtime.getAttributeIndex("", "name")) >= 0 || ($ai = $runtime
0202: .getAttributeIndex("", "form")) >= 0)) {
0203: NGCCHandler h = new attributeDeclBody(this ,
0204: super ._source, $runtime, 24, locator, false,
0205: defaultValue, fixedValue);
0206: spawnChildFromEnterElement(h, $__uri, $__local,
0207: $__qname, $attrs);
0208: } else {
0209: unexpectedEnterElement($__qname);
0210: }
0211: }
0212: break;
0213: case 36: {
0214: if ((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
0215: .equals("element")) || (($__uri
0216: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0217: .equals("group")) || (($__uri
0218: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0219: .equals("complexType")) || (($__uri
0220: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0221: .equals("annotation")) || (($__uri
0222: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0223: .equals("import")) || (($__uri
0224: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0225: .equals("redefine")) || (($__uri
0226: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0227: .equals("include")) || (($__uri
0228: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0229: .equals("simpleType")) || (($__uri
0230: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0231: .equals("attributeGroup")) || (($__uri
0232: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0233: .equals("notation")) || ($__uri
0234: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0235: .equals("attribute"))))))))))))) {
0236: NGCCHandler h = new foreignAttributes(this ,
0237: super ._source, $runtime, 130, null);
0238: spawnChildFromEnterElement(h, $__uri, $__local,
0239: $__qname, $attrs);
0240: } else {
0241: unexpectedEnterElement($__qname);
0242: }
0243: }
0244: break;
0245: case 27: {
0246: if ((($ai = $runtime.getAttributeIndex("", "default")) >= 0 || (($ai = $runtime
0247: .getAttributeIndex("", "block")) >= 0 || (($ai = $runtime
0248: .getAttributeIndex("", "fixed")) >= 0 || (($ai = $runtime
0249: .getAttributeIndex("", "form")) >= 0 || (($ai = $runtime
0250: .getAttributeIndex("", "final")) >= 0 || (($ai = $runtime
0251: .getAttributeIndex("", "abstract")) >= 0 || ($ai = $runtime
0252: .getAttributeIndex("", "name")) >= 0))))))) {
0253: NGCCHandler h = new elementDeclBody(this ,
0254: super ._source, $runtime, 42, locator, true);
0255: spawnChildFromEnterElement(h, $__uri, $__local,
0256: $__qname, $attrs);
0257: } else {
0258: unexpectedEnterElement($__qname);
0259: }
0260: }
0261: break;
0262: case 45: {
0263: if (($ai = $runtime.getAttributeIndex("",
0264: "elementFormDefault")) >= 0) {
0265: $runtime.consumeAttribute($ai);
0266: $runtime.sendEnterElement(super ._cookie, $__uri,
0267: $__local, $__qname, $attrs);
0268: } else {
0269: $_ngcc_current_state = 41;
0270: $runtime.sendEnterElement(super ._cookie, $__uri,
0271: $__local, $__qname, $attrs);
0272: }
0273: }
0274: break;
0275: case 41: {
0276: if (($ai = $runtime.getAttributeIndex("", "blockDefault")) >= 0) {
0277: $runtime.consumeAttribute($ai);
0278: $runtime.sendEnterElement(super ._cookie, $__uri,
0279: $__local, $__qname, $attrs);
0280: } else {
0281: $_ngcc_current_state = 37;
0282: $runtime.sendEnterElement(super ._cookie, $__uri,
0283: $__local, $__qname, $attrs);
0284: }
0285: }
0286: break;
0287: case 37: {
0288: if (($ai = $runtime.getAttributeIndex("", "finalDefault")) >= 0) {
0289: $runtime.consumeAttribute($ai);
0290: $runtime.sendEnterElement(super ._cookie, $__uri,
0291: $__local, $__qname, $attrs);
0292: } else {
0293: $_ngcc_current_state = 36;
0294: $runtime.sendEnterElement(super ._cookie, $__uri,
0295: $__local, $__qname, $attrs);
0296: }
0297: }
0298: break;
0299: case 49: {
0300: if (($ai = $runtime.getAttributeIndex("",
0301: "attributeFormDefault")) >= 0) {
0302: $runtime.consumeAttribute($ai);
0303: $runtime.sendEnterElement(super ._cookie, $__uri,
0304: $__local, $__qname, $attrs);
0305: } else {
0306: $_ngcc_current_state = 45;
0307: $runtime.sendEnterElement(super ._cookie, $__uri,
0308: $__local, $__qname, $attrs);
0309: }
0310: }
0311: break;
0312: case 53: {
0313: if (($ai = $runtime
0314: .getAttributeIndex("", "targetNamespace")) >= 0) {
0315: $runtime.consumeAttribute($ai);
0316: $runtime.sendEnterElement(super ._cookie, $__uri,
0317: $__local, $__qname, $attrs);
0318: } else {
0319: $_ngcc_current_state = 49;
0320: $runtime.sendEnterElement(super ._cookie, $__uri,
0321: $__local, $__qname, $attrs);
0322: }
0323: }
0324: break;
0325: case 12: {
0326: if (($ai = $runtime.getAttributeIndex("", "fixed")) >= 0) {
0327: $runtime.consumeAttribute($ai);
0328: $runtime.sendEnterElement(super ._cookie, $__uri,
0329: $__local, $__qname, $attrs);
0330: } else {
0331: $_ngcc_current_state = 11;
0332: $runtime.sendEnterElement(super ._cookie, $__uri,
0333: $__local, $__qname, $attrs);
0334: }
0335: }
0336: break;
0337: case 2: {
0338: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
0339: .equals("annotation"))) {
0340: NGCCHandler h = new annotation(this , super ._source,
0341: $runtime, 118, anno, AnnotationContext.SCHEMA);
0342: spawnChildFromEnterElement(h, $__uri, $__local,
0343: $__qname, $attrs);
0344: } else {
0345: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
0346: .equals("include"))) {
0347: NGCCHandler h = new includeDecl(this ,
0348: super ._source, $runtime, 119);
0349: spawnChildFromEnterElement(h, $__uri, $__local,
0350: $__qname, $attrs);
0351: } else {
0352: if (($__uri
0353: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0354: .equals("import"))) {
0355: NGCCHandler h = new importDecl(this ,
0356: super ._source, $runtime, 120);
0357: spawnChildFromEnterElement(h, $__uri, $__local,
0358: $__qname, $attrs);
0359: } else {
0360: if (($__uri
0361: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0362: .equals("redefine"))) {
0363: NGCCHandler h = new redefine(this ,
0364: super ._source, $runtime, 121);
0365: spawnChildFromEnterElement(h, $__uri,
0366: $__local, $__qname, $attrs);
0367: } else {
0368: if (($__uri
0369: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0370: .equals("element"))) {
0371: $runtime.onEnterElementConsumed($__uri,
0372: $__local, $__qname, $attrs);
0373: action8();
0374: $_ngcc_current_state = 27;
0375: } else {
0376: if (($__uri
0377: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0378: .equals("simpleType"))) {
0379: NGCCHandler h = new simpleType(
0380: this , super ._source,
0381: $runtime, 123);
0382: spawnChildFromEnterElement(h,
0383: $__uri, $__local, $__qname,
0384: $attrs);
0385: } else {
0386: if (($__uri
0387: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0388: .equals("complexType"))) {
0389: NGCCHandler h = new complexType(
0390: this , super ._source,
0391: $runtime, 124);
0392: spawnChildFromEnterElement(h,
0393: $__uri, $__local,
0394: $__qname, $attrs);
0395: } else {
0396: if (($__uri
0397: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0398: .equals("attribute"))) {
0399: $runtime
0400: .onEnterElementConsumed(
0401: $__uri,
0402: $__local,
0403: $__qname,
0404: $attrs);
0405: action4();
0406: $_ngcc_current_state = 16;
0407: } else {
0408: if (($__uri
0409: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0410: .equals("group"))) {
0411: NGCCHandler h = new group(
0412: this ,
0413: super ._source,
0414: $runtime, 126);
0415: spawnChildFromEnterElement(
0416: h, $__uri,
0417: $__local,
0418: $__qname,
0419: $attrs);
0420: } else {
0421: if (($__uri
0422: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0423: .equals("notation"))) {
0424: NGCCHandler h = new notation(
0425: this ,
0426: super ._source,
0427: $runtime,
0428: 127);
0429: spawnChildFromEnterElement(
0430: h, $__uri,
0431: $__local,
0432: $__qname,
0433: $attrs);
0434: } else {
0435: if (($__uri
0436: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0437: .equals("attributeGroup"))) {
0438: NGCCHandler h = new attributeGroupDecl(
0439: this ,
0440: super ._source,
0441: $runtime,
0442: 128);
0443: spawnChildFromEnterElement(
0444: h,
0445: $__uri,
0446: $__local,
0447: $__qname,
0448: $attrs);
0449: } else {
0450: $_ngcc_current_state = 1;
0451: $runtime
0452: .sendEnterElement(
0453: super ._cookie,
0454: $__uri,
0455: $__local,
0456: $__qname,
0457: $attrs);
0458: }
0459: }
0460: }
0461: }
0462: }
0463: }
0464: }
0465: }
0466: }
0467: }
0468: }
0469: }
0470: break;
0471: case 0: {
0472: revertToParentFromEnterElement(this , super ._cookie, $__uri,
0473: $__local, $__qname, $attrs);
0474: }
0475: break;
0476: case 57: {
0477: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
0478: .equals("schema"))) {
0479: $runtime.onEnterElementConsumed($__uri, $__local,
0480: $__qname, $attrs);
0481: action15();
0482: $_ngcc_current_state = 53;
0483: } else {
0484: unexpectedEnterElement($__qname);
0485: }
0486: }
0487: break;
0488: case 1: {
0489: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
0490: .equals("annotation"))) {
0491: NGCCHandler h = new annotation(this , super ._source,
0492: $runtime, 107, anno, AnnotationContext.SCHEMA);
0493: spawnChildFromEnterElement(h, $__uri, $__local,
0494: $__qname, $attrs);
0495: } else {
0496: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
0497: .equals("include"))) {
0498: NGCCHandler h = new includeDecl(this ,
0499: super ._source, $runtime, 108);
0500: spawnChildFromEnterElement(h, $__uri, $__local,
0501: $__qname, $attrs);
0502: } else {
0503: if (($__uri
0504: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0505: .equals("import"))) {
0506: NGCCHandler h = new importDecl(this ,
0507: super ._source, $runtime, 109);
0508: spawnChildFromEnterElement(h, $__uri, $__local,
0509: $__qname, $attrs);
0510: } else {
0511: if (($__uri
0512: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0513: .equals("redefine"))) {
0514: NGCCHandler h = new redefine(this ,
0515: super ._source, $runtime, 110);
0516: spawnChildFromEnterElement(h, $__uri,
0517: $__local, $__qname, $attrs);
0518: } else {
0519: if (($__uri
0520: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0521: .equals("element"))) {
0522: $runtime.onEnterElementConsumed($__uri,
0523: $__local, $__qname, $attrs);
0524: action8();
0525: $_ngcc_current_state = 27;
0526: } else {
0527: if (($__uri
0528: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0529: .equals("simpleType"))) {
0530: NGCCHandler h = new simpleType(
0531: this , super ._source,
0532: $runtime, 112);
0533: spawnChildFromEnterElement(h,
0534: $__uri, $__local, $__qname,
0535: $attrs);
0536: } else {
0537: if (($__uri
0538: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0539: .equals("complexType"))) {
0540: NGCCHandler h = new complexType(
0541: this , super ._source,
0542: $runtime, 113);
0543: spawnChildFromEnterElement(h,
0544: $__uri, $__local,
0545: $__qname, $attrs);
0546: } else {
0547: if (($__uri
0548: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0549: .equals("attribute"))) {
0550: $runtime
0551: .onEnterElementConsumed(
0552: $__uri,
0553: $__local,
0554: $__qname,
0555: $attrs);
0556: action4();
0557: $_ngcc_current_state = 16;
0558: } else {
0559: if (($__uri
0560: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0561: .equals("group"))) {
0562: NGCCHandler h = new group(
0563: this ,
0564: super ._source,
0565: $runtime, 115);
0566: spawnChildFromEnterElement(
0567: h, $__uri,
0568: $__local,
0569: $__qname,
0570: $attrs);
0571: } else {
0572: if (($__uri
0573: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0574: .equals("notation"))) {
0575: NGCCHandler h = new notation(
0576: this ,
0577: super ._source,
0578: $runtime,
0579: 116);
0580: spawnChildFromEnterElement(
0581: h, $__uri,
0582: $__local,
0583: $__qname,
0584: $attrs);
0585: } else {
0586: if (($__uri
0587: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0588: .equals("attributeGroup"))) {
0589: NGCCHandler h = new attributeGroupDecl(
0590: this ,
0591: super ._source,
0592: $runtime,
0593: 117);
0594: spawnChildFromEnterElement(
0595: h,
0596: $__uri,
0597: $__local,
0598: $__qname,
0599: $attrs);
0600: } else {
0601: unexpectedEnterElement($__qname);
0602: }
0603: }
0604: }
0605: }
0606: }
0607: }
0608: }
0609: }
0610: }
0611: }
0612: }
0613: }
0614: break;
0615: default: {
0616: unexpectedEnterElement($__qname);
0617: }
0618: break;
0619: }
0620: }
0621:
0622: public void leaveElement(String $__uri, String $__local,
0623: String $__qname) throws SAXException {
0624: int $ai;
0625: $uri = $__uri;
0626: $localName = $__local;
0627: $qname = $__qname;
0628: switch ($_ngcc_current_state) {
0629: case 16: {
0630: if (($ai = $runtime.getAttributeIndex("", "default")) >= 0) {
0631: $runtime.consumeAttribute($ai);
0632: $runtime.sendLeaveElement(super ._cookie, $__uri,
0633: $__local, $__qname);
0634: } else {
0635: $_ngcc_current_state = 12;
0636: $runtime.sendLeaveElement(super ._cookie, $__uri,
0637: $__local, $__qname);
0638: }
0639: }
0640: break;
0641: case 11: {
0642: if (((($ai = $runtime.getAttributeIndex("", "name")) >= 0 && ($__uri
0643: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0644: .equals("attribute"))) || (($ai = $runtime
0645: .getAttributeIndex("", "form")) >= 0 && ($__uri
0646: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0647: .equals("attribute"))))) {
0648: NGCCHandler h = new attributeDeclBody(this ,
0649: super ._source, $runtime, 24, locator, false,
0650: defaultValue, fixedValue);
0651: spawnChildFromLeaveElement(h, $__uri, $__local,
0652: $__qname);
0653: } else {
0654: unexpectedLeaveElement($__qname);
0655: }
0656: }
0657: break;
0658: case 36: {
0659: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
0660: .equals("schema"))) {
0661: NGCCHandler h = new foreignAttributes(this ,
0662: super ._source, $runtime, 130, null);
0663: spawnChildFromLeaveElement(h, $__uri, $__local,
0664: $__qname);
0665: } else {
0666: unexpectedLeaveElement($__qname);
0667: }
0668: }
0669: break;
0670: case 10: {
0671: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
0672: .equals("attribute"))) {
0673: $runtime.onLeaveElementConsumed($__uri, $__local,
0674: $__qname);
0675: $_ngcc_current_state = 1;
0676: } else {
0677: unexpectedLeaveElement($__qname);
0678: }
0679: }
0680: break;
0681: case 27: {
0682: if (((($ai = $runtime.getAttributeIndex("", "default")) >= 0 && ($__uri
0683: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0684: .equals("element"))) || ((($ai = $runtime
0685: .getAttributeIndex("", "block")) >= 0 && ($__uri
0686: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0687: .equals("element"))) || ((($ai = $runtime
0688: .getAttributeIndex("", "fixed")) >= 0 && ($__uri
0689: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0690: .equals("element"))) || ((($ai = $runtime
0691: .getAttributeIndex("", "form")) >= 0 && ($__uri
0692: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0693: .equals("element"))) || ((($ai = $runtime
0694: .getAttributeIndex("", "final")) >= 0 && ($__uri
0695: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0696: .equals("element"))) || ((($ai = $runtime
0697: .getAttributeIndex("", "abstract")) >= 0 && ($__uri
0698: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0699: .equals("element"))) || (($ai = $runtime
0700: .getAttributeIndex("", "name")) >= 0 && ($__uri
0701: .equals("http://www.w3.org/2001/XMLSchema") && $__local
0702: .equals("element")))))))))) {
0703: NGCCHandler h = new elementDeclBody(this ,
0704: super ._source, $runtime, 42, locator, true);
0705: spawnChildFromLeaveElement(h, $__uri, $__local,
0706: $__qname);
0707: } else {
0708: unexpectedLeaveElement($__qname);
0709: }
0710: }
0711: break;
0712: case 45: {
0713: if (($ai = $runtime.getAttributeIndex("",
0714: "elementFormDefault")) >= 0) {
0715: $runtime.consumeAttribute($ai);
0716: $runtime.sendLeaveElement(super ._cookie, $__uri,
0717: $__local, $__qname);
0718: } else {
0719: $_ngcc_current_state = 41;
0720: $runtime.sendLeaveElement(super ._cookie, $__uri,
0721: $__local, $__qname);
0722: }
0723: }
0724: break;
0725: case 41: {
0726: if (($ai = $runtime.getAttributeIndex("", "blockDefault")) >= 0) {
0727: $runtime.consumeAttribute($ai);
0728: $runtime.sendLeaveElement(super ._cookie, $__uri,
0729: $__local, $__qname);
0730: } else {
0731: $_ngcc_current_state = 37;
0732: $runtime.sendLeaveElement(super ._cookie, $__uri,
0733: $__local, $__qname);
0734: }
0735: }
0736: break;
0737: case 37: {
0738: if (($ai = $runtime.getAttributeIndex("", "finalDefault")) >= 0) {
0739: $runtime.consumeAttribute($ai);
0740: $runtime.sendLeaveElement(super ._cookie, $__uri,
0741: $__local, $__qname);
0742: } else {
0743: $_ngcc_current_state = 36;
0744: $runtime.sendLeaveElement(super ._cookie, $__uri,
0745: $__local, $__qname);
0746: }
0747: }
0748: break;
0749: case 49: {
0750: if (($ai = $runtime.getAttributeIndex("",
0751: "attributeFormDefault")) >= 0) {
0752: $runtime.consumeAttribute($ai);
0753: $runtime.sendLeaveElement(super ._cookie, $__uri,
0754: $__local, $__qname);
0755: } else {
0756: $_ngcc_current_state = 45;
0757: $runtime.sendLeaveElement(super ._cookie, $__uri,
0758: $__local, $__qname);
0759: }
0760: }
0761: break;
0762: case 53: {
0763: if (($ai = $runtime
0764: .getAttributeIndex("", "targetNamespace")) >= 0) {
0765: $runtime.consumeAttribute($ai);
0766: $runtime.sendLeaveElement(super ._cookie, $__uri,
0767: $__local, $__qname);
0768: } else {
0769: $_ngcc_current_state = 49;
0770: $runtime.sendLeaveElement(super ._cookie, $__uri,
0771: $__local, $__qname);
0772: }
0773: }
0774: break;
0775: case 26: {
0776: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
0777: .equals("element"))) {
0778: $runtime.onLeaveElementConsumed($__uri, $__local,
0779: $__qname);
0780: $_ngcc_current_state = 1;
0781: } else {
0782: unexpectedLeaveElement($__qname);
0783: }
0784: }
0785: break;
0786: case 12: {
0787: if (($ai = $runtime.getAttributeIndex("", "fixed")) >= 0) {
0788: $runtime.consumeAttribute($ai);
0789: $runtime.sendLeaveElement(super ._cookie, $__uri,
0790: $__local, $__qname);
0791: } else {
0792: $_ngcc_current_state = 11;
0793: $runtime.sendLeaveElement(super ._cookie, $__uri,
0794: $__local, $__qname);
0795: }
0796: }
0797: break;
0798: case 2: {
0799: $_ngcc_current_state = 1;
0800: $runtime.sendLeaveElement(super ._cookie, $__uri, $__local,
0801: $__qname);
0802: }
0803: break;
0804: case 0: {
0805: revertToParentFromLeaveElement(this , super ._cookie, $__uri,
0806: $__local, $__qname);
0807: }
0808: break;
0809: case 1: {
0810: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
0811: .equals("schema"))) {
0812: $runtime.onLeaveElementConsumed($__uri, $__local,
0813: $__qname);
0814: $_ngcc_current_state = 0;
0815: } else {
0816: unexpectedLeaveElement($__qname);
0817: }
0818: }
0819: break;
0820: default: {
0821: unexpectedLeaveElement($__qname);
0822: }
0823: break;
0824: }
0825: }
0826:
0827: public void enterAttribute(String $__uri, String $__local,
0828: String $__qname) throws SAXException {
0829: int $ai;
0830: $uri = $__uri;
0831: $localName = $__local;
0832: $qname = $__qname;
0833: switch ($_ngcc_current_state) {
0834: case 37: {
0835: if (($__uri.equals("") && $__local.equals("finalDefault"))) {
0836: $_ngcc_current_state = 39;
0837: } else {
0838: $_ngcc_current_state = 36;
0839: $runtime.sendEnterAttribute(super ._cookie, $__uri,
0840: $__local, $__qname);
0841: }
0842: }
0843: break;
0844: case 16: {
0845: if (($__uri.equals("") && $__local.equals("default"))) {
0846: $_ngcc_current_state = 18;
0847: } else {
0848: $_ngcc_current_state = 12;
0849: $runtime.sendEnterAttribute(super ._cookie, $__uri,
0850: $__local, $__qname);
0851: }
0852: }
0853: break;
0854: case 11: {
0855: if ((($__uri.equals("") && $__local.equals("name")) || ($__uri
0856: .equals("") && $__local.equals("form")))) {
0857: NGCCHandler h = new attributeDeclBody(this ,
0858: super ._source, $runtime, 24, locator, false,
0859: defaultValue, fixedValue);
0860: spawnChildFromEnterAttribute(h, $__uri, $__local,
0861: $__qname);
0862: } else {
0863: unexpectedEnterAttribute($__qname);
0864: }
0865: }
0866: break;
0867: case 53: {
0868: if (($__uri.equals("") && $__local
0869: .equals("targetNamespace"))) {
0870: $_ngcc_current_state = 55;
0871: } else {
0872: $_ngcc_current_state = 49;
0873: $runtime.sendEnterAttribute(super ._cookie, $__uri,
0874: $__local, $__qname);
0875: }
0876: }
0877: break;
0878: case 49: {
0879: if (($__uri.equals("") && $__local
0880: .equals("attributeFormDefault"))) {
0881: $_ngcc_current_state = 51;
0882: } else {
0883: $_ngcc_current_state = 45;
0884: $runtime.sendEnterAttribute(super ._cookie, $__uri,
0885: $__local, $__qname);
0886: }
0887: }
0888: break;
0889: case 12: {
0890: if (($__uri.equals("") && $__local.equals("fixed"))) {
0891: $_ngcc_current_state = 14;
0892: } else {
0893: $_ngcc_current_state = 11;
0894: $runtime.sendEnterAttribute(super ._cookie, $__uri,
0895: $__local, $__qname);
0896: }
0897: }
0898: break;
0899: case 2: {
0900: $_ngcc_current_state = 1;
0901: $runtime.sendEnterAttribute(super ._cookie, $__uri,
0902: $__local, $__qname);
0903: }
0904: break;
0905: case 0: {
0906: revertToParentFromEnterAttribute(this , super ._cookie,
0907: $__uri, $__local, $__qname);
0908: }
0909: break;
0910: case 27: {
0911: if ((($__uri.equals("") && $__local.equals("default")) || (($__uri
0912: .equals("") && $__local.equals("block")) || (($__uri
0913: .equals("") && $__local.equals("fixed")) || (($__uri
0914: .equals("") && $__local.equals("form")) || (($__uri
0915: .equals("") && $__local.equals("final")) || (($__uri
0916: .equals("") && $__local.equals("abstract")) || ($__uri
0917: .equals("") && $__local.equals("name"))))))))) {
0918: NGCCHandler h = new elementDeclBody(this ,
0919: super ._source, $runtime, 42, locator, true);
0920: spawnChildFromEnterAttribute(h, $__uri, $__local,
0921: $__qname);
0922: } else {
0923: unexpectedEnterAttribute($__qname);
0924: }
0925: }
0926: break;
0927: case 45: {
0928: if (($__uri.equals("") && $__local
0929: .equals("elementFormDefault"))) {
0930: $_ngcc_current_state = 47;
0931: } else {
0932: $_ngcc_current_state = 41;
0933: $runtime.sendEnterAttribute(super ._cookie, $__uri,
0934: $__local, $__qname);
0935: }
0936: }
0937: break;
0938: case 41: {
0939: if (($__uri.equals("") && $__local.equals("blockDefault"))) {
0940: $_ngcc_current_state = 43;
0941: } else {
0942: $_ngcc_current_state = 37;
0943: $runtime.sendEnterAttribute(super ._cookie, $__uri,
0944: $__local, $__qname);
0945: }
0946: }
0947: break;
0948: default: {
0949: unexpectedEnterAttribute($__qname);
0950: }
0951: break;
0952: }
0953: }
0954:
0955: public void leaveAttribute(String $__uri, String $__local,
0956: String $__qname) throws SAXException {
0957: int $ai;
0958: $uri = $__uri;
0959: $localName = $__local;
0960: $qname = $__qname;
0961: switch ($_ngcc_current_state) {
0962: case 16: {
0963: $_ngcc_current_state = 12;
0964: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
0965: $__local, $__qname);
0966: }
0967: break;
0968: case 17: {
0969: if (($__uri.equals("") && $__local.equals("default"))) {
0970: $_ngcc_current_state = 12;
0971: } else {
0972: unexpectedLeaveAttribute($__qname);
0973: }
0974: }
0975: break;
0976: case 45: {
0977: $_ngcc_current_state = 41;
0978: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
0979: $__local, $__qname);
0980: }
0981: break;
0982: case 13: {
0983: if (($__uri.equals("") && $__local.equals("fixed"))) {
0984: $_ngcc_current_state = 11;
0985: } else {
0986: unexpectedLeaveAttribute($__qname);
0987: }
0988: }
0989: break;
0990: case 41: {
0991: $_ngcc_current_state = 37;
0992: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
0993: $__local, $__qname);
0994: }
0995: break;
0996: case 46: {
0997: if (($__uri.equals("") && $__local
0998: .equals("elementFormDefault"))) {
0999: $_ngcc_current_state = 41;
1000: } else {
1001: unexpectedLeaveAttribute($__qname);
1002: }
1003: }
1004: break;
1005: case 37: {
1006: $_ngcc_current_state = 36;
1007: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
1008: $__local, $__qname);
1009: }
1010: break;
1011: case 54: {
1012: if (($__uri.equals("") && $__local
1013: .equals("targetNamespace"))) {
1014: $_ngcc_current_state = 49;
1015: } else {
1016: unexpectedLeaveAttribute($__qname);
1017: }
1018: }
1019: break;
1020: case 49: {
1021: $_ngcc_current_state = 45;
1022: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
1023: $__local, $__qname);
1024: }
1025: break;
1026: case 53: {
1027: $_ngcc_current_state = 49;
1028: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
1029: $__local, $__qname);
1030: }
1031: break;
1032: case 42: {
1033: if (($__uri.equals("") && $__local.equals("blockDefault"))) {
1034: $_ngcc_current_state = 37;
1035: } else {
1036: unexpectedLeaveAttribute($__qname);
1037: }
1038: }
1039: break;
1040: case 38: {
1041: if (($__uri.equals("") && $__local.equals("finalDefault"))) {
1042: $_ngcc_current_state = 36;
1043: } else {
1044: unexpectedLeaveAttribute($__qname);
1045: }
1046: }
1047: break;
1048: case 12: {
1049: $_ngcc_current_state = 11;
1050: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
1051: $__local, $__qname);
1052: }
1053: break;
1054: case 2: {
1055: $_ngcc_current_state = 1;
1056: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
1057: $__local, $__qname);
1058: }
1059: break;
1060: case 50: {
1061: if (($__uri.equals("") && $__local
1062: .equals("attributeFormDefault"))) {
1063: $_ngcc_current_state = 45;
1064: } else {
1065: unexpectedLeaveAttribute($__qname);
1066: }
1067: }
1068: break;
1069: case 0: {
1070: revertToParentFromLeaveAttribute(this , super ._cookie,
1071: $__uri, $__local, $__qname);
1072: }
1073: break;
1074: default: {
1075: unexpectedLeaveAttribute($__qname);
1076: }
1077: break;
1078: }
1079: }
1080:
1081: public void text(String $value) throws SAXException {
1082: int $ai;
1083: switch ($_ngcc_current_state) {
1084: case 16: {
1085: if (($ai = $runtime.getAttributeIndex("", "default")) >= 0) {
1086: $runtime.consumeAttribute($ai);
1087: $runtime.sendText(super ._cookie, $value);
1088: } else {
1089: $_ngcc_current_state = 12;
1090: $runtime.sendText(super ._cookie, $value);
1091: }
1092: }
1093: break;
1094: case 47: {
1095: if ($value.equals("unqualified")) {
1096: NGCCHandler h = new qualification(this , super ._source,
1097: $runtime, 142);
1098: spawnChildFromText(h, $value);
1099: } else {
1100: if ($value.equals("qualified")) {
1101: NGCCHandler h = new qualification(this ,
1102: super ._source, $runtime, 142);
1103: spawnChildFromText(h, $value);
1104: }
1105: }
1106: }
1107: break;
1108: case 11: {
1109: if (($ai = $runtime.getAttributeIndex("", "form")) >= 0) {
1110: NGCCHandler h = new attributeDeclBody(this ,
1111: super ._source, $runtime, 24, locator, false,
1112: defaultValue, fixedValue);
1113: spawnChildFromText(h, $value);
1114: } else {
1115: if (($ai = $runtime.getAttributeIndex("", "name")) >= 0) {
1116: NGCCHandler h = new attributeDeclBody(this ,
1117: super ._source, $runtime, 24, locator,
1118: false, defaultValue, fixedValue);
1119: spawnChildFromText(h, $value);
1120: }
1121: }
1122: }
1123: break;
1124: case 14: {
1125: fixedValue = $value;
1126: $_ngcc_current_state = 13;
1127: }
1128: break;
1129: case 27: {
1130: if (($ai = $runtime.getAttributeIndex("", "name")) >= 0) {
1131: NGCCHandler h = new elementDeclBody(this ,
1132: super ._source, $runtime, 42, locator, true);
1133: spawnChildFromText(h, $value);
1134: } else {
1135: if (($ai = $runtime.getAttributeIndex("", "abstract")) >= 0) {
1136: NGCCHandler h = new elementDeclBody(this ,
1137: super ._source, $runtime, 42, locator, true);
1138: spawnChildFromText(h, $value);
1139: } else {
1140: if (($ai = $runtime.getAttributeIndex("", "final")) >= 0) {
1141: NGCCHandler h = new elementDeclBody(this ,
1142: super ._source, $runtime, 42, locator,
1143: true);
1144: spawnChildFromText(h, $value);
1145: } else {
1146: if (($ai = $runtime.getAttributeIndex("",
1147: "form")) >= 0) {
1148: NGCCHandler h = new elementDeclBody(this ,
1149: super ._source, $runtime, 42,
1150: locator, true);
1151: spawnChildFromText(h, $value);
1152: } else {
1153: if (($ai = $runtime.getAttributeIndex("",
1154: "fixed")) >= 0) {
1155: NGCCHandler h = new elementDeclBody(
1156: this , super ._source, $runtime,
1157: 42, locator, true);
1158: spawnChildFromText(h, $value);
1159: } else {
1160: if (($ai = $runtime.getAttributeIndex(
1161: "", "block")) >= 0) {
1162: NGCCHandler h = new elementDeclBody(
1163: this , super ._source,
1164: $runtime, 42, locator, true);
1165: spawnChildFromText(h, $value);
1166: } else {
1167: if (($ai = $runtime
1168: .getAttributeIndex("",
1169: "default")) >= 0) {
1170: NGCCHandler h = new elementDeclBody(
1171: this , super ._source,
1172: $runtime, 42, locator,
1173: true);
1174: spawnChildFromText(h, $value);
1175: }
1176: }
1177: }
1178: }
1179: }
1180: }
1181: }
1182: }
1183: break;
1184: case 45: {
1185: if (($ai = $runtime.getAttributeIndex("",
1186: "elementFormDefault")) >= 0) {
1187: $runtime.consumeAttribute($ai);
1188: $runtime.sendText(super ._cookie, $value);
1189: } else {
1190: $_ngcc_current_state = 41;
1191: $runtime.sendText(super ._cookie, $value);
1192: }
1193: }
1194: break;
1195: case 41: {
1196: if (($ai = $runtime.getAttributeIndex("", "blockDefault")) >= 0) {
1197: $runtime.consumeAttribute($ai);
1198: $runtime.sendText(super ._cookie, $value);
1199: } else {
1200: $_ngcc_current_state = 37;
1201: $runtime.sendText(super ._cookie, $value);
1202: }
1203: }
1204: break;
1205: case 37: {
1206: if (($ai = $runtime.getAttributeIndex("", "finalDefault")) >= 0) {
1207: $runtime.consumeAttribute($ai);
1208: $runtime.sendText(super ._cookie, $value);
1209: } else {
1210: $_ngcc_current_state = 36;
1211: $runtime.sendText(super ._cookie, $value);
1212: }
1213: }
1214: break;
1215: case 43: {
1216: NGCCHandler h = new ersSet(this , super ._source, $runtime,
1217: 137);
1218: spawnChildFromText(h, $value);
1219: }
1220: break;
1221: case 49: {
1222: if (($ai = $runtime.getAttributeIndex("",
1223: "attributeFormDefault")) >= 0) {
1224: $runtime.consumeAttribute($ai);
1225: $runtime.sendText(super ._cookie, $value);
1226: } else {
1227: $_ngcc_current_state = 45;
1228: $runtime.sendText(super ._cookie, $value);
1229: }
1230: }
1231: break;
1232: case 53: {
1233: if (($ai = $runtime
1234: .getAttributeIndex("", "targetNamespace")) >= 0) {
1235: $runtime.consumeAttribute($ai);
1236: $runtime.sendText(super ._cookie, $value);
1237: } else {
1238: $_ngcc_current_state = 49;
1239: $runtime.sendText(super ._cookie, $value);
1240: }
1241: }
1242: break;
1243: case 12: {
1244: if (($ai = $runtime.getAttributeIndex("", "fixed")) >= 0) {
1245: $runtime.consumeAttribute($ai);
1246: $runtime.sendText(super ._cookie, $value);
1247: } else {
1248: $_ngcc_current_state = 11;
1249: $runtime.sendText(super ._cookie, $value);
1250: }
1251: }
1252: break;
1253: case 51: {
1254: if ($value.equals("unqualified")) {
1255: NGCCHandler h = new qualification(this , super ._source,
1256: $runtime, 147);
1257: spawnChildFromText(h, $value);
1258: } else {
1259: if ($value.equals("qualified")) {
1260: NGCCHandler h = new qualification(this ,
1261: super ._source, $runtime, 147);
1262: spawnChildFromText(h, $value);
1263: }
1264: }
1265: }
1266: break;
1267: case 18: {
1268: defaultValue = $value;
1269: $_ngcc_current_state = 17;
1270: }
1271: break;
1272: case 2: {
1273: $_ngcc_current_state = 1;
1274: $runtime.sendText(super ._cookie, $value);
1275: }
1276: break;
1277: case 0: {
1278: revertToParentFromText(this , super ._cookie, $value);
1279: }
1280: break;
1281: case 39: {
1282: NGCCHandler h = new erSet(this , super ._source, $runtime,
1283: 132);
1284: spawnChildFromText(h, $value);
1285: }
1286: break;
1287: case 55: {
1288: $_ngcc_current_state = 54;
1289: }
1290: break;
1291: }
1292: }
1293:
1294: public void onChildCompleted(Object $__result__, int $__cookie__,
1295: boolean $__needAttCheck__) throws SAXException {
1296: switch ($__cookie__) {
1297: case 24: {
1298: ad = ((AttributeDeclImpl) $__result__);
1299: action3();
1300: $_ngcc_current_state = 10;
1301: }
1302: break;
1303: case 130: {
1304: fa = ((ForeignAttributesImpl) $__result__);
1305: action10();
1306: $_ngcc_current_state = 2;
1307: }
1308: break;
1309: case 137: {
1310: blockDefault = ((Integer) $__result__);
1311: action12();
1312: $_ngcc_current_state = 42;
1313: }
1314: break;
1315: case 132: {
1316: finalDefault = ((Integer) $__result__);
1317: action11();
1318: $_ngcc_current_state = 38;
1319: }
1320: break;
1321: case 107: {
1322: anno = ((AnnotationImpl) $__result__);
1323: action9();
1324: $_ngcc_current_state = 1;
1325: }
1326: break;
1327: case 108: {
1328: $_ngcc_current_state = 1;
1329: }
1330: break;
1331: case 109: {
1332: $_ngcc_current_state = 1;
1333: }
1334: break;
1335: case 110: {
1336: $_ngcc_current_state = 1;
1337: }
1338: break;
1339: case 112: {
1340: st = ((SimpleTypeImpl) $__result__);
1341: action6();
1342: $_ngcc_current_state = 1;
1343: }
1344: break;
1345: case 113: {
1346: ct = ((ComplexTypeImpl) $__result__);
1347: action5();
1348: $_ngcc_current_state = 1;
1349: }
1350: break;
1351: case 115: {
1352: group = ((ModelGroupDeclImpl) $__result__);
1353: action2();
1354: $_ngcc_current_state = 1;
1355: }
1356: break;
1357: case 116: {
1358: notation = ((XSNotation) $__result__);
1359: action1();
1360: $_ngcc_current_state = 1;
1361: }
1362: break;
1363: case 117: {
1364: ag = ((AttGroupDeclImpl) $__result__);
1365: action0();
1366: $_ngcc_current_state = 1;
1367: }
1368: break;
1369: case 142: {
1370: efd = ((Boolean) $__result__).booleanValue();
1371: action13();
1372: $_ngcc_current_state = 46;
1373: }
1374: break;
1375: case 147: {
1376: afd = ((Boolean) $__result__).booleanValue();
1377: action14();
1378: $_ngcc_current_state = 50;
1379: }
1380: break;
1381: case 42: {
1382: e = ((ElementDecl) $__result__);
1383: action7();
1384: $_ngcc_current_state = 26;
1385: }
1386: break;
1387: case 118: {
1388: anno = ((AnnotationImpl) $__result__);
1389: action9();
1390: $_ngcc_current_state = 1;
1391: }
1392: break;
1393: case 119: {
1394: $_ngcc_current_state = 1;
1395: }
1396: break;
1397: case 120: {
1398: $_ngcc_current_state = 1;
1399: }
1400: break;
1401: case 121: {
1402: $_ngcc_current_state = 1;
1403: }
1404: break;
1405: case 123: {
1406: st = ((SimpleTypeImpl) $__result__);
1407: action6();
1408: $_ngcc_current_state = 1;
1409: }
1410: break;
1411: case 124: {
1412: ct = ((ComplexTypeImpl) $__result__);
1413: action5();
1414: $_ngcc_current_state = 1;
1415: }
1416: break;
1417: case 126: {
1418: group = ((ModelGroupDeclImpl) $__result__);
1419: action2();
1420: $_ngcc_current_state = 1;
1421: }
1422: break;
1423: case 127: {
1424: notation = ((XSNotation) $__result__);
1425: action1();
1426: $_ngcc_current_state = 1;
1427: }
1428: break;
1429: case 128: {
1430: ag = ((AttGroupDeclImpl) $__result__);
1431: action0();
1432: $_ngcc_current_state = 1;
1433: }
1434: break;
1435: }
1436: }
1437:
1438: public boolean accepted() {
1439: return (($_ngcc_current_state == 0));
1440: }
1441:
1442: private String tns = null; // it defaults to the no namespace.
1443: private Locator locator;
1444:
1445: }
|