Class AbstractValueConverter
- java.lang.Object
-
- de.hybris.platform.platformbackoffice.services.converters.impl.AbstractValueConverter
-
- All Implemented Interfaces:
BackofficeSavedQueryValueConverter
- Direct Known Subclasses:
AtomicValueConverter,HybrisEnumValueConverter,HybrisItemTypeValueConverter
public abstract class AbstractValueConverter extends java.lang.Object implements BackofficeSavedQueryValueConverter
-
-
Constructor Summary
Constructors Constructor Description AbstractValueConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectconvertSimpleAtomicTypeValue(java.lang.String valueString, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)Converts string representation of a value into dataType.protected java.lang.StringconvertSimpleAtomicTypeValueToString(java.lang.Object value, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)Converts value to string representation.protected java.lang.StringgetLocaleCode(java.util.Locale locale)protected java.util.LocalegetLocaleFromCode(java.lang.String metadata)protected java.util.Map<java.util.Locale,java.lang.Object>getLocalizedValue(java.util.Locale locale, java.lang.Object value)protected java.util.LocalegetSavedQueryValueLocale(SavedQueryValue savedQueryValue, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)protected java.util.LocalegetValueLocale(java.lang.Object value, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)protected booleanisSimpleAtomicDataType(com.hybris.cockpitng.dataaccess.facades.type.DataType attributeType)Checks whether a type is simple atomic-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.platformbackoffice.services.converters.BackofficeSavedQueryValueConverter
canHandle, convertValue, convertValue
-
-
-
-
Method Detail
-
getSavedQueryValueLocale
protected java.util.Locale getSavedQueryValueLocale(SavedQueryValue savedQueryValue, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)
-
getValueLocale
protected java.util.Locale getValueLocale(java.lang.Object value, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)
-
getLocalizedValue
protected java.util.Map<java.util.Locale,java.lang.Object> getLocalizedValue(java.util.Locale locale, java.lang.Object value)
-
getLocaleCode
protected java.lang.String getLocaleCode(java.util.Locale locale)
-
getLocaleFromCode
protected java.util.Locale getLocaleFromCode(java.lang.String metadata)
-
convertSimpleAtomicTypeValue
protected java.lang.Object convertSimpleAtomicTypeValue(java.lang.String valueString, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)Converts string representation of a value into dataType.- Parameters:
valueString- string representation of a value.dataType- attribute descriptor.- Returns:
- converted value.
-
convertSimpleAtomicTypeValueToString
protected java.lang.String convertSimpleAtomicTypeValueToString(java.lang.Object value, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)Converts value to string representation.- Parameters:
value- simple atomic value.dataType- attribute descriptor.- Returns:
- converted value.
-
isSimpleAtomicDataType
protected boolean isSimpleAtomicDataType(com.hybris.cockpitng.dataaccess.facades.type.DataType attributeType)
Checks whether a type is simple atomic- Parameters:
attributeType- attribute descriptor.- Returns:
- true if attribute value is simple atomic.
-
-