public interface IBeanFieldAccess
ExtensionHandlers to gain access to the field
values of their corresponding proxy bean. Only used in
ExtensionHandler context, for example in
ExtensionHandler.handleExtendedInterfaceCall(IBeanContext, IBeanFieldAccess, Object, java.lang.reflect.Method, Object[])| Modifier and Type | Method and Description |
|---|---|
Object |
getFieldValue(IBeanFieldMetaInfo fieldMeta)
Retrieves the value of a bean field.
|
Object |
getFieldValue(String fieldName)
Retrieves the value of a bean field.
|
void |
setFieldValue(IBeanFieldMetaInfo fieldMeta,
Object newValue)
Changes the value of a field to the specified value.
|
void |
setFieldValue(String fieldName,
Object newValue)
Changes the value of a field to the specified value.
|
void setFieldValue(String fieldName, Object newValue)
fieldName - specifies the field to change; must match to an existing field
namenewValue - the new value of the field; may be null. The type
of the given value must match the field type; types that can
be converted by Java implicit type conversion are allowed as
well, for example int instead of
long.IllegalArgumentException - if the fieldName does not existClassCastException - if the value type does not match the field typeObject getFieldValue(String fieldName)
fieldName - specifies the field to retrieve; must be an existing field
namenull.IllegalArgumentException - if the fieldName does not existvoid setFieldValue(IBeanFieldMetaInfo fieldMeta, Object newValue)
fieldMeta - specifies the field to change; must match to the respective
bean typenewValue - the new value of the field; may be null. The type
of the given value must match the field type; types that can
be converted by Java implicit type conversion are allowed as
well, for example int instead of
long.IllegalArgumentException - if fieldMeta does not belong to the bean classClassCastException - if the value type does not match the field typeObject getFieldValue(IBeanFieldMetaInfo fieldMeta)
fieldMeta - specifies the field to retrieve; must match to the respective
bean typenull.IllegalArgumentException - if the fieldName does not exist