com.openharbor.beck.get
Interface Getter

All Known Implementing Classes:
DefaultGetter

public interface Getter

A relationship from one object to another, with an optional relationship name. A getter is re-entrant; that is, a single Getter instance may be used to traverse from multiple parent objects to their children, re-entrantly.


Method Summary
 java.lang.Class getClass(java.lang.Object parent)
           
 java.lang.String getName(java.lang.Class sourceClass)
           
 java.lang.Object getValue(java.lang.Object parent)
           
 

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

getClass

public java.lang.Class getClass(java.lang.Object parent)
Returns:
the expected Class of any object returned from getValue(parent).

getValue

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