public class ObjectArrayToString extends AbstractTransformer implements DiscoverableTransformer
ObjectArrayToString transformer is the opposite of
StringToObjectArray - it simply converts Object[] to a String in which each
element is separated by a configurable delimiter (default is a space).DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypesDEFAULT_PRIORITY_WEIGHTING, MAX_PRIORITY_WEIGHTING, MIN_PRIORITY_WEIGHTINGPHASE_NAME| Constructor and Description |
|---|
ObjectArrayToString() |
| Modifier and Type | Method and Description |
|---|---|
Object |
doTransform(Object src,
String encoding) |
String |
getDelimiter() |
int |
getPriorityWeighting()
If 2 or more discoverable transformers are equal, this value can be used to select the correct one
|
void |
setDelimiter(String delimiter) |
void |
setPriorityWeighting(int priorityWeighting)
If 2 or more discoverable transformers are equal, this value can be used to select the correct one
|
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceTypepublic Object doTransform(Object src, String encoding) throws TransformerException
doTransform in class AbstractTransformerTransformerExceptionpublic String getDelimiter()
public void setDelimiter(String delimiter)
sets - the delimiterpublic int getPriorityWeighting()
DiscoverableTransformergetPriorityWeighting in interface DiscoverableTransformerDiscoverableTransformer.MIN_PRIORITY_WEIGHTING and DiscoverableTransformer.MAX_PRIORITY_WEIGHTING.public void setPriorityWeighting(int priorityWeighting)
DiscoverableTransformersetPriorityWeighting in interface DiscoverableTransformerpriorityWeighting - the priority weighting for this transformer. This is a value between
DiscoverableTransformer.MIN_PRIORITY_WEIGHTING and DiscoverableTransformer.MAX_PRIORITY_WEIGHTING.Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.