public interface ObjectAccessor
ObjectAccessor provides access to an object (i.e. creates it) and to its fields (retrieval and
setting of field values).| Modifier and Type | Method and Description |
|---|---|
Object |
createObject()
Creates a new instance of the class this
ObjectAccessor was created for. |
Object |
getValue(Object object,
String fieldName)
Returns the value of the field with the name
fieldName of the given object. |
void |
setValue(Object object,
String fieldName,
Object value)
Sets the value of the field with the name
fieldName of the given object. |
Object createObject()
ObjectAccessor was created for.Object getValue(Object object, String fieldName)
fieldName of the given object.object - the objectfieldName - the field nameCopyright © 2014. All rights reserved.