Source Code Cross Referenced for Schema.java in  » 6.0-JDK-Modules-com.sun » xml » com » sun » xml » internal » xsom » impl » parser » state » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » xml » com.sun.xml.internal.xsom.impl.parser.state 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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