2016/05/28 - Apache Tuscany has been retired.
For more information, please explore the Attic.
org.apache.tuscany.sca.databinding.axiom
Class OMElement2String
java.lang.Object
org.apache.tuscany.sca.databinding.impl.BaseTransformer<OMElement,java.lang.String>
org.apache.tuscany.sca.databinding.axiom.OMElement2String
- All Implemented Interfaces:
- PullTransformer<OMElement,java.lang.String>, Transformer
public class OMElement2String
- extends BaseTransformer<OMElement,java.lang.String>
- implements PullTransformer<OMElement,java.lang.String>
Transformer to convert data from an OMElement to XML String
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OMElement2String
public OMElement2String()
transform
public java.lang.String transform(OMElement source,
TransformationContext context)
- Description copied from interface:
PullTransformer
- Transform source data into the result type.
- Specified by:
transform in interface PullTransformer<OMElement,java.lang.String>
- Parameters:
source - The source datacontext - The context for the transformation
- Returns:
- The transformed result
getSourceType
protected java.lang.Class<OMElement> getSourceType()
- Specified by:
getSourceType in class BaseTransformer<OMElement,java.lang.String>
getTargetType
protected java.lang.Class<java.lang.String> getTargetType()
- Specified by:
getTargetType in class BaseTransformer<OMElement,java.lang.String>
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<OMElement,java.lang.String>
- Returns:
- An integer representing the cost of the transformation