public class FieldAccessor<T,V> extends Object
Modifier and Type | Field and Description |
---|---|
protected Class<T> |
clazz |
protected Field |
field |
protected Method |
getMethod |
protected Method |
setMethod |
Constructor and Description |
---|
FieldAccessor(Class<T> clazz,
Field field)
Constructor for a Field Accessor.
|
Modifier and Type | Method and Description |
---|---|
Class<T> |
getClazz() |
Field |
getField() |
Method |
getGetMethod() |
Method |
getSetMethod() |
V |
getValue(T object)
Return the value of the object
|
protected void |
init(Field field,
Class<T> clazz) |
void |
setValue(T object,
V value)
Set's the value of the object
|
protected Field field
protected Method getMethod
protected Method setMethod
public void setValue(T object, V value)
object
- value
- public Field getField()
public Method getGetMethod()
public Method getSetMethod()
protected void init(Field field, Class<T> clazz) throws IntrospectionException
IntrospectionException
Copyright © 2016. All rights reserved.