Source Code Cross Referenced for xpath.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 xpath extends NGCCHandler {
019:            private String xpath;
020:            private ForeignAttributesImpl fa;
021:            private AnnotationImpl ann;
022:            protected final NGCCRuntimeEx $runtime;
023:            private int $_ngcc_current_state;
024:            protected String $uri;
025:            protected String $localName;
026:            protected String $qname;
027:
028:            public final NGCCRuntime getRuntime() {
029:                return ($runtime);
030:            }
031:
032:            public xpath(NGCCHandler parent, NGCCEventSource source,
033:                    NGCCRuntimeEx runtime, int cookie) {
034:                super (source, parent, cookie);
035:                $runtime = runtime;
036:                $_ngcc_current_state = 6;
037:            }
038:
039:            public xpath(NGCCRuntimeEx runtime) {
040:                this (null, runtime, runtime, -1);
041:            }
042:
043:            public void enterElement(String $__uri, String $__local,
044:                    String $__qname, Attributes $attrs) throws SAXException {
045:                int $ai;
046:                $uri = $__uri;
047:                $localName = $__local;
048:                $qname = $__qname;
049:                switch ($_ngcc_current_state) {
050:                case 5: {
051:                    if (($ai = $runtime.getAttributeIndex("", "xpath")) >= 0) {
052:                        $runtime.consumeAttribute($ai);
053:                        $runtime.sendEnterElement(super ._cookie, $__uri,
054:                                $__local, $__qname, $attrs);
055:                    } else {
056:                        unexpectedEnterElement($__qname);
057:                    }
058:                }
059:                    break;
060:                case 1: {
061:                    if (($__uri.equals("http://www.w3.org/2001/XMLSchema") && $__local
062:                            .equals("annotation"))) {
063:                        NGCCHandler h = new annotation(this , super ._source,
064:                                $runtime, 158, null, AnnotationContext.XPATH);
065:                        spawnChildFromEnterElement(h, $__uri, $__local,
066:                                $__qname, $attrs);
067:                    } else {
068:                        $_ngcc_current_state = 0;
069:                        $runtime.sendEnterElement(super ._cookie, $__uri,
070:                                $__local, $__qname, $attrs);
071:                    }
072:                }
073:                    break;
074:                case 0: {
075:                    revertToParentFromEnterElement(makeResult(), super ._cookie,
076:                            $__uri, $__local, $__qname, $attrs);
077:                }
078:                    break;
079:                case 6: {
080:                    if ((($ai = $runtime.getAttributeIndex("", "xpath")) >= 0 && ($__uri
081:                            .equals("http://www.w3.org/2001/XMLSchema") && $__local
082:                            .equals("annotation")))) {
083:                        NGCCHandler h = new foreignAttributes(this ,
084:                                super ._source, $runtime, 163, null);
085:                        spawnChildFromEnterElement(h, $__uri, $__local,
086:                                $__qname, $attrs);
087:                    } else {
088:                        unexpectedEnterElement($__qname);
089:                    }
090:                }
091:                    break;
092:                default: {
093:                    unexpectedEnterElement($__qname);
094:                }
095:                    break;
096:                }
097:            }
098:
099:            public void leaveElement(String $__uri, String $__local,
100:                    String $__qname) throws SAXException {
101:                int $ai;
102:                $uri = $__uri;
103:                $localName = $__local;
104:                $qname = $__qname;
105:                switch ($_ngcc_current_state) {
106:                case 5: {
107:                    if (($ai = $runtime.getAttributeIndex("", "xpath")) >= 0) {
108:                        $runtime.consumeAttribute($ai);
109:                        $runtime.sendLeaveElement(super ._cookie, $__uri,
110:                                $__local, $__qname);
111:                    } else {
112:                        unexpectedLeaveElement($__qname);
113:                    }
114:                }
115:                    break;
116:                case 1: {
117:                    $_ngcc_current_state = 0;
118:                    $runtime.sendLeaveElement(super ._cookie, $__uri, $__local,
119:                            $__qname);
120:                }
121:                    break;
122:                case 0: {
123:                    revertToParentFromLeaveElement(makeResult(), super ._cookie,
124:                            $__uri, $__local, $__qname);
125:                }
126:                    break;
127:                case 6: {
128:                    if (($ai = $runtime.getAttributeIndex("", "xpath")) >= 0) {
129:                        NGCCHandler h = new foreignAttributes(this ,
130:                                super ._source, $runtime, 163, null);
131:                        spawnChildFromLeaveElement(h, $__uri, $__local,
132:                                $__qname);
133:                    } else {
134:                        unexpectedLeaveElement($__qname);
135:                    }
136:                }
137:                    break;
138:                default: {
139:                    unexpectedLeaveElement($__qname);
140:                }
141:                    break;
142:                }
143:            }
144:
145:            public void enterAttribute(String $__uri, String $__local,
146:                    String $__qname) throws SAXException {
147:                int $ai;
148:                $uri = $__uri;
149:                $localName = $__local;
150:                $qname = $__qname;
151:                switch ($_ngcc_current_state) {
152:                case 5: {
153:                    if (($__uri.equals("") && $__local.equals("xpath"))) {
154:                        $_ngcc_current_state = 4;
155:                    } else {
156:                        unexpectedEnterAttribute($__qname);
157:                    }
158:                }
159:                    break;
160:                case 1: {
161:                    $_ngcc_current_state = 0;
162:                    $runtime.sendEnterAttribute(super ._cookie, $__uri,
163:                            $__local, $__qname);
164:                }
165:                    break;
166:                case 0: {
167:                    revertToParentFromEnterAttribute(makeResult(),
168:                            super ._cookie, $__uri, $__local, $__qname);
169:                }
170:                    break;
171:                case 6: {
172:                    if (($__uri.equals("") && $__local.equals("xpath"))) {
173:                        NGCCHandler h = new foreignAttributes(this ,
174:                                super ._source, $runtime, 163, null);
175:                        spawnChildFromEnterAttribute(h, $__uri, $__local,
176:                                $__qname);
177:                    } else {
178:                        unexpectedEnterAttribute($__qname);
179:                    }
180:                }
181:                    break;
182:                default: {
183:                    unexpectedEnterAttribute($__qname);
184:                }
185:                    break;
186:                }
187:            }
188:
189:            public void leaveAttribute(String $__uri, String $__local,
190:                    String $__qname) throws SAXException {
191:                int $ai;
192:                $uri = $__uri;
193:                $localName = $__local;
194:                $qname = $__qname;
195:                switch ($_ngcc_current_state) {
196:                case 1: {
197:                    $_ngcc_current_state = 0;
198:                    $runtime.sendLeaveAttribute(super ._cookie, $__uri,
199:                            $__local, $__qname);
200:                }
201:                    break;
202:                case 0: {
203:                    revertToParentFromLeaveAttribute(makeResult(),
204:                            super ._cookie, $__uri, $__local, $__qname);
205:                }
206:                    break;
207:                case 3: {
208:                    if (($__uri.equals("") && $__local.equals("xpath"))) {
209:                        $_ngcc_current_state = 1;
210:                    } else {
211:                        unexpectedLeaveAttribute($__qname);
212:                    }
213:                }
214:                    break;
215:                default: {
216:                    unexpectedLeaveAttribute($__qname);
217:                }
218:                    break;
219:                }
220:            }
221:
222:            public void text(String $value) throws SAXException {
223:                int $ai;
224:                switch ($_ngcc_current_state) {
225:                case 5: {
226:                    if (($ai = $runtime.getAttributeIndex("", "xpath")) >= 0) {
227:                        $runtime.consumeAttribute($ai);
228:                        $runtime.sendText(super ._cookie, $value);
229:                    }
230:                }
231:                    break;
232:                case 1: {
233:                    $_ngcc_current_state = 0;
234:                    $runtime.sendText(super ._cookie, $value);
235:                }
236:                    break;
237:                case 4: {
238:                    xpath = $value;
239:                    $_ngcc_current_state = 3;
240:                }
241:                    break;
242:                case 0: {
243:                    revertToParentFromText(makeResult(), super ._cookie, $value);
244:                }
245:                    break;
246:                case 6: {
247:                    if (($ai = $runtime.getAttributeIndex("", "xpath")) >= 0) {
248:                        NGCCHandler h = new foreignAttributes(this ,
249:                                super ._source, $runtime, 163, null);
250:                        spawnChildFromText(h, $value);
251:                    }
252:                }
253:                    break;
254:                }
255:            }
256:
257:            public void onChildCompleted(Object $__result__, int $__cookie__,
258:                    boolean $__needAttCheck__) throws SAXException {
259:                switch ($__cookie__) {
260:                case 158: {
261:                    ann = ((AnnotationImpl) $__result__);
262:                    $_ngcc_current_state = 0;
263:                }
264:                    break;
265:                case 163: {
266:                    fa = ((ForeignAttributesImpl) $__result__);
267:                    $_ngcc_current_state = 5;
268:                }
269:                    break;
270:                }
271:            }
272:
273:            public boolean accepted() {
274:                return ((($_ngcc_current_state == 0) || ($_ngcc_current_state == 1)));
275:            }
276:
277:            private XPathImpl makeResult() {
278:                return new XPathImpl($runtime.document, ann, $runtime
279:                        .copyLocator(), fa, $runtime.createXmlString(xpath));
280:            }
281:
282:        }
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.