Source Code Cross Referenced for group.java in  » 6.0-JDK-Modules » jaxb-xjc » com » sun » xml » 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 » jaxb xjc » com.sun.xml.xsom.impl.parser.state 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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 group extends NGCCHandler {
019:            private AnnotationImpl annotation;
020:            private String name;
021:            private ModelGroupImpl term;
022:            private ForeignAttributesImpl fa;
023:            protected final NGCCRuntimeEx $runtime;
024:            private int $_ngcc_current_state;
025:            protected String $uri;
026:            protected String $localName;
027:            protected String $qname;
028:
029:            public final NGCCRuntime getRuntime() {
030:                return ($runtime);
031:            }
032:
033:            public group(NGCCHandler parent, NGCCEventSource source,
034:                    NGCCRuntimeEx runtime, int cookie) {
035:                super (source, parent, cookie);
036:                $runtime = runtime;
037:                $_ngcc_current_state = 15;
038:            }
039:
040:            public group(NGCCRuntimeEx runtime) {
041:                this (null, runtime, runtime, -1);
042:            }
043:
044:            private void action0() throws SAXException {
045:
046:                result = new ModelGroupDeclImpl($runtime.document, annotation,
047:                        loc, fa, $runtime.currentSchema.getTargetNamespace(),
048:                        name, term);
049:
050:            }
051:
052:            private void action1() throws SAXException {
053:
054:                mloc = $runtime.copyLocator();
055:                compositorName = $localName;
056:
057:            }
058:
059:            private void action2() throws SAXException {
060:                loc = $runtime.copyLocator();
061:            }
062:
063:            public void enterElement(String $__uri, String $__local,
064:                    String $__qname, Attributes $attrs) throws SAXException {
065:                int $ai;
066:                $uri = $__uri;
067:                $localName = $__local;
068:                $qname = $__qname;
069:                switch ($_ngcc_current_state) {
070:                case 11: {
071:                    if (($ai = $runtime.getAttributeIndex("", "ID")) >= 0) {
072:                        $runtime.consumeAttribute($ai);
073:                        $runtime.sendEnterElement(super ._cookie, $__uri,
074:                                $__local, $__qname, $attrs);
075:                    } else {
076:                        $_ngcc_current_state = 10;
077:                        $runtime.sendEnterElement(super ._cookie, $__uri,
078:                                $__local, $__qname, $attrs);
079:                    }
080:                }
081:                    break;
082:                case 5: {
083:                    if (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
084:                            .equals("all")) || ($__uri
085:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
086:                            .equals("choice"))) || ($__uri
087:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
088:                            .equals("sequence")))) {
089:                        NGCCHandler h = new foreignAttributes(this ,
090:                                super ._source, $runtime, 315, null);
091:                        spawnChildFromEnterElement(h, $__uri, $__local,
092:                                $__qname, $attrs);
093:                    } else {
094:                        unexpectedEnterElement($__qname);
095:                    }
096:                }
097:                    break;
098:                case 10: {
099:                    if (($ai = $runtime.getAttributeIndex("", "name")) >= 0) {
100:                        $runtime.consumeAttribute($ai);
101:                        $runtime.sendEnterElement(super ._cookie, $__uri,
102:                                $__local, $__qname, $attrs);
103:                    } else {
104:                        unexpectedEnterElement($__qname);
105:                    }
106:                }
107:                    break;
108:                case 4: {
109:                    if (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
110:                            .equals("all")) || ($__uri
111:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
112:                            .equals("choice"))) || ($__uri
113:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
114:                            .equals("sequence")))) {
115:                        $runtime.onEnterElementConsumed($__uri, $__local,
116:                                $__qname, $attrs);
117:                        $_ngcc_current_state = 3;
118:                    } else {
119:                        unexpectedEnterElement($__qname);
120:                    }
121:                }
122:                    break;
123:                case 3: {
124:                    if ((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
125:                            .equals("annotation")) || (((($__uri
126:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
127:                            .equals("all")) || ($__uri
128:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
129:                            .equals("choice"))) || ($__uri
130:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
131:                            .equals("sequence"))) || (($__uri
132:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
133:                            .equals("any")) || (($__uri
134:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
135:                            .equals("element")) || ($__uri
136:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
137:                            .equals("group"))))))) {
138:                        NGCCHandler h = new modelGroupBody(this , super ._source,
139:                                $runtime, 313, mloc, compositorName);
140:                        spawnChildFromEnterElement(h, $__uri, $__local,
141:                                $__qname, $attrs);
142:                    } else {
143:                        unexpectedEnterElement($__qname);
144:                    }
145:                }
146:                    break;
147:                case 0: {
148:                    revertToParentFromEnterElement(result, super ._cookie,
149:                            $__uri, $__local, $__qname, $attrs);
150:                }
151:                    break;
152:                case 15: {
153:                    if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
154:                            .equals("group"))) {
155:                        $runtime.onEnterElementConsumed($__uri, $__local,
156:                                $__qname, $attrs);
157:                        action2();
158:                        $_ngcc_current_state = 11;
159:                    } else {
160:                        unexpectedEnterElement($__qname);
161:                    }
162:                }
163:                    break;
164:                case 6: {
165:                    if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
166:                            .equals("annotation"))) {
167:                        NGCCHandler h = new annotation(this , super ._source,
168:                                $runtime, 317, null,
169:                                AnnotationContext.MODELGROUP_DECL);
170:                        spawnChildFromEnterElement(h, $__uri, $__local,
171:                                $__qname, $attrs);
172:                    } else {
173:                        $_ngcc_current_state = 5;
174:                        $runtime.sendEnterElement(super ._cookie, $__uri,
175:                                $__local, $__qname, $attrs);
176:                    }
177:                }
178:                    break;
179:                default: {
180:                    unexpectedEnterElement($__qname);
181:                }
182:                    break;
183:                }
184:            }
185:
186:            public void leaveElement(String $__uri, String $__local,
187:                    String $__qname) throws SAXException {
188:                int $ai;
189:                $uri = $__uri;
190:                $localName = $__local;
191:                $qname = $__qname;
192:                switch ($_ngcc_current_state) {
193:                case 2: {
194:                    if (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
195:                            .equals("all")) || ($__uri
196:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
197:                            .equals("choice"))) || ($__uri
198:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
199:                            .equals("sequence")))) {
200:                        $runtime.onLeaveElementConsumed($__uri, $__local,
201:                                $__qname);
202:                        $_ngcc_current_state = 1;
203:                    } else {
204:                        unexpectedLeaveElement($__qname);
205:                    }
206:                }
207:                    break;
208:                case 11: {
209:                    if (($ai = $runtime.getAttributeIndex("", "ID")) >= 0) {
210:                        $runtime.consumeAttribute($ai);
211:                        $runtime.sendLeaveElement(super ._cookie, $__uri,
212:                                $__local, $__qname);
213:                    } else {
214:                        $_ngcc_current_state = 10;
215:                        $runtime.sendLeaveElement(super ._cookie, $__uri,
216:                                $__local, $__qname);
217:                    }
218:                }
219:                    break;
220:                case 10: {
221:                    if (($ai = $runtime.getAttributeIndex("", "name")) >= 0) {
222:                        $runtime.consumeAttribute($ai);
223:                        $runtime.sendLeaveElement(super ._cookie, $__uri,
224:                                $__local, $__qname);
225:                    } else {
226:                        unexpectedLeaveElement($__qname);
227:                    }
228:                }
229:                    break;
230:                case 3: {
231:                    if (((($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
232:                            .equals("all")) || ($__uri
233:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
234:                            .equals("choice"))) || ($__uri
235:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
236:                            .equals("sequence")))) {
237:                        NGCCHandler h = new modelGroupBody(this , super ._source,
238:                                $runtime, 313, mloc, compositorName);
239:                        spawnChildFromLeaveElement(h, $__uri, $__local,
240:                                $__qname);
241:                    } else {
242:                        unexpectedLeaveElement($__qname);
243:                    }
244:                }
245:                    break;
246:                case 1: {
247:                    if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
248:                            .equals("group"))) {
249:                        $runtime.onLeaveElementConsumed($__uri, $__local,
250:                                $__qname);
251:                        $_ngcc_current_state = 0;
252:                        action0();
253:                    } else {
254:                        unexpectedLeaveElement($__qname);
255:                    }
256:                }
257:                    break;
258:                case 0: {
259:                    revertToParentFromLeaveElement(result, super ._cookie,
260:                            $__uri, $__local, $__qname);
261:                }
262:                    break;
263:                case 6: {
264:                    $_ngcc_current_state = 5;
265:                    $runtime.sendLeaveElement(super ._cookie, $__uri, $__local,
266:                            $__qname);
267:                }
268:                    break;
269:                default: {
270:                    unexpectedLeaveElement($__qname);
271:                }
272:                    break;
273:                }
274:            }
275:
276:            public void enterAttribute(String $__uri, String $__local,
277:                    String $__qname) throws SAXException {
278:                int $ai;
279:                $uri = $__uri;
280:                $localName = $__local;
281:                $qname = $__qname;
282:                switch ($_ngcc_current_state) {
283:                case 11: {
284:                    if (($__uri.equals("") && $__local.equals("ID"))) {
285:                        $_ngcc_current_state = 13;
286:                    } else {
287:                        $_ngcc_current_state = 10;
288:                        $runtime.sendEnterAttribute(super ._cookie, $__uri,
289:                                $__local, $__qname);
290:                    }
291:                }
292:                    break;
293:                case 10: {
294:                    if (($__uri.equals("") && $__local.equals("name"))) {
295:                        $_ngcc_current_state = 9;
296:                    } else {
297:                        unexpectedEnterAttribute($__qname);
298:                    }
299:                }
300:                    break;
301:                case 0: {
302:                    revertToParentFromEnterAttribute(result, super ._cookie,
303:                            $__uri, $__local, $__qname);
304:                }
305:                    break;
306:                case 6: {
307:                    $_ngcc_current_state = 5;
308:                    $runtime.sendEnterAttribute(super ._cookie, $__uri,
309:                            $__local, $__qname);
310:                }
311:                    break;
312:                default: {
313:                    unexpectedEnterAttribute($__qname);
314:                }
315:                    break;
316:                }
317:            }
318:
319:            public void leaveAttribute(String $__uri, String $__local,
320:                    String $__qname) throws SAXException {
321:                int $ai;
322:                $uri = $__uri;
323:                $localName = $__local;
324:                $qname = $__qname;
325:                switch ($_ngcc_current_state) {
326:                case 12: {
327:                    if (($__uri.equals("") && $__local.equals("ID"))) {
328:                        $_ngcc_current_state = 10;
329:                    } else {
330:                        unexpectedLeaveAttribute($__qname);
331:                    }
332:                }
333:                    break;
334:                case 11: {
335:                    $_ngcc_current_state = 10;
336:                    $runtime.sendLeaveAttribute(super ._cookie, $__uri,
337:                            $__local, $__qname);
338:                }
339:                    break;
340:                case 8: {
341:                    if (($__uri.equals("") && $__local.equals("name"))) {
342:                        $_ngcc_current_state = 6;
343:                    } else {
344:                        unexpectedLeaveAttribute($__qname);
345:                    }
346:                }
347:                    break;
348:                case 0: {
349:                    revertToParentFromLeaveAttribute(result, super ._cookie,
350:                            $__uri, $__local, $__qname);
351:                }
352:                    break;
353:                case 6: {
354:                    $_ngcc_current_state = 5;
355:                    $runtime.sendLeaveAttribute(super ._cookie, $__uri,
356:                            $__local, $__qname);
357:                }
358:                    break;
359:                default: {
360:                    unexpectedLeaveAttribute($__qname);
361:                }
362:                    break;
363:                }
364:            }
365:
366:            public void text(String $value) throws SAXException {
367:                int $ai;
368:                switch ($_ngcc_current_state) {
369:                case 11: {
370:                    if (($ai = $runtime.getAttributeIndex("", "ID")) >= 0) {
371:                        $runtime.consumeAttribute($ai);
372:                        $runtime.sendText(super ._cookie, $value);
373:                    } else {
374:                        $_ngcc_current_state = 10;
375:                        $runtime.sendText(super ._cookie, $value);
376:                    }
377:                }
378:                    break;
379:                case 10: {
380:                    if (($ai = $runtime.getAttributeIndex("", "name")) >= 0) {
381:                        $runtime.consumeAttribute($ai);
382:                        $runtime.sendText(super ._cookie, $value);
383:                    }
384:                }
385:                    break;
386:                case 13: {
387:                    $_ngcc_current_state = 12;
388:                }
389:                    break;
390:                case 0: {
391:                    revertToParentFromText(result, super ._cookie, $value);
392:                }
393:                    break;
394:                case 9: {
395:                    name = $value;
396:                    $_ngcc_current_state = 8;
397:                }
398:                    break;
399:                case 6: {
400:                    $_ngcc_current_state = 5;
401:                    $runtime.sendText(super ._cookie, $value);
402:                }
403:                    break;
404:                }
405:            }
406:
407:            public void onChildCompleted(Object $__result__, int $__cookie__,
408:                    boolean $__needAttCheck__) throws SAXException {
409:                switch ($__cookie__) {
410:                case 313: {
411:                    term = ((ModelGroupImpl) $__result__);
412:                    $_ngcc_current_state = 2;
413:                }
414:                    break;
415:                case 317: {
416:                    annotation = ((AnnotationImpl) $__result__);
417:                    $_ngcc_current_state = 5;
418:                }
419:                    break;
420:                case 315: {
421:                    fa = ((ForeignAttributesImpl) $__result__);
422:                    action1();
423:                    $_ngcc_current_state = 4;
424:                }
425:                    break;
426:                }
427:            }
428:
429:            public boolean accepted() {
430:                return (($_ngcc_current_state == 0));
431:            }
432:
433:            private ModelGroupDeclImpl result;
434:            private Locator loc, mloc;
435:            private String compositorName;
436:
437:        }
w__w___w___.___java___2s___.___c__o___m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.