com.openharbor.beck.get
Class PropertyGetter

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

public class PropertyGetter
extends DefaultGetter

Gets the value of a JavaBean property.


Field Summary
protected  java.lang.String name
           
protected static java.lang.Object[] NO_PARAMETERS
           
 
Fields inherited from class com.openharbor.beck.get.DefaultGetter
log
 
Constructor Summary
PropertyGetter(java.lang.reflect.Method method)
           
 
Method Summary
 java.lang.Class getClass(java.lang.Object parent)
           
 java.lang.String getName(java.lang.Class sourceClass)
           
static java.lang.String getPropertyName(java.lang.reflect.Method method)
           
 java.lang.Object getValue(java.lang.Object source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

NO_PARAMETERS

protected static final java.lang.Object[] NO_PARAMETERS
Constructor Detail

PropertyGetter

public PropertyGetter(java.lang.reflect.Method method)
Method Detail

getPropertyName

public static java.lang.String getPropertyName(java.lang.reflect.Method method)

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).

getClass

public java.lang.Class getClass(java.lang.Object parent)
Specified by:
getClass in interface Getter
Overrides:
getClass in class DefaultGetter

getValue

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