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 Object

Utility class to instnatiate IParameter instnaces from their XML serialization

Author:
gpapanikos

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

Constructor Detail

ParameterFactory

public ParameterFactory()
Method Detail

GetParameter

public static IParameter GetParameter(String xml)
                               throws 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:
Exception - the deserialization could not be performed

GetParameter

public static IParameter GetParameter(Element element)
                               throws 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:
Exception - the deserialization could not be performed


Copyright © 2013. All Rights Reserved.