Class DelegatingAttributeValueAccessor

java.lang.Object
de.hybris.platform.integrationservices.model.impl.DelegatingAttributeValueAccessor
All Implemented Interfaces:
AttributeValueAccessor, AttributeValueGetter, AttributeValueSetter

public class DelegatingAttributeValueAccessor extends Object implements AttributeValueAccessor
A default implementation the AttributeValueAccessor, which delegates its calls to AttributeValueSetter and to AttributeValueGetter
  • Constructor Details

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

      public void setValue(Object model, 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