net.sf.doolin.oxml
Class OXMLFactory

java.lang.Object
  extended by net.sf.doolin.oxml.OXMLFactory

public class OXMLFactory
extends Object

Creates objects from instance definitions.

Author:
Damien Coraboeuf

Method Summary
<T> T
create(Element e)
          Creates an instance from a definition, using the class attribute and a list of param children as properties.
static OXMLFactory getInstance()
          Get the instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static OXMLFactory getInstance()
Get the instance

Returns:
Factory to be used

create

public <T> T create(Element e)
         throws IOException
Creates an instance from a definition, using the class attribute and a list of param children as properties.

Type Parameters:
T - Expected type
Parameters:
e - Definition
Returns:
Instance
Throws:
IOException - If the element cannot be created


Copyright © 2011. All Rights Reserved.