This configuration reader implementation maps a physical XML file
representation to a ConfigReader's tree representation. Users instantiate
an instance of XMLReader to read a XML configuration file and use the
ConfigElement and ConfigReader's interfaces to read the configuration data.
For e.g: To read the loglevel from XML file containing
getConfigurationElement(String elementName) This returns the configuration element value as a config element.
Parameters: elementName - - Configuration element name.
getConfigurationElementList(String elementName) This returns the configuration element value as a config element array.
Parameters: elementName - - Configuration element name.
getConfigurationElementList(Element base, String elementName) This returns the configuration element value as a config element array.
Parameters: base - is the base element from where the search is to begin. Parameters: elementName - - Configuration element name.
getConfigurationValueList(String elementName) This returns a configuration element values as a string array.
Parameters: elementName - - Configuration element name.
void
init(Document doc) Reads the configuration file and stores the content as a DOM object.
void
init(InputStream fileStream) Reads the input stream and stores the content as a DOM object.
This returns the configuration element value as a config element.
Parameters: elementName - - Configuration element name. the configuration element value as a config element.
This returns the configuration element value as a config element array.
Parameters: elementName - - Configuration element name. the configuration element values as a config element array.
This returns the configuration element value as a config element array.
Parameters: base - is the base element from where the search is to begin. Parameters: elementName - - Configuration element name. the configuration element values as a config element array.
This returns the configuration element value as a string. It returns the
first node value if there are more than one.
Parameters: elementName - - Configuration element name. the configuration element value as a string.
This returns a configuration element values as a string array.
Parameters: elementName - - Configuration element name. the configuration element values as a string array.
Reads the configuration file and stores the content as a DOM object.
Parameters: doc - - configuration file name. throws: JBIException - - if the reader cannot be initialized.