Interface IXMLParser
- All Known Implementing Classes:
StdXMLParser
public interface IXMLParser
IXMLParser is the core parser of NanoXML.
- Version:
- $Name: RELEASE_2_2_1 $, $Revision: 1.3 $
- Author:
- Marc De Scheemaecker
-
Method Summary
Modifier and TypeMethodDescriptionReturns the builder which creates the logical structure of the XML data.Returns the reader from which the parser retrieves its data.Returns the entity resolver.Returns the validator that validates the XML data.parse()Parses the data and lets the builder create the logical data structure.voidsetBuilder(IXMLBuilder builder) Sets the builder which creates the logical structure of the XML data.voidsetReader(IXMLReader reader) Sets the reader from which the parser retrieves its data.voidsetResolver(IXMLEntityResolver resolver) Sets the entity resolver.voidsetValidator(IXMLValidator validator) Sets the validator that validates the XML data.
-
Method Details
-
setReader
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
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
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
Sets the entity resolver.- Parameters:
resolver- the non-null resolver.
-
getResolver
-
parse
Parses the data and lets the builder create the logical data structure. The method returns the result of getResult of the builder. if an error occurred while reading or parsing the data, the method may throw an XMLException.- Returns:
- the logical structure built by the builder.
- Throws:
XMLException- if an error occurred reading or parsing the data- See Also:
-