org.apache.avalon.framework.configuration
Class SAXConfigurationHandler
DefaultHandlerorg.apache.avalon.framework.configuration.SAXConfigurationHandler
- ErrorHandler
public class SAXConfigurationHandler
extends DefaultHandler
implements ErrorHandler
A SAXConfigurationHandler helps build Configurations out of sax events.
CVS $Revision: 1.32 $ $Date: 2004/02/11 14:34:26 $ void | characters(char[] ch, int start, int end)- Handling hook for character data.
|
void | clear()- Clears all data from this configuration handler.
|
protected DefaultConfiguration | createConfiguration(String localName, String location)- Create a new
DefaultConfiguration with the specified
local name and location.
|
void | endElement(String namespaceURI, String localName, String rawName)- Handling hook for finishing parsing of an element.
|
void | error(SAXParseException exception)- This just throws an exception on a parse error.
|
void | fatalError(SAXParseException exception)- This just throws an exception on a parse error.
|
Configuration | getConfiguration()- Get the configuration object that was built.
|
protected String | getLocationString()- Returns a string showing the current system ID, line number and column number.
|
void | setDocumentLocator(Locator locator)- Set the document
Locator to use.
|
void | startElement(String namespaceURI, String localName, String rawName, Attributes attributes)- Handling hook for starting parsing of an element.
|
void | warning(SAXParseException exception)- This just throws an exception on a parse error.
|
characters
public void characters(char[] ch,
int start,
int end)
throws SAXException Handling hook for character data.
ch - a char[] of datastart - offset in the character array from which to start readingend - length of character data
clear
public void clear()
Clears all data from this configuration handler.
createConfiguration
protected DefaultConfiguration createConfiguration(String localName,
String location) Create a new DefaultConfiguration with the specified
local name and location.
localName - a String valuelocation - a String value
- a
DefaultConfiguration value
endElement
public void endElement(String namespaceURI,
String localName,
String rawName)
throws SAXException Handling hook for finishing parsing of an element.
namespaceURI - a String valuelocalName - a String valuerawName - a String value
error
public void error(SAXParseException exception)
throws SAXException This just throws an exception on a parse error.
exception - the parse error
fatalError
public void fatalError(SAXParseException exception)
throws SAXException This just throws an exception on a parse error.
exception - the parse error
getConfiguration
public Configuration getConfiguration()
Get the configuration object that was built.
getLocationString
protected String getLocationString()
Returns a string showing the current system ID, line number and column number.
setDocumentLocator
public void setDocumentLocator(Locator locator)
Set the document Locator to use.
locator - a Locator value
startElement
public void startElement(String namespaceURI,
String localName,
String rawName,
Attributes attributes)
throws SAXException Handling hook for starting parsing of an element.
namespaceURI - a String valuelocalName - a String valuerawName - a String valueattributes - an Attributes value
warning
public void warning(SAXParseException exception)
throws SAXException This just throws an exception on a parse error.
exception - the parse error