edu.ntnu.ecosim.basicfunctionality
Class XMLConfigFile

java.lang.Object
  extended by edu.ntnu.ecosim.basicfunctionality.XMLConfigFile

public class XMLConfigFile
extends java.lang.Object

A reader and writer of the xml configuration file


Constructor Summary
XMLConfigFile()
          The constructor
 
Method Summary
 long getLastModified(java.lang.String moduleName)
          Method used to check whether the file is changed during program execution.
 org.w3c.dom.Document readConfFile(java.lang.String moduleName)
          Method to read from configuration file
 void setConfigPath(java.lang.String path)
          Setting where the config is to be read from
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLConfigFile

public XMLConfigFile()
The constructor

Method Detail

readConfFile

public org.w3c.dom.Document readConfFile(java.lang.String moduleName)
Method to read from configuration file

Parameters:
moduleName - name of module
Returns:
XML Document representing the properties

getLastModified

public long getLastModified(java.lang.String moduleName)
Method used to check whether the file is changed during program execution.

Parameters:
moduleName - name of the module
Returns:
The last time the configuration file was changed

setConfigPath

public void setConfigPath(java.lang.String path)
Setting where the config is to be read from

Parameters:
path - File path of configuration file