|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FieldValueAccessor
The FieldValueAccessor class is a base class that serves as the base for all FieldValueAccessors. FieldValueAccessors are used to set/get values on/from a target. The details of how to execute these operations is left to the subclasses and depends upon the type of the target object. For the most part, the subclass ReflectionFieldValueAccessor will do the job, but there may be cases where a more specific approach will yield more efficient, or more desired, results. Instances of FieldValueAccessor hold the (public) forClass variable so the FieldValue dispatching mechanism may quickly determine if the target's class and the FieldValueAccessor in question are compatible.
Method Summary | |
---|---|
java.lang.Class |
forClass()
Returns the Class for which the accessor applies. |
java.lang.String |
getFieldName()
Returns the fieldName which the accessor represents. |
boolean |
isApplicable(java.lang.Object target)
This method is called when determining if a cached FieldValueAccessor is applicable for the target object. |
Method Detail |
---|
java.lang.Class forClass()
java.lang.String getFieldName()
boolean isApplicable(java.lang.Object target)
target
- the object on which the receiver will operate
(for either the get or set operation) if this method returns true.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |