public class FieldAttributeValueMutator extends AbstractAttributeValueMutator
Field of an object.| Modifier and Type | Field and Description |
|---|---|
private Field |
f
Field to operate on.
|
private boolean |
isFinal
Whether the field has a final modifier.
|
logger| Constructor and Description |
|---|
FieldAttributeValueMutator(ReflectionTranscoder transcoder,
Field field)
Creates a new field attribute value mutator.
|
FieldAttributeValueMutator(String name,
boolean binary,
SortBehavior sortBehavior,
ReflectionTranscoder transcoder,
Field field)
Creates a new field attribute value mutator.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<byte[]> |
getBinaryValues(Object object)
Returns the binary values of the attribute.
|
Collection<String> |
getStringValues(Object object)
Returns the string values of the attribute.
|
void |
setBinaryValues(Object object,
Collection<byte[]> values)
Sets the binary values of the attribute.
|
void |
setStringValues(Object object,
Collection<String> values)
Sets the string values of the attribute.
|
String |
toString() |
getName, getReflectionTranscoder, getSortBehavior, isBinaryprivate final Field f
private final boolean isFinal
public FieldAttributeValueMutator(ReflectionTranscoder transcoder, Field field)
transcoder - for mutating the fieldfield - to mutatepublic FieldAttributeValueMutator(String name, boolean binary, SortBehavior sortBehavior, ReflectionTranscoder transcoder, Field field)
name - of the attributebinary - whether the attribute is binarysortBehavior - sort behavior of the attributetranscoder - to mutate the fieldfield - to mutatepublic Collection<String> getStringValues(Object object)
AttributeValueMutatorobject - containing attribute valuespublic Collection<byte[]> getBinaryValues(Object object)
AttributeValueMutatorobject - containing attribute valuespublic void setStringValues(Object object, Collection<String> values)
AttributeValueMutatorobject - to set values onvalues - to setpublic void setBinaryValues(Object object, Collection<byte[]> values)
AttributeValueMutatorobject - to set values onvalues - to setCopyright © 2003-2019 Virginia Tech. All Rights Reserved.