public class HierarchicalConfigurationXMLReader extends ConfigurationXMLReader
A specialized SAX2 XML parser that "parses" hierarchical configuration objects.
This class mimics to be a SAX conform XML parser. Instead of parsing
XML documents it processes a Configuration object and
generates SAX events for the single properties defined there. This enables
the whole world of XML processing for configuration objects.
The HierarchicalConfiguration object to be parsed can be
specified using a constructor or the setConfiguration() method.
This object will be processed by the parse() methods. Note
that these methods ignore their argument.
NS_URI| Constructor and Description |
|---|
HierarchicalConfigurationXMLReader()
Creates a new instance of
HierarchicalConfigurationXMLReader. |
HierarchicalConfigurationXMLReader(HierarchicalConfiguration config)
Creates a new instance of
HierarchicalConfigurationXMLReader and
sets the configuration to be parsed. |
| Modifier and Type | Method and Description |
|---|---|
HierarchicalConfiguration |
getConfiguration()
Returns the configuration object to be parsed.
|
Configuration |
getParsedConfiguration()
Returns the configuration object to be processed.
|
protected void |
processKeys()
Processes the actual configuration object to generate SAX parsing events.
|
void |
setConfiguration(HierarchicalConfiguration config)
Sets the configuration object to be parsed.
|
fireCharacters, fireElementEnd, fireElementStart, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getException, getFeature, getProperty, getRootName, parse, parse, parseConfiguration, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, setRootNamepublic HierarchicalConfigurationXMLReader()
HierarchicalConfigurationXMLReader.public HierarchicalConfigurationXMLReader(HierarchicalConfiguration config)
HierarchicalConfigurationXMLReader and
sets the configuration to be parsed.config - the configuration objectpublic HierarchicalConfiguration getConfiguration()
public void setConfiguration(HierarchicalConfiguration config)
config - the configuration object to be parsedpublic Configuration getParsedConfiguration()
getParsedConfiguration in class ConfigurationXMLReaderprotected void processKeys()
processKeys in class ConfigurationXMLReaderCopyright © 2001–2013 The Apache Software Foundation. All rights reserved.