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 Object
implements BackofficeSavedQueryValueConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectconvertSimpleAtomicTypeValue(String valueString, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType) Converts string representation of a value into dataType.protected StringconvertSimpleAtomicTypeValueToString(Object value, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType) Converts value to string representation.protected StringgetLocaleCode(Locale locale) protected LocalegetLocaleFromCode(String metadata) getLocalizedValue(Locale locale, Object value) protected LocalegetSavedQueryValueLocale(SavedQueryValue savedQueryValue, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) protected LocalegetValueLocale(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 atomicMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.platformbackoffice.services.converters.BackofficeSavedQueryValueConverter
canHandle, convertValue, convertValue
-
Constructor Details
-
AbstractValueConverter
public AbstractValueConverter()
-
-
Method Details
-
getSavedQueryValueLocale
protected Locale getSavedQueryValueLocale(SavedQueryValue savedQueryValue, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute) -
getValueLocale
-
getLocalizedValue
-
getLocaleCode
-
getLocaleFromCode
-
convertSimpleAtomicTypeValue
protected Object convertSimpleAtomicTypeValue(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 String convertSimpleAtomicTypeValueToString(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.
-