public class EntityPropertyTransformer extends Object implements FunctionTransformer
Transformer
over it.
It will apply the property back in the passed entity.
Transformer
Constructor and Description |
---|
EntityPropertyTransformer() |
EntityPropertyTransformer(org.apache.commons.collections.Transformer transformer,
String propertyName) |
Modifier and Type | Method and Description |
---|---|
String |
getPropertyName()
A property of the Entity to be transformed
|
org.apache.commons.collections.Transformer |
getTransformer()
The actual Transformer that will act upon the property defined by
propertyName |
boolean |
isTransformInput()
if true will apply the
transformer over the input rather than the property itself |
void |
setPropertyName(String propertyName)
A property of the Entity to be transformed
|
void |
setTransformer(org.apache.commons.collections.Transformer transformer)
The actual Transformer that will act upon the property defined by
propertyName |
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 EntityPropertyTransformer()
public EntityPropertyTransformer(org.apache.commons.collections.Transformer transformer, String propertyName)
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public String getPropertyName()
public void setPropertyName(String propertyName)
public org.apache.commons.collections.Transformer getTransformer()
propertyName
public void setTransformer(org.apache.commons.collections.Transformer transformer)
propertyName
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.