Source Code Cross Referenced for EventHelper.java in  » XML » stax-utils » javanet » staxutils » 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 » XML » stax utils » javanet.staxutils 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* $Id: EventHelper.java,v 1.1 2004/06/21 18:59:46 ryan_shoemaker Exp $
002:         *
003:         * Copyright (c) 2004, Sun Microsystems, Inc.
004:         * All rights reserved.
005:         *
006:         * Redistribution and use in source and binary forms, with or without
007:         * modification, are permitted provided that the following conditions are
008:         * met:
009:         *
010:         *     * Redistributions of source code must retain the above copyright
011:         *      notice, this list of conditions and the following disclaimer.
012:         *
013:         *     * Redistributions in binary form must reproduce the above
014:         *      copyright notice, this list of conditions and the following
015:         *       disclaimer in the documentation and/or other materials provided
016:         *       with the distribution.
017:         *
018:         *     * Neither the name of Sun Microsystems, Inc. nor the names of its
019:         *       contributors may be used to endorse or promote products derived
020:         *       from this software without specific prior written permission.
021:         *
022:         * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
023:         * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
024:         * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
025:         * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
026:         * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
027:         * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
028:         * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
029:         * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
030:         * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
031:         * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
032:         * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
033:         */
034:        package javanet.staxutils;
035:
036:        import javax.xml.namespace.QName;
037:        import javax.xml.stream.Location;
038:        import javax.xml.stream.XMLStreamException;
039:        import javax.xml.stream.events.Characters;
040:        import javax.xml.stream.events.EndElement;
041:        import javax.xml.stream.events.StartElement;
042:        import javax.xml.stream.events.XMLEvent;
043:        import java.io.Writer;
044:
045:        /**
046:         * Partial base class implementation of {@link javax.xml.stream.events.XMLEvent}.
047:         *
048:         * @author Ryan.Shoemaker@Sun.COM
049:         * @version 1.0
050:         */
051:        abstract class EventHelper implements  XMLEvent {
052:
053:            private final Location location;
054:
055:            protected EventHelper(Location location) {
056:                this .location = location;
057:            }
058:
059:            public Location getLocation() {
060:                return location;
061:            }
062:
063:            public boolean isStartElement() {
064:                return false;
065:            }
066:
067:            public boolean isAttribute() {
068:                return false;
069:            }
070:
071:            public boolean isNamespace() {
072:                return false;
073:            }
074:
075:            public boolean isEndElement() {
076:                return false;
077:            }
078:
079:            public boolean isEntityReference() {
080:                return false;
081:            }
082:
083:            public boolean isProcessingInstruction() {
084:                return false;
085:            }
086:
087:            public boolean isCharacters() {
088:                return false;
089:            }
090:
091:            public boolean isStartDocument() {
092:                return false;
093:            }
094:
095:            public boolean isEndDocument() {
096:                return false;
097:            }
098:
099:            public StartElement asStartElement() {
100:                throw new UnsupportedOperationException();
101:            }
102:
103:            public EndElement asEndElement() {
104:                throw new UnsupportedOperationException();
105:            }
106:
107:            public Characters asCharacters() {
108:                throw new UnsupportedOperationException();
109:            }
110:
111:            public QName getSchemaType() {
112:                throw new UnsupportedOperationException();
113:            }
114:
115:            public abstract void writeAsEncodedUnicode(Writer writer)
116:                    throws XMLStreamException;
117:
118:            public int getEventType() {
119:                throw new UnsupportedOperationException();
120:            }
121:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.