Class NullAttributeValueGetter

java.lang.Object
de.hybris.platform.integrationservices.model.impl.NullAttributeValueGetter
All Implemented Interfaces:
AttributeValueGetter

public final class NullAttributeValueGetter extends Object implements AttributeValueGetter
An AttributeValueGetter that returns a null value
  • Constructor Details

    • NullAttributeValueGetter

      public NullAttributeValueGetter()
  • Method Details

    • getValue

      public Object getValue(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 Object getValue(Object model, 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 Map<Locale,Object> getValues(Object model, 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