2016/05/28 - Apache Tuscany has been retired.
For more information, please explore the Attic.
org.apache.tuscany.sca.databinding.sdo2om
Class XMLDocument2OMElement
java.lang.Object
org.apache.tuscany.sca.databinding.impl.BaseTransformer<XMLDocument,OMElement>
org.apache.tuscany.sca.databinding.sdo2om.XMLDocument2OMElement
- All Implemented Interfaces:
- PullTransformer<XMLDocument,OMElement>, Transformer
public class XMLDocument2OMElement
- extends BaseTransformer<XMLDocument,OMElement>
- implements PullTransformer<XMLDocument,OMElement>
SDO XMLDocument --> AXIOM OMElement transformer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLDocument2OMElement
public XMLDocument2OMElement()
transform
public OMElement transform(XMLDocument source,
TransformationContext context)
- Description copied from interface:
PullTransformer
- Transform source data into the result type.
- Specified by:
transform
in interface PullTransformer<XMLDocument,OMElement>
- Parameters:
source
- The source datacontext
- The context for the transformation
- Returns:
- The transformed result
getSourceType
protected java.lang.Class<XMLDocument> getSourceType()
- Specified by:
getSourceType
in class BaseTransformer<XMLDocument,OMElement>
getTargetType
protected java.lang.Class<OMElement> getTargetType()
- Specified by:
getTargetType
in class BaseTransformer<XMLDocument,OMElement>
getWeight
public int getWeight()
- Description copied from interface:
Transformer
- Get the cost of the transformation. The weight can be used to choose the most efficient path if there are more
than one available from the source to the target.
- Specified by:
getWeight
in interface Transformer
- Overrides:
getWeight
in class BaseTransformer<XMLDocument,OMElement>
- Returns:
- An integer representing the cost of the transformation