net.sf.doolin.oxml.adapter
Class AbstractOXMLInstanceFactory<T>

java.lang.Object
  extended by net.sf.doolin.oxml.adapter.AbstractOXMLInstanceFactory<T>
Type Parameters:
T - Type of the instance to create
All Implemented Interfaces:
OXMLInstanceFactory<T>
Direct Known Subclasses:
AbstractTextOXMLInstanceFactory

public abstract class AbstractOXMLInstanceFactory<T>
extends Object
implements OXMLInstanceFactory<T>

Creates an instance from the current node.

Author:
Damien Coraboeuf

Constructor Summary
AbstractOXMLInstanceFactory()
           
 
Method Summary
protected abstract  T createInstance(Element element, OXMLContext context)
          Creates the instance from the current element
 T createInstance(OXMLContext context)
          Creates an object from the context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOXMLInstanceFactory

public AbstractOXMLInstanceFactory()
Method Detail

createInstance

protected abstract T createInstance(Element element,
                                    OXMLContext context)
Creates the instance from the current element

Parameters:
element - Current element
context - Execution context
Returns:
Instance

createInstance

public T createInstance(OXMLContext context)
Description copied from interface: OXMLInstanceFactory
Creates an object from the context

Specified by:
createInstance in interface OXMLInstanceFactory<T>
Parameters:
context - Execution context
Returns:
Created instance


Copyright © 2011. All Rights Reserved.