org.apache.commons.configuration
public class BaseConfigurationXMLReader extends ConfigurationXMLReader
A specialized SAX2 XML parser that processes configuration objects.
This class mimics to be a SAX compliant XML parser. It is able to iterate
over the keys in a configuration object and to generate corresponding SAX
events. By registering a ContentHandler
at an instance
it is possible to perform XML processing on a configuration object.
Version: $Id: BaseConfigurationXMLReader.java 439648 2006-09-02 20:42:10Z oheger $
Nested Class Summary | |
---|---|
class | BaseConfigurationXMLReader.SAXConverter
An internally used helper class to iterate over all configuration keys
ant to generate corresponding SAX events.
|
Field Summary | |
---|---|
Configuration | config Stores the actual configuration. |
Constructor Summary | |
---|---|
BaseConfigurationXMLReader()
Creates a new instance of BaseConfigurationXMLReader . | |
BaseConfigurationXMLReader(Configuration conf)
Creates a new instance of BaseConfigurationXMLReader and
sets the configuration object to be parsed.
|
Method Summary | |
---|---|
Configuration | getConfiguration()
Returns the actual configuration to be processed.
|
Configuration | getParsedConfiguration()
Returns the configuration to be processed.
|
protected void | processKeys()
The main SAX event generation method. |
void | setConfiguration(Configuration conf)
Sets the configuration to be processed.
|
BaseConfigurationXMLReader
.BaseConfigurationXMLReader
and
sets the configuration object to be parsed.
Parameters: conf the configuration to be parsed
Returns: the actual configuration
Returns: the actual configuration
HierarchicalConfigurationConverter
object to iterate over
all keys in the actual configuration and to generate corresponding SAX
events.Parameters: conf the configuration