org.mule.module.xml.transformer
Class DomDocumentToXml
java.lang.Object
org.mule.transformer.AbstractTransformer
org.mule.module.xml.transformer.AbstractXmlTransformer
org.mule.module.xml.transformer.DomDocumentToXml
- All Implemented Interfaces:
- Initialisable, NamedObject, BaseTransformer, DiscoverableTransformer, Transformer
public class DomDocumentToXml
- extends AbstractXmlTransformer
- implements DiscoverableTransformer
DomDocumentToXml
Transform a org.w3c.dom.Document to XML String
Methods inherited from class org.mule.module.xml.transformer.AbstractXmlTransformer |
convertToBytes, convertToText, convertToText, getOutputEncoding, getResultHolder, getXMLInputFactory, getXMLOutputFactory, isUseStaxSource, setOutputEncoding, setUseStaxSource, setXMLInputFactory, setXMLOutputFactory, writeToStream |
Methods inherited from class org.mule.transformer.AbstractTransformer |
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType |
DomDocumentToXml
public DomDocumentToXml()
doTransform
public Object doTransform(Object src,
String encoding)
throws TransformerException
- Specified by:
doTransform
in class AbstractTransformer
- Throws:
TransformerException
getPriorityWeighting
public int getPriorityWeighting()
- Description copied from interface:
DiscoverableTransformer
- If 2 or more discoverable transformers are equal, this value can be used to select the correct one
- Specified by:
getPriorityWeighting
in interface DiscoverableTransformer
- Returns:
- the priority weighting for this transformer. This is a value between
DiscoverableTransformer.MIN_PRIORITY_WEIGHTING
and DiscoverableTransformer.MAX_PRIORITY_WEIGHTING
.
setPriorityWeighting
public void setPriorityWeighting(int priorityWeighting)
- Description copied from interface:
DiscoverableTransformer
- If 2 or more discoverable transformers are equal, this value can be used to select the correct one
- Specified by:
setPriorityWeighting
in interface DiscoverableTransformer
- Parameters:
priorityWeighting
- the priority weighting for this transformer. This is a value between
DiscoverableTransformer.MIN_PRIORITY_WEIGHTING
and DiscoverableTransformer.MAX_PRIORITY_WEIGHTING
.
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.