public class PojoFieldAccessor extends Object
Constructor and Description |
---|
PojoFieldAccessor(Field field)
Constructs object instance from Field, providing direct access to class member.
|
PojoFieldAccessor(PropertyDescriptor desc,
Field field)
Constructs object instance from Java Bean property descriptor, providing access to getter/setter.
|
Modifier and Type | Method and Description |
---|---|
Annotation |
getAnnotation(Class clazz)
Returns POJO field annotation.
|
Class |
getDeclaringClass()
Return declared class of field.
|
Class |
getFieldType()
Returns field type.
|
String |
getName()
Returns POJO field name.
|
Object |
getValue(Object obj)
Returns field value for the object instance.
|
boolean |
isReadOnly()
Indicates if it's read-only field.
|
void |
setValue(Object obj,
Object val)
Assigns value for the object field.
|
public PojoFieldAccessor(PropertyDescriptor desc, Field field)
desc
- Java Bean property descriptor.field
- object field associated with property descriptor.public PojoFieldAccessor(Field field)
field
- Field descriptor.public String getName()
public boolean isReadOnly()
public Annotation getAnnotation(Class clazz)
public Object getValue(Object obj)
obj
- object instance.public void setValue(Object obj, Object val)
obj
- object instance.val
- value to assign.public Class getFieldType()
public Class getDeclaringClass()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024