Interface AttributeValueGetter

All Known Subinterfaces:
AttributeValueAccessor
All Known Implementing Classes:
ClassAttributeValueGetter, DelegatingAttributeValueAccessor, NullAttributeValueGetter

public interface AttributeValueGetter
An AttributeValueGetter provides get access to an attribute's value
  • Method Details

    • getValue

      Object getValue(Object model)
      Gets the value from the given Object using the default locale
      Parameters:
      model - Reference to the model that contains the value to retrieve from
      Returns:
      The value or null
    • getValue

      Object getValue(Object model, Locale locale)
      Gets the value from the given Object using the specified locale
      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

      Map<Locale,Object> getValues(Object model, Locale... locales)
      Gets the values from the given Object using the specified locales
      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