com.openharbor.beck.get
Class NamedMemberGetter

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

public class NamedMemberGetter
extends DefaultGetter

Gets a named member of a heterogeneous collection (typically a Map).


Field Summary
 
Fields inherited from class com.openharbor.beck.get.DefaultGetter
log
 
Constructor Summary
NamedMemberGetter(java.lang.String name, java.lang.Object member)
           
 
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

NamedMemberGetter

public NamedMemberGetter(java.lang.String name,
                         java.lang.Object member)
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.