A
- - Type of Attributepublic class ValueToAttributeTransformer<A extends Attribute> extends Object implements FunctionTransformer<Object,A>, Serializable
Attribute
for the input value.AttributesSetter}, {@link AttributesMapper}
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected String |
attributeName |
protected Class<A> |
attributeType |
Constructor and Description |
---|
ValueToAttributeTransformer() |
Modifier and Type | Method and Description |
---|---|
protected A |
getNewEntity() |
void |
setAttributeName(String attributeName)
Name of the attribute created by this transformer.
|
void |
setAttributeType(Class<A> attributeType)
Type of attribute created by this transformer.
|
Object |
transform(Object input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
protected String attributeName
protected A getNewEntity()
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public void setAttributeType(Class<A> attributeType)
attributeType
- - nullable falsepublic void setAttributeName(String attributeName)
attributeName
- - nullable falseCopyright © 2018. All rights reserved.