Statistics
| Revision:

root / import / ext3D / trunk / install-extension3d / IzPack / src / lib / net / n3 / nanoxml / IXMLParser.java @ 15280

History | View | Annotate | Download (3.07 KB)

1
/* IXMLParser.java                                                 NanoXML/Java
2
 *
3
 * $Revision: 1.1 $
4
 * $Date: 2006/06/14 07:29:07 $
5
 * $Name:  $
6
 *
7
 * This file is part of NanoXML 2 for Java.
8
 * Copyright (C) 2001 Marc De Scheemaecker, All Rights Reserved.
9
 *
10
 * This software is provided 'as-is', without any express or implied warranty.
11
 * In no event will the authors be held liable for any damages arising from the
12
 * use of this software.
13
 *
14
 * Permission is granted to anyone to use this software for any purpose,
15
 * including commercial applications, and to alter it and redistribute it
16
 * freely, subject to the following restrictions:
17
 *
18
 *  1. The origin of this software must not be misrepresented; you must not
19
 *     claim that you wrote the original software. If you use this software in
20
 *     a product, an acknowledgment in the product documentation would be
21
 *     appreciated but is not required.
22
 *
23
 *  2. Altered source versions must be plainly marked as such, and must not be
24
 *     misrepresented as being the original software.
25
 *
26
 *  3. This notice may not be removed or altered from any source distribution.
27
 */
28

    
29
package net.n3.nanoxml;
30

    
31

    
32

    
33

    
34
/**
35
 * IXMLParser is the core parser of NanoXML.
36
 *
37
 * @author Marc De Scheemaecker
38
 * @version $Name:  $, $Revision: 1.1 $
39
 */
40
public interface IXMLParser
41
{
42

    
43
    /**
44
     * Sets the reader from which the parser retrieves its data.
45
     *
46
     * @param reader the reader
47
     */
48
    public void setReader(IXMLReader reader);
49
    
50
    
51
    /**
52
     * Returns the reader from which the parser retrieves its data.
53
     *
54
     * @return the reader
55
     */
56
    public IXMLReader getReader();
57
    
58
    
59
    /**
60
     * Sets the builder which creates the logical structure of the XML data.
61
     *
62
     * @param builder the builder
63
     */
64
    public void setBuilder(IXMLBuilder builder);
65
    
66
    
67
    /**
68
     * Returns the builder which creates the logical structure of the XML data.
69
     *
70
     * @return the builder
71
     */
72
    public IXMLBuilder getBuilder();
73
    
74
    
75
    /**
76
     * Sets the validator that validates the XML data.
77
     *
78
     * @param validator the validator
79
     */
80
    public void setValidator(IXMLValidator validator);
81
    
82
    
83
    /**
84
     * Returns the validator that validates the XML data.
85
     *
86
     * @return the validator
87
     */
88
    public IXMLValidator getValidator();
89
    
90
    
91
    /**
92
     * Sets the entity resolver.
93
     *
94
     * @param resolver the non-null resolver
95
     */
96
    public void setResolver(IXMLEntityResolver resolver);
97
    
98
    
99
    /**
100
     * Returns the entity resolver.
101
     *
102
     * @return the non-null resolver
103
     */
104
    public IXMLEntityResolver getResolver();
105
    
106
    
107
    /**
108
     * Parses the data and lets the builder create the logical data structure.
109
     *
110
     * @return the logical structure built by the builder
111
     *
112
     * @throws net.n3.nanoxml.XMLException
113
     *                if an error occurred reading or parsing the data
114
     */
115
    public Object parse()
116
        throws XMLException;
117

    
118
}