public class MapTransformer extends Object implements FunctionTransformer
Map and apply Transformer that matches each Key. The result is the map with the values transformed.
TODO: Add unit test case| Constructor and Description |
|---|
MapTransformer() |
MapTransformer(Map<Object,org.apache.commons.collections.Transformer> transformerMap) |
| Modifier and Type | Method and Description |
|---|---|
Map<Object,org.apache.commons.collections.Transformer> |
getTransformerMap() |
boolean |
isCollectExceptions()
If true will collect
ContinueProcessingExceptions and throw a WrapperException with a LinkedHashMap of the Transformer that caused and the particular Exception |
void |
setCollectExceptions(boolean collectExceptions)
If true will collect
ContinueProcessingExceptions and throw a WrapperException with a LinkedHashMap of the Transformer that caused and the particular Exception |
void |
setTransformerMap(Map<Object,org.apache.commons.collections.Transformer> transformerMap) |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic void setTransformerMap(Map<Object,org.apache.commons.collections.Transformer> transformerMap)
public boolean isCollectExceptions()
ContinueProcessingExceptions and throw a WrapperException with a LinkedHashMap of the Transformer that caused and the particular Exceptionpublic void setCollectExceptions(boolean collectExceptions)
ContinueProcessingExceptions and throw a WrapperException with a LinkedHashMap of the Transformer that caused and the particular ExceptionCopyright © 2018. All rights reserved.