org.ow2.petals.tools.webadmin.util
Class WebconsoleConfiguration

java.lang.Object
  extended by org.ow2.petals.tools.webadmin.util.WebconsoleConfiguration

public class WebconsoleConfiguration
extends java.lang.Object

Author:
mcarpentier

Constructor Summary
WebconsoleConfiguration(org.w3c.dom.Document doc)
           
 
Method Summary
 org.w3c.dom.Node getComponent(java.lang.String component)
           
 org.w3c.dom.Node getNodeFromProperty(java.lang.String component, java.lang.String nodeName, java.lang.String property, java.lang.String propertyValue)
           
 java.lang.String getProperty(java.lang.String component, java.lang.String property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebconsoleConfiguration

public WebconsoleConfiguration(org.w3c.dom.Document doc)
Method Detail

getComponent

public org.w3c.dom.Node getComponent(java.lang.String component)
                              throws WebConsoleConfigException
Throws:
WebConsoleConfigException

getProperty

public java.lang.String getProperty(java.lang.String component,
                                    java.lang.String property)
                             throws WebConsoleConfigException
Parameters:
the - component : datacollector-configuration,...
the - property to retrieve
Returns:
a Properties object containing all properties name and value
Throws:
java.lang.Exception - if XML document doesn't follow the associated DTD or if an error occured while parsing the configuration file
WebConsoleConfigException

getNodeFromProperty

public org.w3c.dom.Node getNodeFromProperty(java.lang.String component,
                                            java.lang.String nodeName,
                                            java.lang.String property,
                                            java.lang.String propertyValue)
                                     throws WebConsoleConfigException
Throws:
WebConsoleConfigException


Copyright © 2005-2008 OW2 Consortium. All Rights Reserved.