org.objectweb.petals.tools.webadmin.util
Class ConfigHelper

java.lang.Object
  extended by org.objectweb.petals.tools.webadmin.util.ConfigHelper

public class ConfigHelper
extends java.lang.Object

Author:
mcarpentier Load an XML configuration file

Constructor Summary
ConfigHelper()
           
 
Method Summary
static org.jdom.Document getConfig(java.lang.String XMLfile)
          Read the portal configuration Document
 boolean isValid(java.lang.String XMLfile)
          TODO : check if XML file is following its DTD ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigHelper

public ConfigHelper()
Method Detail

getConfig

public static org.jdom.Document getConfig(java.lang.String XMLfile)
                                   throws java.lang.Exception
Read the portal configuration Document

Returns:
the portal configuration Document
Throws:
ConfigHelperException - if configuration file was not found
org.jdom.JDOMException - if an error occured while parsing the configuration file
java.lang.Exception

isValid

public boolean isValid(java.lang.String XMLfile)
TODO : check if XML file is following its DTD ?



Copyright © 2005-2007 ObjectWeb Consortium. All Rights Reserved.