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