|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectAccessor
An ObjectAccessor
provides access to an object (i.e. creates it) and to its fields (retrieval and
setting of field values).
Method Summary | |
---|---|
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. |
Method Detail |
---|
Object createObject()
ObjectAccessor
was created for.
Object getValue(Object object, String fieldName)
fieldName
of the given object.
object
- the objectfieldName
- the field name
void setValue(Object object, String fieldName, Object value)
fieldName
of the given object.
object
- the objectfieldName
- the field namevalue
- the field value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |