org.eclipse.higgins.configuration.xml
Class ConfigurationHandler

java.lang.Object
  extended byorg.eclipse.higgins.configuration.xml.ConfigurationHandler
All Implemented Interfaces:
org.eclipse.higgins.configuration.api.IConfigurationHandler

public class ConfigurationHandler
extends Object
implements org.eclipse.higgins.configuration.api.IConfigurationHandler

Author:
mikemci at us dot ibm dot com

Constructor Summary
ConfigurationHandler()
          Constructor that initializes the class
 
Method Summary
 boolean configure(Map mapConfigurationSettings)
           
 boolean configure(org.apache.axiom.om.OMElement omConfiguration, Map mapConfigurationSettings)
           
 boolean configure(String strConfiguration, Map mapConfigurationSettings)
           
 Map getSettings()
           
static org.apache.axiom.om.OMElement omFromFile(String strFileName)
           
static org.apache.axiom.om.OMElement omFromStream(InputStream inputStream)
           
 void setConfigurationBase(String strBase)
           
 void setFileName(String strFile)
           
static org.apache.axiom.om.OMElement toOM(String strElement)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationHandler

public ConfigurationHandler()
Constructor that initializes the class

Method Detail

getSettings

public Map getSettings()
                throws Exception
Specified by:
getSettings in interface org.eclipse.higgins.configuration.api.IConfigurationHandler
Throws:
Exception

setConfigurationBase

public void setConfigurationBase(String strBase)
Specified by:
setConfigurationBase in interface org.eclipse.higgins.configuration.api.IConfigurationHandler

setFileName

public void setFileName(String strFile)

toOM

public static org.apache.axiom.om.OMElement toOM(String strElement)
                                          throws Exception
Throws:
Exception

omFromFile

public static org.apache.axiom.om.OMElement omFromFile(String strFileName)
                                                throws FileNotFoundException,
                                                       Exception
Throws:
FileNotFoundException
Exception

omFromStream

public static org.apache.axiom.om.OMElement omFromStream(InputStream inputStream)
                                                  throws FileNotFoundException,
                                                         Exception
Throws:
FileNotFoundException
Exception

configure

public boolean configure(Map mapConfigurationSettings)
                  throws Exception
Specified by:
configure in interface org.eclipse.higgins.configuration.api.IConfigurationHandler
Throws:
Exception

configure

public boolean configure(String strConfiguration,
                         Map mapConfigurationSettings)
                  throws Exception
Throws:
Exception

configure

public boolean configure(org.apache.axiom.om.OMElement omConfiguration,
                         Map mapConfigurationSettings)
                  throws Exception
Throws:
Exception