com.openharbor.beck.get
Class FieldGetter

java.lang.Object
  extended bycom.openharbor.beck.get.DefaultGetter
      extended bycom.openharbor.beck.get.FieldGetter
All Implemented Interfaces:
Getter

public class FieldGetter
extends DefaultGetter

Gets a field.


Field Summary
 
Fields inherited from class com.openharbor.beck.get.DefaultGetter
log
 
Constructor Summary
FieldGetter(java.lang.reflect.Field field)
           
 
Method Summary
 java.lang.String getName(java.lang.Class sourceClass)
           
 java.lang.Object getValue(java.lang.Object parent)
           
 
Methods inherited from class com.openharbor.beck.get.DefaultGetter
getClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldGetter

public FieldGetter(java.lang.reflect.Field field)
Method Detail

getName

public java.lang.String getName(java.lang.Class sourceClass)
Returns:
the name of the object in the context of its parent or null to indicate that the object is anonymous (e.g. a collection member).

getValue

public java.lang.Object getValue(java.lang.Object parent)
Returns:
the object to which this get refers.