org.apache.avalon.framework.configuration
public class SAXConfigurationHandler extends DefaultHandler implements ErrorHandler
Version: $Id: SAXConfigurationHandler.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
Field Summary | |
---|---|
static int | EXPECTED_DEPTH
Likely number of nested configuration items. |
Configuration | m_configuration |
ArrayList | m_elements |
Locator | m_locator |
BitSet | m_preserveSpace
Contains true at index n if space in the configuration with
depth n is to be preserved. |
ArrayList | m_values |
Method Summary | |
---|---|
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. |
Parameters: ch a char[]
of data start offset in the character array from which to start reading end length of character data
Throws: SAXException if an error occurs
DefaultConfiguration
with the specified
local name and location.
Parameters: localName a String
value location a String
value
Returns: a DefaultConfiguration
value
Parameters: namespaceURI a String
value localName a String
value rawName a String
value
Throws: SAXException if an error occurs
Parameters: exception the parse error
Throws: SAXException if an error occurs
Parameters: exception the parse error
Throws: SAXException if an error occurs
Returns: a Configuration
object
Returns: a String
value
Locator
to use.
Parameters: locator a Locator
value
Parameters: namespaceURI a String
value localName a String
value rawName a String
value attributes an Attributes
value
Throws: SAXException if an error occurs
Parameters: exception the parse error
Throws: SAXException if an error occurs