gr.uoa.di.madgik.commons.configuration.parameter
Class ParameterFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterFactory
public ParameterFactory()
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