org.smartcomps.twister.common.configuration
Class XMLConfigurationReader

java.lang.Object
  |
  +--org.smartcomps.twister.common.configuration.XMLConfigurationReader
Direct Known Subclasses:
CommonConfiguration, DeployerConfiguration, EngineConfiguration

public class XMLConfigurationReader
extends java.lang.Object

Read the XML configuration file and keeps it in memory to be queried easily later on.


Constructor Summary
XMLConfigurationReader()
           
 
Method Summary
protected static java.lang.String getAttributeValue(java.lang.String path, java.lang.String attributeName)
           
protected static java.lang.String getAttributeValue(java.lang.String path, java.lang.String whereAttrName, java.lang.String whereAttrValue, java.lang.String attributeName)
           
protected static java.util.Map getAttributeValues(java.lang.String path, java.lang.String keyAttribute, java.lang.String valAttribute)
           
protected static java.lang.String getNodeValue(java.lang.String path)
           
protected static java.util.List getNodeValues(java.lang.String path)
           
static void loadConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLConfigurationReader

public XMLConfigurationReader()
Method Detail

loadConfiguration

public static void loadConfiguration()
                              throws ConfigurationException
ConfigurationException

getNodeValue

protected static java.lang.String getNodeValue(java.lang.String path)

getNodeValues

protected static java.util.List getNodeValues(java.lang.String path)

getAttributeValue

protected static java.lang.String getAttributeValue(java.lang.String path,
                                                    java.lang.String attributeName)

getAttributeValue

protected static java.lang.String getAttributeValue(java.lang.String path,
                                                    java.lang.String whereAttrName,
                                                    java.lang.String whereAttrValue,
                                                    java.lang.String attributeName)

getAttributeValues

protected static java.util.Map getAttributeValues(java.lang.String path,
                                                  java.lang.String keyAttribute,
                                                  java.lang.String valAttribute)


Copyright © 2003 SmartComps. All Rights Reserved.