Class ClassAttributeValueGetter

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

public class ClassAttributeValueGetter extends Object implements AttributeValueGetter
An implementation for POJO attributes and uses Java reflection to retrieve the attribute value
  • Constructor Details

    • ClassAttributeValueGetter

      public ClassAttributeValueGetter(IntegrationObjectClassAttributeModel a)
      Instantiates the getter
      Parameters:
      a - an IOClassAttributeModel used to gather the information needed to retrieve the attribute value
  • Method Details

    • getValue

      public Object getValue(Object pojo)
      Description copied from interface: AttributeValueGetter
      Gets the value from the given Object using the default locale
      Specified by:
      getValue in interface AttributeValueGetter
      Parameters:
      pojo - 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