Class AbstractValueConverter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      protected java.lang.String convertSimpleAtomicTypeValueToString​(java.lang.Object value, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType)
      Converts value to string representation.
      protected java.lang.String getLocaleCode​(java.util.Locale locale)  
      protected java.util.Locale getLocaleFromCode​(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.Locale getSavedQueryValueLocale​(SavedQueryValue savedQueryValue, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)  
      protected java.util.Locale getValueLocale​(java.lang.Object value, com.hybris.cockpitng.dataaccess.facades.type.DataAttribute dataAttribute)  
      protected boolean isSimpleAtomicDataType​(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
    • Constructor Detail

      • AbstractValueConverter

        public AbstractValueConverter()
    • 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.