ReportMill 11 API

com.reportmill.base
Class RMKey.KeyAccessor

java.lang.Object
  extended by com.reportmill.base.RMKey.KeyAccessor
Enclosing class:
RMKey

public static class RMKey.KeyAccessor
extends java.lang.Object

KeyAccessor - enclosed class for actually getting/setting values for a given object (class) and key.


Field Summary
static int TYPE_FIELD
           
static int TYPE_GETSET
           
static int TYPE_LISTKEY
           
static int TYPE_MAP
           
static int TYPE_METHODS
           
static int TYPE_UNKNOWN
           
 
Constructor Summary
RMKey.KeyAccessor(java.lang.Object anObj, java.lang.String aKey)
          Creates a new getter for given object and key (caches type).
 
Method Summary
 java.lang.Object get(java.lang.Object anObj)
          This method actually retrieves a value for an object and a key.
 java.lang.reflect.Method getGetMethod()
          Searches for a get method for given key then caches and returns result.
 java.lang.reflect.Method getSetMethod()
          Searches for a set method for given key then caches and returns result.
 boolean set(java.lang.Object anObj, java.lang.Object aValue)
          This method actually retrieves a value for an object and a key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_MAP

public static final int TYPE_MAP
See Also:
Constant Field Values

TYPE_GETSET

public static final int TYPE_GETSET
See Also:
Constant Field Values

TYPE_METHODS

public static final int TYPE_METHODS
See Also:
Constant Field Values

TYPE_FIELD

public static final int TYPE_FIELD
See Also:
Constant Field Values

TYPE_LISTKEY

public static final int TYPE_LISTKEY
See Also:
Constant Field Values

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN
See Also:
Constant Field Values
Constructor Detail

RMKey.KeyAccessor

public RMKey.KeyAccessor(java.lang.Object anObj,
                         java.lang.String aKey)
Creates a new getter for given object and key (caches type).

Method Detail

get

public java.lang.Object get(java.lang.Object anObj)
This method actually retrieves a value for an object and a key.


getGetMethod

public java.lang.reflect.Method getGetMethod()
Searches for a get method for given key then caches and returns result.


set

public boolean set(java.lang.Object anObj,
                   java.lang.Object aValue)
This method actually retrieves a value for an object and a key.


getSetMethod

public java.lang.reflect.Method getSetMethod()
Searches for a set method for given key then caches and returns result.


ReportMill 11 API