public class StringToObjectArray extends AbstractTransformer
StringToObjectArray
converts a String into an object array. This
is useful in certain situations, as when a string needs to be converted into
an Object[] in order to be passed to a SOAP service. The input String is parsed
into the array based on a configurable delimiter - default is a space.DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes
PHASE_NAME
Constructor and Description |
---|
StringToObjectArray() |
Modifier and Type | Method and Description |
---|---|
Object |
doTransform(Object src,
String encoding) |
String |
getDelimiter() |
void |
setDelimiter(String delimiter) |
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType
public Object doTransform(Object src, String encoding) throws TransformerException
doTransform
in class AbstractTransformer
TransformerException
public String getDelimiter()
public void setDelimiter(String delimiter)
delimiter
- the delimiterCopyright © 2003–2013 MuleSource, Inc.. All rights reserved.