Class MapAccessor

    • Constructor Summary

      Constructors 
      Constructor Description
      MapAccessor​(java.lang.String key)
      Constructs a new MapAccessor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getConstructorArgumentIndex()
      Returns the constructor argument index, or -1 if this property is not a constructor argument.
      java.lang.Object getValue​(java.lang.Object bean)
      Returns the property value from a bean object.
      boolean isConstructorArgument()
      Returns whether this property is a constructor argument.
      void setValue​(java.lang.Object bean, java.lang.Object value)
      Sets the property value on a bean object.
      • Methods inherited from class java.lang.Object

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

      • MapAccessor

        public MapAccessor​(java.lang.String key)
        Constructs a new MapAccessor.
        Parameters:
        key - the key used to get and set a value from a Map bean
    • Method Detail

      • getValue

        public java.lang.Object getValue​(java.lang.Object bean)
        Description copied from interface: PropertyAccessor
        Returns the property value from a bean object.
        Specified by:
        getValue in interface PropertyAccessor
        Parameters:
        bean - the bean object to get the property from
        Returns:
        the property value
      • setValue

        public void setValue​(java.lang.Object bean,
                             java.lang.Object value)
        Description copied from interface: PropertyAccessor
        Sets the property value on a bean object.
        Specified by:
        setValue in interface PropertyAccessor
        Parameters:
        bean - the bean object to set the property
        value - the property value
      • isConstructorArgument

        public boolean isConstructorArgument()
        Description copied from interface: PropertyAccessor
        Returns whether this property is a constructor argument.
        Specified by:
        isConstructorArgument in interface PropertyAccessor
        Returns:
        true if this property is a constructor argument, false otherwise
      • getConstructorArgumentIndex

        public int getConstructorArgumentIndex()
        Description copied from interface: PropertyAccessor
        Returns the constructor argument index, or -1 if this property is not a constructor argument.
        Specified by:
        getConstructorArgumentIndex in interface PropertyAccessor
        Returns:
        the constructor argument index