Class NullAttributeValueGetter

    • 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
      • Methods inherited from class java.lang.Object

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

      • NullAttributeValueGetter

        public NullAttributeValueGetter()
    • 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