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


01:        // SAX DTD handler.
02:        // No warranty; no copyright -- use this as you will.
03:        // $Id: DTDHandler.java,v 1.1 2004/12/05 04:06:21 csilva Exp $
04:
05:        package org.xml.sax;
06:
07:        /**
08:         * Receive notification of basic DTD-related events.
09:         *
10:         * <p>If a SAX application needs information about notations and
11:         * unparsed entities, then the application implements this 
12:         * interface and registers an instance with the SAX parser using 
13:         * the parser's setDTDHandler method.  The parser uses the 
14:         * instance to report notation and unparsed entity declarations to 
15:         * the application.</p>
16:         *
17:         * <p>The SAX parser may report these events in any order, regardless
18:         * of the order in which the notations and unparsed entities were
19:         * declared; however, all DTD events must be reported after the
20:         * document handler's startDocument event, and before the first
21:         * startElement event.</p>
22:         *
23:         * <p>It is up to the application to store the information for 
24:         * future use (perhaps in a hash table or object tree).
25:         * If the application encounters attributes of type "NOTATION",
26:         * "ENTITY", or "ENTITIES", it can use the information that it
27:         * obtained through this interface to find the entity and/or
28:         * notation corresponding with the attribute value.</p>
29:         *
30:         * <p>The HandlerBase class provides a default implementation
31:         * of this interface, which simply ignores the events.</p>
32:         *
33:         * @author David Megginson (ak117@freenet.carleton.ca)
34:         * @version 1.0
35:         * @see org.xml.sax.Parser#setDTDHandler
36:         * @see org.xml.sax.HandlerBase 
37:         */
38:        public interface DTDHandler {
39:
40:            /**
41:             * Receive notification of a notation declaration event.
42:             *
43:             * <p>It is up to the application to record the notation for later
44:             * reference, if necessary.</p>
45:             *
46:             * <p>If a system identifier is present, and it is a URL, the SAX
47:             * parser must resolve it fully before passing it to the
48:             * application.</p>
49:             *
50:             * @param name The notation name.
51:             * @param publicId The notation's public identifier, or null if
52:             *        none was given.
53:             * @param systemId The notation's system identifier, or null if
54:             *        none was given.
55:             * @exception org.xml.sax.SAXException Any SAX exception, possibly
56:             *            wrapping another exception.
57:             * @see #unparsedEntityDecl
58:             * @see org.xml.sax.AttributeList
59:             */
60:            public abstract void notationDecl(String name, String publicId,
61:                    String systemId) throws SAXException;
62:
63:            /**
64:             * Receive notification of an unparsed entity declaration event.
65:             *
66:             * <p>Note that the notation name corresponds to a notation
67:             * reported by the notationDecl() event.  It is up to the
68:             * application to record the entity for later reference, if
69:             * necessary.</p>
70:             *
71:             * <p>If the system identifier is a URL, the parser must resolve it
72:             * fully before passing it to the application.</p>
73:             *
74:             * @exception org.xml.sax.SAXException Any SAX exception, possibly
75:             *            wrapping another exception.
76:             * @param name The unparsed entity's name.
77:             * @param publicId The entity's public identifier, or null if none
78:             *        was given.
79:             * @param systemId The entity's system identifier (it must always
80:             *        have one).
81:             * @param notation name The name of the associated notation.
82:             * @see #notationDecl
83:             * @see org.xml.sax.AttributeList
84:             */
85:            public abstract void unparsedEntityDecl(String name,
86:                    String publicId, String systemId, String notationName)
87:                    throws SAXException;
88:
89:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.