public class ObjectToString extends AbstractTransformer implements DiscoverableTransformer
ObjectToString transformer is useful for debugging. It will return
human-readable output for various kinds of objects. Right now, it is just coded to
handle Map and Collection objects. Others will be added.| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_BUFFER_SIZE |
DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypesDEFAULT_PRIORITY_WEIGHTING, MAX_PRIORITY_WEIGHTING, MIN_PRIORITY_WEIGHTINGPHASE_NAME| Constructor and Description |
|---|
ObjectToString() |
| Modifier and Type | Method and Description |
|---|---|
Object |
doTransform(Object src,
String encoding) |
int |
getPriorityWeighting()
If 2 or more discoverable transformers are equal, this value can be used to select the correct one
|
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, unregisterSourceTypeprotected static final int DEFAULT_BUFFER_SIZE
public Object doTransform(Object src, String encoding) throws TransformerException
doTransform in class AbstractTransformerTransformerExceptionpublic 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.