public class EntityChainAccessModifierTransformer extends Object implements FunctionTransformer
modifier
EntityChainAccessTransformer
in the sense that the transformation returns the original Entity but modifies the accessor
using the modifier
EntityChainAccessTransformer
Constructor and Description |
---|
EntityChainAccessModifierTransformer() |
EntityChainAccessModifierTransformer(String accessor,
org.apache.commons.collections.Transformer modifier) |
Modifier and Type | Method and Description |
---|---|
String |
getAccessor()
A string representation in a.b.c format; where any word represents a property as an entity or a map.
|
org.apache.commons.collections.Transformer |
getModifier()
Apply the modifier on the
accessor |
boolean |
isReturnNullOnException()
If true return null as output for this transformer on an Exception rather than throw an Exception
|
boolean |
isTransformInput()
if true will apply the
#transformer over the input rather than the property itself |
void |
setAccessor(String accessor)
A string representation in a.b.c format; where any word represents a property as an entity or a map.
|
void |
setModifier(org.apache.commons.collections.Transformer modifier)
Apply the modifier on the
accessor |
void |
setReturnNullOnException(boolean returnNullOnException)
If true return null as output for this transformer on an Exception rather than throw an Exception
|
void |
setTransformInput(boolean transformInput)
if true will apply the
#transformer over the input rather than the property itself |
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
public EntityChainAccessModifierTransformer()
public EntityChainAccessModifierTransformer(String accessor, org.apache.commons.collections.Transformer modifier)
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public String getAccessor()
public void setAccessor(String accessor)
public boolean isReturnNullOnException()
public void setReturnNullOnException(boolean returnNullOnException)
public org.apache.commons.collections.Transformer getModifier()
accessor
public void setModifier(org.apache.commons.collections.Transformer modifier)
accessor
public boolean isTransformInput()
#transformer
over the input rather than the property itselfpublic void setTransformInput(boolean transformInput)
#transformer
over the input rather than the property itselfCopyright © 2018. All rights reserved.