org.mule.module.xml.transformer
Class XmlToXMLStreamReader

java.lang.Object
  extended by org.mule.transformer.AbstractTransformer
      extended by org.mule.module.xml.transformer.AbstractXmlTransformer
          extended by org.mule.module.xml.transformer.XmlToXMLStreamReader
All Implemented Interfaces:
Initialisable, NamedObject, BaseTransformer, DiscoverableTransformer, Transformer

public class XmlToXMLStreamReader
extends AbstractXmlTransformer
implements DiscoverableTransformer


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.module.xml.transformer.AbstractXmlTransformer
AbstractXmlTransformer.ResultHolder
 
Field Summary
 
Fields inherited from class org.mule.transformer.AbstractTransformer
DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes
 
Fields inherited from interface org.mule.api.transformer.DiscoverableTransformer
DEFAULT_PRIORITY_WEIGHTING, MAX_PRIORITY_WEIGHTING, MIN_PRIORITY_WEIGHTING
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
XmlToXMLStreamReader()
           
 
Method Summary
protected  Object doTransform(Object payload, String encoding)
           
 int getPriorityWeighting()
          If 2 or more discoverable transformers are equal, this value can be used to select the correct one
 boolean isReversible()
           
 void setPriorityWeighting(int priorityWeighting)
          If 2 or more discoverable transformers are equal, this value can be used to select the correct one
 void setReversible(boolean reversible)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlToXMLStreamReader

public XmlToXMLStreamReader()
Method Detail

doTransform

protected Object doTransform(Object payload,
                             String encoding)
                      throws TransformerException
Specified by:
doTransform in class AbstractTransformer
Throws:
TransformerException

isReversible

public boolean isReversible()

setReversible

public void setReversible(boolean reversible)

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.