com.openharbor.beck.get
Class PropertyGetter
java.lang.Object
com.openharbor.beck.get.DefaultGetter
com.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
|
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 |
name
protected java.lang.String name
NO_PARAMETERS
protected static final java.lang.Object[] NO_PARAMETERS
PropertyGetter
public PropertyGetter(java.lang.reflect.Method method)
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.