Interface AttributeValueGetter

    • Method Summary

      All Methods Instance Methods Abstract 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
    • Method Detail

      • getValue

        java.lang.Object getValue​(java.lang.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

        java.lang.Object getValue​(java.lang.Object model,
                                  java.util.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

        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
        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