Package de.intarsys.tools.reflect
Interface IAccessSupport
-
public interface IAccessSupport
An object supporting reflective calls to its fields.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getValue(java.lang.String name)
Make a reflective get access to the fieldname
.java.lang.Object
setValue(java.lang.String name, java.lang.Object value)
Make a reflective set access to the fieldname
.
-
-
-
Method Detail
-
getValue
java.lang.Object getValue(java.lang.String name) throws FieldException
Make a reflective get access to the fieldname
.- Parameters:
name
- The name of the field to get.- Returns:
- The field value
- Throws:
FieldException
-
setValue
java.lang.Object setValue(java.lang.String name, java.lang.Object value) throws FieldException
Make a reflective set access to the fieldname
.- Parameters:
name
- The name of the field to get.value
- The new value for the field- Returns:
- The previous field value. This is an optional feature.
- Throws:
FieldException
-
-