net.sf.doolin.oxml.adapter
Class AbstractSimpleOXMLAdapter<T>
java.lang.Object
net.sf.doolin.oxml.adapter.AbstractSimpleOXMLAdapter<T>
- Type Parameters:
T - Expected returned type
- All Implemented Interfaces:
- OXMLAdapter
- Direct Known Subclasses:
- DefaultOXMLAdapter, DimensionOXMLAdapter, EnumOXMLAdapter
public abstract class AbstractSimpleOXMLAdapter<T>
- extends Object
- implements OXMLAdapter
Adapter that converts the string value to an object.
- Author:
- Damien Coraboeuf
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSimpleOXMLAdapter
public AbstractSimpleOXMLAdapter()
adapt
public Object adapt(Node currentNode,
String path,
OXMLContext context)
- Description copied from interface:
OXMLAdapter
- Adapts a value taken from the XML to a value suitable in the object
model.
- Specified by:
adapt in interface OXMLAdapter
- Parameters:
currentNode - Current nodepath - XPath from the current nodecontext - Execution context
- Returns:
- Object value
adapt
protected abstract T adapt(String value,
OXMLContext context)
- Adapts a simple string to an object.
- Parameters:
value - String to adaptcontext - Execution context
- Returns:
- Created instance
Copyright © 2011. All Rights Reserved.