Class NullAttributeValueGetter
- java.lang.Object
-
- de.hybris.platform.integrationservices.model.impl.NullAttributeValueGetter
-
- All Implemented Interfaces:
AttributeValueGetter
public final class NullAttributeValueGetter extends java.lang.Object implements AttributeValueGetter
AnAttributeValueGetterthat returns a null value
-
-
Constructor Summary
Constructors Constructor Description NullAttributeValueGetter()
-
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 locales
-
-
-
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
-
-