001: /* this file is generated by RelaxNGCC */
002: package com.sun.xml.xsom.impl.parser.state;
003:
004: import org.xml.sax.SAXException;
005: import org.xml.sax.XMLReader;
006: import org.xml.sax.Attributes;
007: import com.sun.xml.xsom.impl.parser.NGCCRuntimeEx;
008:
009: import com.sun.xml.xsom.*;
010: import com.sun.xml.xsom.parser.*;
011: import com.sun.xml.xsom.impl.*;
012: import com.sun.xml.xsom.impl.parser.*;
013: import org.xml.sax.Locator;
014: import org.xml.sax.ContentHandler;
015: import org.xml.sax.helpers.*;
016: import java.util.*;
017:
018: class attributeUses extends NGCCHandler {
019: private String use;
020: private AttributesHolder owner;
021: private ForeignAttributesImpl fa;
022: private WildcardImpl wildcard;
023: private AnnotationImpl annotation;
024: private UName attDeclName;
025: private AttributeDeclImpl anonymousDecl;
026: private String defaultValue;
027: private String fixedValue;
028: private UName groupName;
029: protected final NGCCRuntimeEx $runtime;
030: private int $_ngcc_current_state;
031: protected String $uri;
032: protected String $localName;
033: protected String $qname;
034:
035: public final NGCCRuntime getRuntime() {
036: return ($runtime);
037: }
038:
039: public attributeUses(NGCCHandler parent, NGCCEventSource source,
040: NGCCRuntimeEx runtime, int cookie, AttributesHolder _owner) {
041: super (source, parent, cookie);
042: $runtime = runtime;
043: this .owner = _owner;
044: $_ngcc_current_state = 5;
045: }
046:
047: public attributeUses(NGCCRuntimeEx runtime, AttributesHolder _owner) {
048: this (null, runtime, runtime, -1, _owner);
049: }
050:
051: private void action0() throws SAXException {
052:
053: owner.setWildcard(wildcard);
054:
055: }
056:
057: private void action1() throws SAXException {
058: wloc = $runtime.copyLocator();
059: }
060:
061: private void action2() throws SAXException {
062:
063: owner.addAttGroup(new DelayedRef.AttGroup($runtime, locator,
064: $runtime.currentSchema, groupName));
065:
066: }
067:
068: private void action3() throws SAXException {
069: locator = $runtime.copyLocator();
070: }
071:
072: private void action4() throws SAXException {
073:
074: if ("prohibited".equals(use))
075: owner.addProhibitedAttribute(attDeclName);
076: else
077: owner.addAttributeUse(attDeclName, new AttributeUseImpl(
078: $runtime.document, annotation, locator, fa, decl,
079: $runtime.createXmlString(defaultValue), $runtime
080: .createXmlString(fixedValue), "required"
081: .equals(use)));
082:
083: }
084:
085: private void action5() throws SAXException {
086:
087: decl = new DelayedRef.Attribute($runtime, locator,
088: $runtime.currentSchema, attDeclName);
089:
090: }
091:
092: private void action6() throws SAXException {
093:
094: decl = anonymousDecl;
095: attDeclName = new UName(anonymousDecl.getTargetNamespace(),
096: anonymousDecl.getName());
097: defaultValue = null;
098: fixedValue = null;
099:
100: }
101:
102: private void action7() throws SAXException {
103:
104: locator = $runtime.copyLocator();
105: use = null;
106: defaultValue = null;
107: fixedValue = null;
108: decl = null;
109: annotation = null;
110:
111: }
112:
113: public void enterElement(String $__uri, String $__local,
114: String $__qname, Attributes $attrs) throws SAXException {
115: int $ai;
116: $uri = $__uri;
117: $localName = $__local;
118: $qname = $__qname;
119: switch ($_ngcc_current_state) {
120: case 1: {
121: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
122: .equals("attribute"))) {
123: $runtime.onEnterElementConsumed($__uri, $__local,
124: $__qname, $attrs);
125: action7();
126: $_ngcc_current_state = 33;
127: } else {
128: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
129: .equals("attributeGroup"))) {
130: $runtime.onEnterElementConsumed($__uri, $__local,
131: $__qname, $attrs);
132: action3();
133: $_ngcc_current_state = 13;
134: } else {
135: if (($__uri
136: .equals("http://www.w3.org/2001/XMLSchema") && $__local
137: .equals("anyAttribute"))) {
138: $runtime.onEnterElementConsumed($__uri,
139: $__local, $__qname, $attrs);
140: action1();
141: $_ngcc_current_state = 3;
142: } else {
143: $_ngcc_current_state = 0;
144: $runtime.sendEnterElement(super ._cookie,
145: $__uri, $__local, $__qname, $attrs);
146: }
147: }
148: }
149: }
150: break;
151: case 13: {
152: if (($ai = $runtime.getAttributeIndex("", "ref")) >= 0) {
153: $runtime.consumeAttribute($ai);
154: $runtime.sendEnterElement(super ._cookie, $__uri,
155: $__local, $__qname, $attrs);
156: } else {
157: unexpectedEnterElement($__qname);
158: }
159: }
160: break;
161: case 25: {
162: if (($ai = $runtime.getAttributeIndex("", "fixed")) >= 0) {
163: $runtime.consumeAttribute($ai);
164: $runtime.sendEnterElement(super ._cookie, $__uri,
165: $__local, $__qname, $attrs);
166: } else {
167: $_ngcc_current_state = 17;
168: $runtime.sendEnterElement(super ._cookie, $__uri,
169: $__local, $__qname, $attrs);
170: }
171: }
172: break;
173: case 8: {
174: action2();
175: $_ngcc_current_state = 7;
176: $runtime.sendEnterElement(super ._cookie, $__uri, $__local,
177: $__qname, $attrs);
178: }
179: break;
180: case 33: {
181: if (($ai = $runtime.getAttributeIndex("", "use")) >= 0) {
182: $runtime.consumeAttribute($ai);
183: $runtime.sendEnterElement(super ._cookie, $__uri,
184: $__local, $__qname, $attrs);
185: } else {
186: $_ngcc_current_state = 29;
187: $runtime.sendEnterElement(super ._cookie, $__uri,
188: $__local, $__qname, $attrs);
189: }
190: }
191: break;
192: case 9: {
193: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
194: .equals("annotation"))) {
195: NGCCHandler h = new annotation(this , super ._source,
196: $runtime, 409, null,
197: AnnotationContext.ATTRIBUTE_USE);
198: spawnChildFromEnterElement(h, $__uri, $__local,
199: $__qname, $attrs);
200: } else {
201: $_ngcc_current_state = 8;
202: $runtime.sendEnterElement(super ._cookie, $__uri,
203: $__local, $__qname, $attrs);
204: }
205: }
206: break;
207: case 3: {
208: if ((($ai = $runtime.getAttributeIndex("",
209: "processContents")) >= 0 || (($__uri
210: .equals("http://www.w3.org/2001/XMLSchema") && $__local
211: .equals("annotation")) || ($ai = $runtime
212: .getAttributeIndex("", "namespace")) >= 0))) {
213: NGCCHandler h = new wildcardBody(this , super ._source,
214: $runtime, 402, wloc);
215: spawnChildFromEnterElement(h, $__uri, $__local,
216: $__qname, $attrs);
217: } else {
218: unexpectedEnterElement($__qname);
219: }
220: }
221: break;
222: case 29: {
223: if (($ai = $runtime.getAttributeIndex("", "default")) >= 0) {
224: $runtime.consumeAttribute($ai);
225: $runtime.sendEnterElement(super ._cookie, $__uri,
226: $__local, $__qname, $attrs);
227: } else {
228: $_ngcc_current_state = 25;
229: $runtime.sendEnterElement(super ._cookie, $__uri,
230: $__local, $__qname, $attrs);
231: }
232: }
233: break;
234: case 0: {
235: revertToParentFromEnterElement(this , super ._cookie, $__uri,
236: $__local, $__qname, $attrs);
237: }
238: break;
239: case 5: {
240: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
241: .equals("attribute"))) {
242: $runtime.onEnterElementConsumed($__uri, $__local,
243: $__qname, $attrs);
244: action7();
245: $_ngcc_current_state = 33;
246: } else {
247: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
248: .equals("attributeGroup"))) {
249: $runtime.onEnterElementConsumed($__uri, $__local,
250: $__qname, $attrs);
251: action3();
252: $_ngcc_current_state = 13;
253: } else {
254: $_ngcc_current_state = 1;
255: $runtime.sendEnterElement(super ._cookie, $__uri,
256: $__local, $__qname, $attrs);
257: }
258: }
259: }
260: break;
261: case 19: {
262: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
263: .equals("annotation"))) {
264: NGCCHandler h = new annotation(this , super ._source,
265: $runtime, 420, null,
266: AnnotationContext.ATTRIBUTE_USE);
267: spawnChildFromEnterElement(h, $__uri, $__local,
268: $__qname, $attrs);
269: } else {
270: $_ngcc_current_state = 18;
271: $runtime.sendEnterElement(super ._cookie, $__uri,
272: $__local, $__qname, $attrs);
273: }
274: }
275: break;
276: case 17: {
277: if ((($ai = $runtime.getAttributeIndex("", "name")) >= 0 || ($ai = $runtime
278: .getAttributeIndex("", "form")) >= 0)) {
279: NGCCHandler h = new attributeDeclBody(this ,
280: super ._source, $runtime, 427, locator, true,
281: defaultValue, fixedValue);
282: spawnChildFromEnterElement(h, $__uri, $__local,
283: $__qname, $attrs);
284: } else {
285: if (($ai = $runtime.getAttributeIndex("", "ref")) >= 0) {
286: $runtime.consumeAttribute($ai);
287: $runtime.sendEnterElement(super ._cookie, $__uri,
288: $__local, $__qname, $attrs);
289: } else {
290: unexpectedEnterElement($__qname);
291: }
292: }
293: }
294: break;
295: case 16: {
296: action4();
297: $_ngcc_current_state = 15;
298: $runtime.sendEnterElement(super ._cookie, $__uri, $__local,
299: $__qname, $attrs);
300: }
301: break;
302: default: {
303: unexpectedEnterElement($__qname);
304: }
305: break;
306: }
307: }
308:
309: public void leaveElement(String $__uri, String $__local,
310: String $__qname) throws SAXException {
311: int $ai;
312: $uri = $__uri;
313: $localName = $__local;
314: $qname = $__qname;
315: switch ($_ngcc_current_state) {
316: case 2: {
317: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
318: .equals("anyAttribute"))) {
319: $runtime.onLeaveElementConsumed($__uri, $__local,
320: $__qname);
321: $_ngcc_current_state = 0;
322: } else {
323: unexpectedLeaveElement($__qname);
324: }
325: }
326: break;
327: case 1: {
328: $_ngcc_current_state = 0;
329: $runtime.sendLeaveElement(super ._cookie, $__uri, $__local,
330: $__qname);
331: }
332: break;
333: case 13: {
334: if (($ai = $runtime.getAttributeIndex("", "ref")) >= 0) {
335: $runtime.consumeAttribute($ai);
336: $runtime.sendLeaveElement(super ._cookie, $__uri,
337: $__local, $__qname);
338: } else {
339: unexpectedLeaveElement($__qname);
340: }
341: }
342: break;
343: case 25: {
344: if (($ai = $runtime.getAttributeIndex("", "fixed")) >= 0) {
345: $runtime.consumeAttribute($ai);
346: $runtime.sendLeaveElement(super ._cookie, $__uri,
347: $__local, $__qname);
348: } else {
349: $_ngcc_current_state = 17;
350: $runtime.sendLeaveElement(super ._cookie, $__uri,
351: $__local, $__qname);
352: }
353: }
354: break;
355: case 8: {
356: action2();
357: $_ngcc_current_state = 7;
358: $runtime.sendLeaveElement(super ._cookie, $__uri, $__local,
359: $__qname);
360: }
361: break;
362: case 33: {
363: if (($ai = $runtime.getAttributeIndex("", "use")) >= 0) {
364: $runtime.consumeAttribute($ai);
365: $runtime.sendLeaveElement(super ._cookie, $__uri,
366: $__local, $__qname);
367: } else {
368: $_ngcc_current_state = 29;
369: $runtime.sendLeaveElement(super ._cookie, $__uri,
370: $__local, $__qname);
371: }
372: }
373: break;
374: case 9: {
375: $_ngcc_current_state = 8;
376: $runtime.sendLeaveElement(super ._cookie, $__uri, $__local,
377: $__qname);
378: }
379: break;
380: case 29: {
381: if (($ai = $runtime.getAttributeIndex("", "default")) >= 0) {
382: $runtime.consumeAttribute($ai);
383: $runtime.sendLeaveElement(super ._cookie, $__uri,
384: $__local, $__qname);
385: } else {
386: $_ngcc_current_state = 25;
387: $runtime.sendLeaveElement(super ._cookie, $__uri,
388: $__local, $__qname);
389: }
390: }
391: break;
392: case 3: {
393: if (((($ai = $runtime.getAttributeIndex("",
394: "processContents")) >= 0 && ($__uri
395: .equals("http://www.w3.org/2001/XMLSchema") && $__local
396: .equals("anyAttribute"))) || ((($ai = $runtime
397: .getAttributeIndex("", "namespace")) >= 0 && ($__uri
398: .equals("http://www.w3.org/2001/XMLSchema") && $__local
399: .equals("anyAttribute"))) || ($__uri
400: .equals("http://www.w3.org/2001/XMLSchema") && $__local
401: .equals("anyAttribute"))))) {
402: NGCCHandler h = new wildcardBody(this , super ._source,
403: $runtime, 402, wloc);
404: spawnChildFromLeaveElement(h, $__uri, $__local,
405: $__qname);
406: } else {
407: unexpectedLeaveElement($__qname);
408: }
409: }
410: break;
411: case 7: {
412: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
413: .equals("attributeGroup"))) {
414: $runtime.onLeaveElementConsumed($__uri, $__local,
415: $__qname);
416: $_ngcc_current_state = 1;
417: } else {
418: unexpectedLeaveElement($__qname);
419: }
420: }
421: break;
422: case 0: {
423: revertToParentFromLeaveElement(this , super ._cookie, $__uri,
424: $__local, $__qname);
425: }
426: break;
427: case 5: {
428: $_ngcc_current_state = 1;
429: $runtime.sendLeaveElement(super ._cookie, $__uri, $__local,
430: $__qname);
431: }
432: break;
433: case 18: {
434: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
435: .equals("attribute"))) {
436: NGCCHandler h = new foreignAttributes(this ,
437: super ._source, $runtime, 418, null);
438: spawnChildFromLeaveElement(h, $__uri, $__local,
439: $__qname);
440: } else {
441: unexpectedLeaveElement($__qname);
442: }
443: }
444: break;
445: case 15: {
446: if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
447: .equals("attribute"))) {
448: $runtime.onLeaveElementConsumed($__uri, $__local,
449: $__qname);
450: $_ngcc_current_state = 1;
451: } else {
452: unexpectedLeaveElement($__qname);
453: }
454: }
455: break;
456: case 17: {
457: if (((($ai = $runtime.getAttributeIndex("", "name")) >= 0 && ($__uri
458: .equals("http://www.w3.org/2001/XMLSchema") && $__local
459: .equals("attribute"))) || (($ai = $runtime
460: .getAttributeIndex("", "form")) >= 0 && ($__uri
461: .equals("http://www.w3.org/2001/XMLSchema") && $__local
462: .equals("attribute"))))) {
463: NGCCHandler h = new attributeDeclBody(this ,
464: super ._source, $runtime, 427, locator, true,
465: defaultValue, fixedValue);
466: spawnChildFromLeaveElement(h, $__uri, $__local,
467: $__qname);
468: } else {
469: if (($ai = $runtime.getAttributeIndex("", "ref")) >= 0) {
470: $runtime.consumeAttribute($ai);
471: $runtime.sendLeaveElement(super ._cookie, $__uri,
472: $__local, $__qname);
473: } else {
474: unexpectedLeaveElement($__qname);
475: }
476: }
477: }
478: break;
479: case 19: {
480: $_ngcc_current_state = 18;
481: $runtime.sendLeaveElement(super ._cookie, $__uri, $__local,
482: $__qname);
483: }
484: break;
485: case 16: {
486: action4();
487: $_ngcc_current_state = 15;
488: $runtime.sendLeaveElement(super ._cookie, $__uri, $__local,
489: $__qname);
490: }
491: break;
492: default: {
493: unexpectedLeaveElement($__qname);
494: }
495: break;
496: }
497: }
498:
499: public void enterAttribute(String $__uri, String $__local,
500: String $__qname) throws SAXException {
501: int $ai;
502: $uri = $__uri;
503: $localName = $__local;
504: $qname = $__qname;
505: switch ($_ngcc_current_state) {
506: case 1: {
507: $_ngcc_current_state = 0;
508: $runtime.sendEnterAttribute(super ._cookie, $__uri,
509: $__local, $__qname);
510: }
511: break;
512: case 13: {
513: if (($__uri.equals("") && $__local.equals("ref"))) {
514: $_ngcc_current_state = 12;
515: } else {
516: unexpectedEnterAttribute($__qname);
517: }
518: }
519: break;
520: case 25: {
521: if (($__uri.equals("") && $__local.equals("fixed"))) {
522: $_ngcc_current_state = 27;
523: } else {
524: $_ngcc_current_state = 17;
525: $runtime.sendEnterAttribute(super ._cookie, $__uri,
526: $__local, $__qname);
527: }
528: }
529: break;
530: case 8: {
531: action2();
532: $_ngcc_current_state = 7;
533: $runtime.sendEnterAttribute(super ._cookie, $__uri,
534: $__local, $__qname);
535: }
536: break;
537: case 33: {
538: if (($__uri.equals("") && $__local.equals("use"))) {
539: $_ngcc_current_state = 35;
540: } else {
541: $_ngcc_current_state = 29;
542: $runtime.sendEnterAttribute(super ._cookie, $__uri,
543: $__local, $__qname);
544: }
545: }
546: break;
547: case 9: {
548: $_ngcc_current_state = 8;
549: $runtime.sendEnterAttribute(super ._cookie, $__uri,
550: $__local, $__qname);
551: }
552: break;
553: case 3: {
554: if ((($__uri.equals("") && $__local
555: .equals("processContents")) || ($__uri.equals("") && $__local
556: .equals("namespace")))) {
557: NGCCHandler h = new wildcardBody(this , super ._source,
558: $runtime, 402, wloc);
559: spawnChildFromEnterAttribute(h, $__uri, $__local,
560: $__qname);
561: } else {
562: unexpectedEnterAttribute($__qname);
563: }
564: }
565: break;
566: case 29: {
567: if (($__uri.equals("") && $__local.equals("default"))) {
568: $_ngcc_current_state = 31;
569: } else {
570: $_ngcc_current_state = 25;
571: $runtime.sendEnterAttribute(super ._cookie, $__uri,
572: $__local, $__qname);
573: }
574: }
575: break;
576: case 0: {
577: revertToParentFromEnterAttribute(this , super ._cookie,
578: $__uri, $__local, $__qname);
579: }
580: break;
581: case 5: {
582: $_ngcc_current_state = 1;
583: $runtime.sendEnterAttribute(super ._cookie, $__uri,
584: $__local, $__qname);
585: }
586: break;
587: case 19: {
588: $_ngcc_current_state = 18;
589: $runtime.sendEnterAttribute(super ._cookie, $__uri,
590: $__local, $__qname);
591: }
592: break;
593: case 17: {
594: if ((($__uri.equals("") && $__local.equals("name")) || ($__uri
595: .equals("") && $__local.equals("form")))) {
596: NGCCHandler h = new attributeDeclBody(this ,
597: super ._source, $runtime, 427, locator, true,
598: defaultValue, fixedValue);
599: spawnChildFromEnterAttribute(h, $__uri, $__local,
600: $__qname);
601: } else {
602: if (($__uri.equals("") && $__local.equals("ref"))) {
603: $_ngcc_current_state = 22;
604: } else {
605: unexpectedEnterAttribute($__qname);
606: }
607: }
608: }
609: break;
610: case 16: {
611: action4();
612: $_ngcc_current_state = 15;
613: $runtime.sendEnterAttribute(super ._cookie, $__uri,
614: $__local, $__qname);
615: }
616: break;
617: default: {
618: unexpectedEnterAttribute($__qname);
619: }
620: break;
621: }
622: }
623:
624: public void leaveAttribute(String $__uri, String $__local,
625: String $__qname) throws SAXException {
626: int $ai;
627: $uri = $__uri;
628: $localName = $__local;
629: $qname = $__qname;
630: switch ($_ngcc_current_state) {
631: case 1: {
632: $_ngcc_current_state = 0;
633: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
634: $__local, $__qname);
635: }
636: break;
637: case 25: {
638: $_ngcc_current_state = 17;
639: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
640: $__local, $__qname);
641: }
642: break;
643: case 8: {
644: action2();
645: $_ngcc_current_state = 7;
646: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
647: $__local, $__qname);
648: }
649: break;
650: case 33: {
651: $_ngcc_current_state = 29;
652: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
653: $__local, $__qname);
654: }
655: break;
656: case 9: {
657: $_ngcc_current_state = 8;
658: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
659: $__local, $__qname);
660: }
661: break;
662: case 29: {
663: $_ngcc_current_state = 25;
664: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
665: $__local, $__qname);
666: }
667: break;
668: case 34: {
669: if (($__uri.equals("") && $__local.equals("use"))) {
670: $_ngcc_current_state = 29;
671: } else {
672: unexpectedLeaveAttribute($__qname);
673: }
674: }
675: break;
676: case 0: {
677: revertToParentFromLeaveAttribute(this , super ._cookie,
678: $__uri, $__local, $__qname);
679: }
680: break;
681: case 30: {
682: if (($__uri.equals("") && $__local.equals("default"))) {
683: $_ngcc_current_state = 25;
684: } else {
685: unexpectedLeaveAttribute($__qname);
686: }
687: }
688: break;
689: case 5: {
690: $_ngcc_current_state = 1;
691: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
692: $__local, $__qname);
693: }
694: break;
695: case 11: {
696: if (($__uri.equals("") && $__local.equals("ref"))) {
697: $_ngcc_current_state = 9;
698: } else {
699: unexpectedLeaveAttribute($__qname);
700: }
701: }
702: break;
703: case 21: {
704: if (($__uri.equals("") && $__local.equals("ref"))) {
705: $_ngcc_current_state = 19;
706: } else {
707: unexpectedLeaveAttribute($__qname);
708: }
709: }
710: break;
711: case 19: {
712: $_ngcc_current_state = 18;
713: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
714: $__local, $__qname);
715: }
716: break;
717: case 26: {
718: if (($__uri.equals("") && $__local.equals("fixed"))) {
719: $_ngcc_current_state = 17;
720: } else {
721: unexpectedLeaveAttribute($__qname);
722: }
723: }
724: break;
725: case 16: {
726: action4();
727: $_ngcc_current_state = 15;
728: $runtime.sendLeaveAttribute(super ._cookie, $__uri,
729: $__local, $__qname);
730: }
731: break;
732: default: {
733: unexpectedLeaveAttribute($__qname);
734: }
735: break;
736: }
737: }
738:
739: public void text(String $value) throws SAXException {
740: int $ai;
741: switch ($_ngcc_current_state) {
742: case 12: {
743: NGCCHandler h = new qname(this , super ._source, $runtime,
744: 412);
745: spawnChildFromText(h, $value);
746: }
747: break;
748: case 1: {
749: $_ngcc_current_state = 0;
750: $runtime.sendText(super ._cookie, $value);
751: }
752: break;
753: case 13: {
754: if (($ai = $runtime.getAttributeIndex("", "ref")) >= 0) {
755: $runtime.consumeAttribute($ai);
756: $runtime.sendText(super ._cookie, $value);
757: }
758: }
759: break;
760: case 27: {
761: fixedValue = $value;
762: $_ngcc_current_state = 26;
763: }
764: break;
765: case 25: {
766: if (($ai = $runtime.getAttributeIndex("", "fixed")) >= 0) {
767: $runtime.consumeAttribute($ai);
768: $runtime.sendText(super ._cookie, $value);
769: } else {
770: $_ngcc_current_state = 17;
771: $runtime.sendText(super ._cookie, $value);
772: }
773: }
774: break;
775: case 8: {
776: action2();
777: $_ngcc_current_state = 7;
778: $runtime.sendText(super ._cookie, $value);
779: }
780: break;
781: case 33: {
782: if (($ai = $runtime.getAttributeIndex("", "use")) >= 0) {
783: $runtime.consumeAttribute($ai);
784: $runtime.sendText(super ._cookie, $value);
785: } else {
786: $_ngcc_current_state = 29;
787: $runtime.sendText(super ._cookie, $value);
788: }
789: }
790: break;
791: case 9: {
792: $_ngcc_current_state = 8;
793: $runtime.sendText(super ._cookie, $value);
794: }
795: break;
796: case 3: {
797: if (($ai = $runtime.getAttributeIndex("", "namespace")) >= 0) {
798: NGCCHandler h = new wildcardBody(this , super ._source,
799: $runtime, 402, wloc);
800: spawnChildFromText(h, $value);
801: } else {
802: if (($ai = $runtime.getAttributeIndex("",
803: "processContents")) >= 0) {
804: NGCCHandler h = new wildcardBody(this ,
805: super ._source, $runtime, 402, wloc);
806: spawnChildFromText(h, $value);
807: }
808: }
809: }
810: break;
811: case 29: {
812: if (($ai = $runtime.getAttributeIndex("", "default")) >= 0) {
813: $runtime.consumeAttribute($ai);
814: $runtime.sendText(super ._cookie, $value);
815: } else {
816: $_ngcc_current_state = 25;
817: $runtime.sendText(super ._cookie, $value);
818: }
819: }
820: break;
821: case 0: {
822: revertToParentFromText(this , super ._cookie, $value);
823: }
824: break;
825: case 5: {
826: $_ngcc_current_state = 1;
827: $runtime.sendText(super ._cookie, $value);
828: }
829: break;
830: case 22: {
831: NGCCHandler h = new qname(this , super ._source, $runtime,
832: 423);
833: spawnChildFromText(h, $value);
834: }
835: break;
836: case 17: {
837: if (($ai = $runtime.getAttributeIndex("", "form")) >= 0) {
838: NGCCHandler h = new attributeDeclBody(this ,
839: super ._source, $runtime, 427, locator, true,
840: defaultValue, fixedValue);
841: spawnChildFromText(h, $value);
842: } else {
843: if (($ai = $runtime.getAttributeIndex("", "name")) >= 0) {
844: NGCCHandler h = new attributeDeclBody(this ,
845: super ._source, $runtime, 427, locator,
846: true, defaultValue, fixedValue);
847: spawnChildFromText(h, $value);
848: } else {
849: if (($ai = $runtime.getAttributeIndex("", "ref")) >= 0) {
850: $runtime.consumeAttribute($ai);
851: $runtime.sendText(super ._cookie, $value);
852: }
853: }
854: }
855: }
856: break;
857: case 19: {
858: $_ngcc_current_state = 18;
859: $runtime.sendText(super ._cookie, $value);
860: }
861: break;
862: case 31: {
863: defaultValue = $value;
864: $_ngcc_current_state = 30;
865: }
866: break;
867: case 16: {
868: action4();
869: $_ngcc_current_state = 15;
870: $runtime.sendText(super ._cookie, $value);
871: }
872: break;
873: case 35: {
874: use = $value;
875: $_ngcc_current_state = 34;
876: }
877: break;
878: }
879: }
880:
881: public void onChildCompleted(Object $__result__, int $__cookie__,
882: boolean $__needAttCheck__) throws SAXException {
883: switch ($__cookie__) {
884: case 412: {
885: groupName = ((UName) $__result__);
886: $_ngcc_current_state = 11;
887: }
888: break;
889: case 402: {
890: wildcard = ((WildcardImpl) $__result__);
891: action0();
892: $_ngcc_current_state = 2;
893: }
894: break;
895: case 418: {
896: fa = ((ForeignAttributesImpl) $__result__);
897: $_ngcc_current_state = 16;
898: }
899: break;
900: case 420: {
901: annotation = ((AnnotationImpl) $__result__);
902: $_ngcc_current_state = 18;
903: }
904: break;
905: case 409: {
906: $_ngcc_current_state = 8;
907: }
908: break;
909: case 423: {
910: attDeclName = ((UName) $__result__);
911: action5();
912: $_ngcc_current_state = 21;
913: }
914: break;
915: case 427: {
916: anonymousDecl = ((AttributeDeclImpl) $__result__);
917: action6();
918: $_ngcc_current_state = 16;
919: }
920: break;
921: }
922: }
923:
924: public boolean accepted() {
925: return ((($_ngcc_current_state == 5) || (($_ngcc_current_state == 0) || ($_ngcc_current_state == 1))));
926: }
927:
928: private Ref.Attribute decl;
929: private Locator wloc; // locator for wildcards
930: private Locator locator;
931:
932: }
|