Source Code Cross Referenced for DTDEvent.java in  » 6.0-JDK-Modules » sjsxp » com » sun » xml » stream » events » 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 » sjsxp » com.sun.xml.stream.events 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * The contents of this file are subject to the terms
003:         * of the Common Development and Distribution License
004:         * (the "License").  You may not use this file except
005:         * in compliance with the License.
006:         *
007:         * You can obtain a copy of the license at
008:         * https://jaxp.dev.java.net/CDDLv1.0.html.
009:         * See the License for the specific language governing
010:         * permissions and limitations under the License.
011:         *
012:         * When distributing Covered Code, include this CDDL
013:         * HEADER in each file and include the License file at
014:         * https://jaxp.dev.java.net/CDDLv1.0.html
015:         * If applicable add the following below this CDDL HEADER
016:         * with the fields enclosed by brackets "[]" replaced with
017:         * your own identifying information: Portions Copyright
018:         * [year] [name of copyright owner]
019:         */
020:
021:        /*
022:         * The contents of this file are subject to the terms
023:         * of the Common Development and Distribution License
024:         * (the License).  You may not use this file except in
025:         * compliance with the License.
026:         * 
027:         * You can obtain a copy of the license at
028:         * https://glassfish.dev.java.net/public/CDDLv1.0.html.
029:         * See the License for the specific language governing
030:         * permissions and limitations under the License.
031:         * 
032:         * When distributing Covered Code, include this CDDL
033:         * Header Notice in each file and include the License file
034:         * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
035:         * If applicable, add the following below the CDDL Header,
036:         * with the fields enclosed by brackets [] replaced by
037:         * you own identifying information:
038:         * "Portions Copyrighted [year] [name of copyright owner]"
039:         * 
040:         * [Name of File] [ver.__] [Date]
041:         * 
042:         * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
043:         */
044:
045:        package com.sun.xml.stream.events;
046:
047:        import javax.xml.stream.events.DTD;
048:        import javax.xml.stream.events.XMLEvent;
049:
050:        /**
051:         *
052:         * @author  Neeraj Bajaj, Sun Microsystesm.
053:         *
054:         */
055:        public class DTDEvent extends DummyEvent implements  DTD {
056:
057:            private String fDoctypeDeclaration;
058:            private java.util.List fNotations;
059:            private java.util.List fEntities;
060:
061:            /** Creates a new instance of DTDEvent */
062:            public DTDEvent() {
063:                init();
064:            }
065:
066:            public DTDEvent(String doctypeDeclaration) {
067:                init();
068:                fDoctypeDeclaration = doctypeDeclaration;
069:            }
070:
071:            public void setDocumentTypeDeclaration(String doctypeDeclaration) {
072:                fDoctypeDeclaration = doctypeDeclaration;
073:            }
074:
075:            public String getDocumentTypeDeclaration() {
076:                return fDoctypeDeclaration;
077:            }
078:
079:            //xxx: we can change the signature if the implementation doesn't store the entities in List Datatype.
080:            //and then convert that DT to list format here. That way callee dont need to bother about conversion
081:
082:            public void setEntities(java.util.List entites) {
083:                fEntities = entites;
084:            }
085:
086:            public java.util.List getEntities() {
087:                return fEntities;
088:            }
089:
090:            //xxx: we can change the signature if the implementation doesn't store the entities in List Datatype.
091:            //and then convert that DT to list format here. That way callee dont need to bother about conversion
092:
093:            public void setNotations(java.util.List notations) {
094:                fNotations = notations;
095:            }
096:
097:            public java.util.List getNotations() {
098:                return fNotations;
099:            }
100:
101:            /**
102:             *Returns an implementation defined representation of the DTD.
103:             * This method may return null if no representation is available.
104:             *
105:             */
106:            public Object getProcessedDTD() {
107:                return null;
108:            }
109:
110:            protected void init() {
111:                setEventType(XMLEvent.DTD);
112:            }
113:
114:            public String toString() {
115:                return fDoctypeDeclaration;
116:            }
117:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.