Class DefaultRuleParameterValueConverter

java.lang.Object
de.hybris.platform.ruleengineservices.rule.strategies.impl.DefaultRuleParameterValueConverter
All Implemented Interfaces:
RuleParameterValueConverter, org.springframework.beans.factory.InitializingBean

public class DefaultRuleParameterValueConverter extends Object implements RuleParameterValueConverter, org.springframework.beans.factory.InitializingBean
  • Field Details

    • ENUM_PATTERN

      protected static final Pattern ENUM_PATTERN
    • LIST_PATTERN

      protected static final Pattern LIST_PATTERN
    • MAP_PATTERN

      protected static final Pattern MAP_PATTERN
  • Constructor Details

    • DefaultRuleParameterValueConverter

      public DefaultRuleParameterValueConverter()
  • Method Details

    • getSupportedTypes

      public Set<String> getSupportedTypes()
    • setSupportedTypes

      public void setSupportedTypes(Set<String> supportedTypes)
    • getRuleParameterTypeFormatter

      public RuleParameterTypeFormatter getRuleParameterTypeFormatter()
    • setRuleParameterTypeFormatter

      public void setRuleParameterTypeFormatter(RuleParameterTypeFormatter ruleParameterTypeFormatter)
    • isDebugMode

      public boolean isDebugMode()
    • setDebugMode

      public void setDebugMode(boolean debugMode)
    • getObjectReader

      protected com.fasterxml.jackson.databind.ObjectReader getObjectReader()
    • getObjectWriter

      protected com.fasterxml.jackson.databind.ObjectWriter getObjectWriter()
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • configureObjectMapper

      protected void configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • configureAttributes

      protected void configureAttributes(Map<Object,Object> attributes)
    • toString

      public String toString(Object value)
      Description copied from interface: RuleParameterValueConverter
      Converts from the required type to String.
      Specified by:
      toString in interface RuleParameterValueConverter
      Parameters:
      value - - the value to be converted to string
      Returns:
      the required type converted to String
    • fromString

      public Object fromString(String value, String type)
      Description copied from interface: RuleParameterValueConverter
      Converts from String to the required type.
      Specified by:
      fromString in interface RuleParameterValueConverter
      Parameters:
      value - - the string value to be converted
      Returns:
      the converted value from string to the required type
    • resolveJavaType

      protected com.fasterxml.jackson.databind.JavaType resolveJavaType(com.fasterxml.jackson.databind.type.TypeFactory typeFactory, String type) throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • getClassForType

      protected Class<?> getClassForType(String type) throws ClassNotFoundException
      Throws:
      ClassNotFoundException