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

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

public abstract class AbstractTextOXMLInstanceFactory<T>
extends AbstractOXMLInstanceFactory<T>

Creates an instance from the text of the current element.

Author:
Damien Coraboeuf

Constructor Summary
AbstractTextOXMLInstanceFactory()
           
 
Method Summary
protected  T createInstance(Element element, OXMLContext context)
          Creates the instance from the current element
protected abstract  T createInstance(String text, OXMLContext context)
          Creates the instance from the current text
 
Methods inherited from class net.sf.doolin.oxml.adapter.AbstractOXMLInstanceFactory
createInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTextOXMLInstanceFactory

public AbstractTextOXMLInstanceFactory()
Method Detail

createInstance

protected T createInstance(Element element,
                           OXMLContext context)
Description copied from class: AbstractOXMLInstanceFactory
Creates the instance from the current element

Specified by:
createInstance in class AbstractOXMLInstanceFactory<T>
Parameters:
element - Current element
context - Execution context
Returns:
Instance

createInstance

protected abstract T createInstance(String text,
                                    OXMLContext context)
Creates the instance from the current text

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


Copyright © 2011. All Rights Reserved.