Source Code Cross Referenced for DTDHandler.java in  » Development » Javolution » org » xml » sax » 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 » Development » Javolution » org.xml.sax 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // SAX DTD handler.
002:        // http://www.saxproject.org
003:        // No warranty; no copyright -- use this as you will.
004:
005:        package org.xml.sax;
006:
007:        /**
008:         * Receive notification of basic DTD-related events.
009:         *
010:         * <blockquote>
011:         * <em>This module, both source code and documentation, is in the
012:         * Public Domain, and comes with <strong>NO WARRANTY</strong>.</em>
013:         * See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
014:         * for further information.
015:         * </blockquote>
016:         *
017:         * <p>If a SAX application needs information about notations and
018:         * unparsed entities, then the application implements this 
019:         * interface and registers an instance with the SAX parser using 
020:         * the parser's setDTDHandler method.  The parser uses the 
021:         * instance to report notation and unparsed entity declarations to 
022:         * the application.</p>
023:         *
024:         * <p>Note that this interface includes only those DTD events that
025:         * the XML recommendation <em>requires</em> processors to report:
026:         * notation and unparsed entity declarations.</p>
027:         *
028:         * <p>The SAX parser may report these events in any order, regardless
029:         * of the order in which the notations and unparsed entities were
030:         * declared; however, all DTD events must be reported after the
031:         * document handler's startDocument event, and before the first
032:         * startElement event.
033:         * (If the {@link org.xml.sax.ext.LexicalHandler LexicalHandler} is
034:         * used, these events must also be reported before the endDTD event.)
035:         * </p>
036:         *
037:         * <p>It is up to the application to store the information for 
038:         * future use (perhaps in a hash table or object tree).
039:         * If the application encounters attributes of type "NOTATION",
040:         * "ENTITY", or "ENTITIES", it can use the information that it
041:         * obtained through this interface to find the entity and/or
042:         * notation corresponding with the attribute value.</p>
043:         *
044:         * @since SAX 1.0
045:         * @author David Megginson
046:         * @version 2.0.1 (sax2r2)
047:         * @see org.xml.sax.XMLReader#setDTDHandler
048:         */
049:        public interface DTDHandler {
050:
051:            /**
052:             * Receive notification of a notation declaration event.
053:             *
054:             * <p>It is up to the application to record the notation for later
055:             * reference, if necessary;
056:             * notations may appear as attribute values and in unparsed entity
057:             * declarations, and are sometime used with processing instruction
058:             * target names.</p>
059:             *
060:             * <p>At least one of publicId and systemId must be non-null.
061:             * If a system identifier is present, and it is a URL, the SAX
062:             * parser must resolve it fully before passing it to the
063:             * application through this event.</p>
064:             *
065:             * <p>There is no guarantee that the notation declaration will be
066:             * reported before any unparsed entities that use it.</p>
067:             *
068:             * @param name The notation name.
069:             * @param publicId The notation's public identifier, or null if
070:             *        none was given.
071:             * @param systemId The notation's system identifier, or null if
072:             *        none was given.
073:             * @exception org.xml.sax.SAXException Any SAX exception, possibly
074:             *            wrapping another exception.
075:             * @see #unparsedEntityDecl
076:             * @see org.xml.sax.Attributes
077:             */
078:            public abstract void notationDecl(String name, String publicId,
079:                    String systemId) throws SAXException;
080:
081:            /**
082:             * Receive notification of an unparsed entity declaration event.
083:             *
084:             * <p>Note that the notation name corresponds to a notation
085:             * reported by the {@link #notationDecl notationDecl} event.  
086:             * It is up to the application to record the entity for later 
087:             * reference, if necessary;
088:             * unparsed entities may appear as attribute values. 
089:             * </p>
090:             *
091:             * <p>If the system identifier is a URL, the parser must resolve it
092:             * fully before passing it to the application.</p>
093:             *
094:             * @exception org.xml.sax.SAXException Any SAX exception, possibly
095:             *            wrapping another exception.
096:             * @param name The unparsed entity's name.
097:             * @param publicId The entity's public identifier, or null if none
098:             *        was given.
099:             * @param systemId The entity's system identifier.
100:             * @param notationName The name of the associated notation.
101:             * @see #notationDecl
102:             * @see org.xml.sax.Attributes
103:             */
104:            public abstract void unparsedEntityDecl(String name,
105:                    String publicId, String systemId, String notationName)
106:                    throws SAXException;
107:
108:        }
109:
110:        // end of DTDHandler.java
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.