Class DelegatingAttributeValueAccessor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getValue​(java.lang.Object model)
      Gets the value from the given Object using the default locale
      java.lang.Object getValue​(java.lang.Object model, java.util.Locale locale)
      Gets the value from the given Object using the specified locale
      java.util.Map<java.util.Locale,​java.lang.Object> getValues​(java.lang.Object model, java.util.Locale... locales)
      Gets the values from the given Object using the specified locales
      void setValue​(java.lang.Object model, java.lang.Object value)
      Sets the value on the given Object
      • Methods inherited from class java.lang.Object

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

      • getValue

        public java.lang.Object getValue​(java.lang.Object model)
        Description copied from interface: AttributeValueGetter
        Gets the value from the given Object using the default locale
        Specified by:
        getValue in interface AttributeValueGetter
        Parameters:
        model - Reference to the model that contains the value to retrieve from
        Returns:
        The value or null
      • getValue

        public java.lang.Object getValue​(java.lang.Object model,
                                         java.util.Locale locale)
        Description copied from interface: AttributeValueGetter
        Gets the value from the given Object using the specified locale
        Specified by:
        getValue in interface AttributeValueGetter
        Parameters:
        model - Reference to the model that contains the value to retrieve from
        locale - The locale of the value to retrieve
        Returns:
        The value or null
      • getValues

        public java.util.Map<java.util.Locale,​java.lang.Object> getValues​(java.lang.Object model,
                                                                                java.util.Locale... locales)
        Description copied from interface: AttributeValueGetter
        Gets the values from the given Object using the specified locales
        Specified by:
        getValues in interface AttributeValueGetter
        Parameters:
        model - Reference to the model that contains the value to retrieve from
        locales - The locales of the value to retrieve
        Returns:
        A map of localized values
      • setValue

        public void setValue​(java.lang.Object model,
                             java.lang.Object value)
        Description copied from interface: AttributeValueSetter
        Sets the value on the given Object
        Specified by:
        setValue in interface AttributeValueSetter
        Parameters:
        model - Reference to the model that the attribute value will be set on
        value - Value to be set in the model