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.
NS_URI
Constructor and Description |
---|
BaseConfigurationXMLReader()
Creates a new instance of
BaseConfigurationXMLReader . |
BaseConfigurationXMLReader(Configuration conf)
Creates a new instance of
BaseConfigurationXMLReader and
sets the configuration object to be parsed. |
Modifier and Type | Method and Description |
---|---|
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.
|
fireCharacters, fireElementEnd, fireElementStart, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getException, getFeature, getProperty, getRootName, parse, parse, parseConfiguration, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty, setRootName
public BaseConfigurationXMLReader()
BaseConfigurationXMLReader
.public BaseConfigurationXMLReader(Configuration conf)
BaseConfigurationXMLReader
and
sets the configuration object to be parsed.conf
- the configuration to be parsedpublic Configuration getConfiguration()
public void setConfiguration(Configuration conf)
conf
- the configurationpublic Configuration getParsedConfiguration()
getParsedConfiguration
in class ConfigurationXMLReader
protected void processKeys()
HierarchicalConfigurationConverter
object to iterate over
all keys in the actual configuration and to generate corresponding SAX
events.processKeys
in class ConfigurationXMLReader
Copyright © 2018 JBoss by Red Hat. All rights reserved.