Class DelegatingAttributeValueAccessor
- java.lang.Object
-
- de.hybris.platform.integrationservices.model.impl.DelegatingAttributeValueAccessor
-
- All Implemented Interfaces:
AttributeValueAccessor,AttributeValueGetter,AttributeValueSetter
- Direct Known Subclasses:
ClassificationAttributeValueAccessor,NullAttributeValueAccessor,StandardAttributeValueAccessor
public class DelegatingAttributeValueAccessor extends java.lang.Object implements AttributeValueAccessor
A default implementation theAttributeValueAccessor, which delegates its calls toAttributeValueSetterand toAttributeValueGetter
-
-
Constructor Summary
Constructors Constructor Description DelegatingAttributeValueAccessor(AttributeValueGetter get, AttributeValueSetter set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetValue(java.lang.Object model)Gets the value from the givenObjectusing the default localejava.lang.ObjectgetValue(java.lang.Object model, java.util.Locale locale)Gets the value from the givenObjectusing the specified localejava.util.Map<java.util.Locale,java.lang.Object>getValues(java.lang.Object model, java.util.Locale... locales)Gets the values from the givenObjectusing the specified localesvoidsetValue(java.lang.Object model, java.lang.Object value)Sets the value on the givenObject
-
-
-
Constructor Detail
-
DelegatingAttributeValueAccessor
public DelegatingAttributeValueAccessor(AttributeValueGetter get, AttributeValueSetter set)
-
-
Method Detail
-
getValue
public java.lang.Object getValue(java.lang.Object model)
Description copied from interface:AttributeValueGetterGets the value from the givenObjectusing the default locale- Specified by:
getValuein interfaceAttributeValueGetter- 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:AttributeValueGetterGets the value from the givenObjectusing the specified locale- Specified by:
getValuein interfaceAttributeValueGetter- Parameters:
model- Reference to the model that contains the value to retrieve fromlocale- 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:AttributeValueGetterGets the values from the givenObjectusing the specified locales- Specified by:
getValuesin interfaceAttributeValueGetter- Parameters:
model- Reference to the model that contains the value to retrieve fromlocales- The locales of the value to retrieve- Returns:
- A map of localized values
-
setValue
public void setValue(java.lang.Object model, java.lang.Object value)Description copied from interface:AttributeValueSetterSets the value on the givenObject- Specified by:
setValuein interfaceAttributeValueSetter- Parameters:
model- Reference to the model that the attribute value will be set onvalue- Value to be set in the model
-
-