Source Code Cross Referenced for IXMLBuilder.java in  » Installer » IzPack » net » n3 » nanoxml » 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 » Installer » IzPack » net.n3.nanoxml 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* IXMLBuilder.java                                                NanoXML/Java
002:         *
003:         * $Revision: 1421 $
004:         * $Date: 2006-03-12 09:32:32 -0700 (Sun, 12 Mar 2006) $
005:         * $Name$
006:         *
007:         * This file is part of NanoXML 2 for Java.
008:         * Copyright (C) 2001 Marc De Scheemaecker, All Rights Reserved.
009:         *
010:         * This software is provided 'as-is', without any express or implied warranty.
011:         * In no event will the authors be held liable for any damages arising from the
012:         * use of this software.
013:         *
014:         * Permission is granted to anyone to use this software for any purpose,
015:         * including commercial applications, and to alter it and redistribute it
016:         * freely, subject to the following restrictions:
017:         *
018:         *  1. The origin of this software must not be misrepresented; you must not
019:         *     claim that you wrote the original software. If you use this software in
020:         *     a product, an acknowledgment in the product documentation would be
021:         *     appreciated but is not required.
022:         *
023:         *  2. Altered source versions must be plainly marked as such, and must not be
024:         *     misrepresented as being the original software.
025:         *
026:         *  3. This notice may not be removed or altered from any source distribution.
027:         */
028:
029:        package net.n3.nanoxml;
030:
031:        import java.io.Reader;
032:
033:        /**
034:         * NanoXML uses IXMLBuilder to construct the XML data structure it retrieved from its data source.
035:         * You can supply your own builder or you can use the default builder of NanoXML.
036:         * 
037:         * @see net.n3.nanoxml.IXMLParser
038:         * 
039:         * @author Marc De Scheemaecker
040:         * @version $Name$, $Revision: 1421 $
041:         */
042:        public interface IXMLBuilder {
043:
044:            /**
045:             * This method is called before the parser starts processing its input.
046:             * 
047:             * @param systemID the system ID of the XML data source
048:             * @param lineNr the line on which the parsing starts
049:             * 
050:             * @throws java.lang.Exception If an exception occurred while processing the event.
051:             */
052:            public void startBuilding(String systemID, int lineNr)
053:                    throws Exception;
054:
055:            /**
056:             * This method is called when a processing instruction is encountered. PIs with target "xml" are
057:             * handled by the parser.
058:             * 
059:             * @param target the PI target
060:             * @param reader to read the data from the PI
061:             * 
062:             * @throws java.lang.Exception If an exception occurred while processing the event.
063:             */
064:            public void newProcessingInstruction(String target, Reader reader)
065:                    throws Exception;
066:
067:            /**
068:             * This method is called when a new XML element is encountered.
069:             * 
070:             * @see #endElement
071:             * 
072:             * @param name the name of the element
073:             * @param nsPrefix the prefix used to identify the namespace
074:             * @param nsSystemID the system ID associated with the namespace
075:             * @param systemID the system ID of the XML data source
076:             * @param lineNr the line in the source where the element starts
077:             * 
078:             * @throws java.lang.Exception If an exception occurred while processing the event.
079:             */
080:            public void startElement(String name, String nsPrefix,
081:                    String nsSystemID, String systemID, int lineNr)
082:                    throws Exception;
083:
084:            /**
085:             * This method is called when a new attribute of an XML element is encountered.
086:             * 
087:             * @param key the key (name) of the attribute
088:             * @param nsPrefix the prefix used to identify the namespace
089:             * @param nsSystemID the system ID associated with the namespace
090:             * @param value the value of the attribute
091:             * @param type the type of the attribute ("CDATA" if unknown)
092:             * 
093:             * @throws java.lang.Exception If an exception occurred while processing the event.
094:             */
095:            public void addAttribute(String key, String nsPrefix,
096:                    String nsSystemID, String value, String type)
097:                    throws Exception;
098:
099:            /**
100:             * This method is called when the attributes of an XML element have been processed.
101:             * 
102:             * @see #startElement
103:             * @see #addAttribute
104:             * 
105:             * @param name the name of the element
106:             * @param nsPrefix the prefix used to identify the namespace
107:             * @param nsSystemID the system ID associated with the namespace
108:             * 
109:             * @throws java.lang.Exception If an exception occurred while processing the event.
110:             */
111:            public void elementAttributesProcessed(String name,
112:                    String nsPrefix, String nsSystemID) throws Exception;
113:
114:            /**
115:             * This method is called when the end of an XML elemnt is encountered.
116:             * 
117:             * @see #startElement
118:             * 
119:             * @param name the name of the element
120:             * @param nsPrefix the prefix used to identify the namespace
121:             * @param nsSystemID the system ID associated with the namespace
122:             * 
123:             * @throws java.lang.Exception If an exception occurred while processing the event.
124:             */
125:            public void endElement(String name, String nsPrefix,
126:                    String nsSystemID) throws Exception;
127:
128:            /**
129:             * This method is called when a PCDATA element is encountered. A Java reader is supplied from
130:             * which you can read the data. The reader will only read the data of the element. You don't
131:             * need to check for boundaries. If you don't read the full element, the rest of the data is
132:             * skipped. You also don't have to care about entities; they are resolved by the parser.
133:             * 
134:             * @param reader the Java reader from which you can retrieve the data
135:             * @param systemID the system ID of the XML data source
136:             * @param lineNr the line in the source where the element starts
137:             * 
138:             * @throws java.lang.Exception If an exception occurred while processing the event.
139:             */
140:            public void addPCData(Reader reader, String systemID, int lineNr)
141:                    throws Exception;
142:
143:            /**
144:             * Returns the result of the building process. This method is called just before the parse()
145:             * method of IXMLParser returns.
146:             * 
147:             * @see net.n3.nanoxml.IXMLParser#parse
148:             * 
149:             * @return the result of the building process.
150:             * 
151:             * @throws java.lang.Exception If an exception occurred while processing the event.
152:             */
153:            public Object getResult() throws Exception;
154:
155:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.