Class 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.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RMKey.KeyAccessor.Type  
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyAccessor​(java.lang.Object anObj, java.lang.String aKey)
      Creates a new getter for given object and key (caches type).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      void 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyAccessor

        public 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 void set​(java.lang.Object anObj,
                        java.lang.Object aValue)
                 throws java.lang.Exception
        This method actually retrieves a value for an object and a key.
        Throws:
        java.lang.Exception
      • getSetMethod

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