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 caseConstructor 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
ContinueProcessingException s and throw a WrapperException with a LinkedHashMap of the Transformer that caused and the particular Exception |
void |
setCollectExceptions(boolean collectExceptions)
If true will collect
ContinueProcessingException s 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, wait
apply
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public void setTransformerMap(Map<Object,org.apache.commons.collections.Transformer> transformerMap)
public boolean isCollectExceptions()
ContinueProcessingException
s and throw a WrapperException
with a LinkedHashMap
of the Transformer
that caused and the particular Exception
public void setCollectExceptions(boolean collectExceptions)
ContinueProcessingException
s and throw a WrapperException
with a LinkedHashMap
of the Transformer
that caused and the particular Exception
Copyright © 2018. All rights reserved.