org.mule.api.transformer
Interface Converter

All Superinterfaces:
Disposable, EndpointAware, Initialisable, MessageProcessor, MuleContextAware, NameableObject, NamedObject, Transformer
All Known Subinterfaces:
DiscoverableTransformer
All Known Implementing Classes:
AbstractDiscoverableTransformer, AbstractJmsTransformer, AbstractJsonTransformer, AnnotatedTransformerProxy, BaseToOutputHandler, BeanToMap, ByteArrayToMuleMessage, ByteArrayToObject, ByteArrayToSerializable, CompositeConverter, DataHandlerToInputStreamTransformer, DomDocumentToXml, EmailMessageToString, FileToByteArray, FileToString, HttpRequestToByteArray, HttpRequestToInputStream, JMSMessageToObject, JsonToObject, MapToBean, NumberToString, ObjectArrayToString, ObjectToByteArray, ObjectToFeed, ObjectToInputStream, ObjectToJMSMessage, ObjectToJson, ObjectToOutputHandler, ObjectToRssFeed, ObjectToString, PropertyEditorTextToValueTransformer, PropertyEditorValueToTextTransformer, SerializableToByteArray, ServletRequestToOutputHandler, StringToBoolean, StringToNumber, XmlToDomDocument, XmlToOutputHandler, XmlToXMLStreamReader

public interface Converter
extends Transformer

Defines a Transformer that is a data type converters, ie: convert data from a type to another without modifying the meaning of the data.


Field Summary
static int DEFAULT_PRIORITY_WEIGHTING
           
static int MAX_PRIORITY_WEIGHTING
           
static int MIN_PRIORITY_WEIGHTING
           
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Method Summary
 int getPriorityWeighting()
          If two or more discoverable transformers are equal, this value can be used to select the correct one
 void setPriorityWeighting(int weighting)
          If 2 or more discoverable transformers are equal, this value can be used to select the correct one
 
Methods inherited from interface org.mule.api.transformer.Transformer
getEncoding, getEndpoint, getMimeType, getReturnClass, getReturnDataType, getSourceDataTypes, getSourceTypes, isAcceptNull, isIgnoreBadInput, isSourceDataTypeSupported, isSourceTypeSupported, setReturnClass, setReturnDataType, transform, transform
 
Methods inherited from interface org.mule.api.processor.MessageProcessor
process
 
Methods inherited from interface org.mule.api.lifecycle.Initialisable
initialise
 
Methods inherited from interface org.mule.api.lifecycle.Disposable
dispose
 
Methods inherited from interface org.mule.api.NameableObject
setName
 
Methods inherited from interface org.mule.api.NamedObject
getName
 
Methods inherited from interface org.mule.api.context.MuleContextAware
setMuleContext
 
Methods inherited from interface org.mule.endpoint.EndpointAware
setEndpoint
 

Field Detail

MAX_PRIORITY_WEIGHTING

static final int MAX_PRIORITY_WEIGHTING
See Also:
Constant Field Values

MIN_PRIORITY_WEIGHTING

static final int MIN_PRIORITY_WEIGHTING
See Also:
Constant Field Values

DEFAULT_PRIORITY_WEIGHTING

static final int DEFAULT_PRIORITY_WEIGHTING
See Also:
Constant Field Values
Method Detail

getPriorityWeighting

int getPriorityWeighting()
If two or more discoverable transformers are equal, this value can be used to select the correct one

Returns:
the priority weighting for this transformer. This is a value between MIN_PRIORITY_WEIGHTING and MAX_PRIORITY_WEIGHTING.

setPriorityWeighting

void setPriorityWeighting(int weighting)
If 2 or more discoverable transformers are equal, this value can be used to select the correct one

Parameters:
weighting - the priority weighting for this transformer. This is a value between MIN_PRIORITY_WEIGHTING and MAX_PRIORITY_WEIGHTING.


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.