net.n3.nanoxml
Interface IXMLParser

All Known Implementing Classes:
StdXMLParser

public interface IXMLParser

IXMLParser is the core parser of NanoXML.

Version:
$Name$, $Revision: 2163 $
Author:
Marc De Scheemaecker

Method Summary
 IXMLBuilder getBuilder()
          Returns the builder which creates the logical structure of the XML data.
 IXMLReader getReader()
          Returns the reader from which the parser retrieves its data.
 IXMLEntityResolver getResolver()
          Returns the entity resolver.
 IXMLValidator getValidator()
          Returns the validator that validates the XML data.
 java.lang.Object parse()
          Parses the data and lets the builder create the logical data structure.
 void setBuilder(IXMLBuilder builder)
          Sets the builder which creates the logical structure of the XML data.
 void setReader(IXMLReader reader)
          Sets the reader from which the parser retrieves its data.
 void setResolver(IXMLEntityResolver resolver)
          Sets the entity resolver.
 void setValidator(IXMLValidator validator)
          Sets the validator that validates the XML data.
 

Method Detail

setReader

void setReader(IXMLReader reader)
Sets the reader from which the parser retrieves its data.

Parameters:
reader - the reader

getReader

IXMLReader getReader()
Returns the reader from which the parser retrieves its data.

Returns:
the reader

setBuilder

void setBuilder(IXMLBuilder builder)
Sets the builder which creates the logical structure of the XML data.

Parameters:
builder - the builder

getBuilder

IXMLBuilder getBuilder()
Returns the builder which creates the logical structure of the XML data.

Returns:
the builder

setValidator

void setValidator(IXMLValidator validator)
Sets the validator that validates the XML data.

Parameters:
validator - the validator

getValidator

IXMLValidator getValidator()
Returns the validator that validates the XML data.

Returns:
the validator

setResolver

void setResolver(IXMLEntityResolver resolver)
Sets the entity resolver.

Parameters:
resolver - the non-null resolver

getResolver

IXMLEntityResolver getResolver()
Returns the entity resolver.

Returns:
the non-null resolver

parse

java.lang.Object parse()
                       throws XMLException
Parses the data and lets the builder create the logical data structure.

Returns:
the logical structure built by the builder
Throws:
XMLException - if an error occurred reading or parsing the data