gr.uoa.di.madgik.commons.configuration.parameter
Class ParameterFactory

java.lang.Object
  extended by gr.uoa.di.madgik.commons.configuration.parameter.ParameterFactory

public class ParameterFactory
extends java.lang.Object

Utility class to instnatiate IParameter instnaces from their XML serialization

Author:
gpapanikos

Constructor Summary
ParameterFactory()
           
 
Method Summary
static IParameter GetParameter(org.w3c.dom.Element element)
          Idetirfies the IParameter type that the XML subtree defines, instnatiates it and populates it
static IParameter GetParameter(java.lang.String xml)
          Idetirfies the IParameter type that the XML subtree defines, instnatiates it and populates it
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterFactory

public ParameterFactory()
Method Detail

GetParameter

public static IParameter GetParameter(java.lang.String xml)
                               throws java.lang.Exception
Idetirfies the IParameter type that the XML subtree defines, instnatiates it and populates it

Parameters:
xml - the XML subtree
Returns:
the paramter instnace
Throws:
java.lang.Exception - the deserialization could not be performed

GetParameter

public static IParameter GetParameter(org.w3c.dom.Element element)
                               throws java.lang.Exception
Idetirfies the IParameter type that the XML subtree defines, instnatiates it and populates it

Parameters:
element - the XML subtree
Returns:
the paramter instnace
Throws:
java.lang.Exception - the deserialization could not be performed