Class AtomicValueConverter
java.lang.Object
de.hybris.platform.platformbackoffice.services.converters.impl.AbstractValueConverter
de.hybris.platform.platformbackoffice.services.converters.impl.AtomicValueConverter
- All Implemented Interfaces:
BackofficeSavedQueryValueConverter
Converts atomic value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) convertValue(SavedQueryValue queryValue, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) Converts savedQueryValue into object value.convertValue(Object value, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) Converts object into savedQueryValue - an object which holds value string representation and value metadata.Methods inherited from class de.hybris.platform.platformbackoffice.services.converters.impl.AbstractValueConverter
convertSimpleAtomicTypeValue, convertSimpleAtomicTypeValueToString, getLocaleCode, getLocaleFromCode, getLocalizedValue, getSavedQueryValueLocale, getValueLocale, isSimpleAtomicDataType
-
Constructor Details
-
AtomicValueConverter
public AtomicValueConverter()
-
-
Method Details
-
canHandle
public boolean canHandle(com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) -
convertValue
public Object convertValue(SavedQueryValue queryValue, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) Description copied from interface:BackofficeSavedQueryValueConverterConverts savedQueryValue into object value.- Parameters:
queryValue- an object which holds value string representation and value metadata.dataAttribute- attribute descriptor.- Returns:
- converted value or null if the conversion fails.
-
convertValue
public SavedQueryValue convertValue(Object value, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) Description copied from interface:BackofficeSavedQueryValueConverterConverts object into savedQueryValue - an object which holds value string representation and value metadata.- Parameters:
value- value to convert.dataAttribute- attribute descriptor.- Returns:
- string value representation with metadata or null if the conversion fails.
-