Class RMKey.KeyAccessor

java.lang.Object
com.inductiveautomation.rm.base.RMKey.KeyAccessor
Enclosing class:
RMKey

public static class RMKey.KeyAccessor extends Object
KeyAccessor - enclosed class for actually getting/setting values for a given object (class) and key.
  • Constructor Details

    • KeyAccessor

      public KeyAccessor(Object anObj, String aKey)
      Creates a new getter for given object and key (caches type).
  • Method Details

    • get

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

      public Method getGetMethod()
      Searches for a get method for given key then caches and returns result.
    • set

      public void set(Object anObj, Object aValue) throws Exception
      This method actually retrieves a value for an object and a key.
      Throws:
      Exception
    • getSetMethod

      public Method getSetMethod() throws Exception
      Searches for a set method for given key then caches and returns result.
      Throws:
      Exception