Class DynamicEnumRuleParameterValueMapper
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rule.strategies.impl.mappers.DynamicEnumRuleParameterValueMapper
-
- All Implemented Interfaces:
RuleParameterValueMapper<EnumerationValueModel>
public class DynamicEnumRuleParameterValueMapper extends java.lang.Object implements RuleParameterValueMapper<EnumerationValueModel>
Performs mapping between Dynamic Enum(Enumeration Value) and a String representation of its instance.
-
-
Constructor Summary
Constructors Constructor Description DynamicEnumRuleParameterValueMapper(java.lang.String enumerationCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumerationValueModel
fromString(java.lang.String code)
Maps the String representation to the specific object.protected TypeService
getTypeService()
void
setTypeService(TypeService typeService)
java.lang.String
toString(EnumerationValueModel value)
Maps the object to its String representation.
-
-
-
Method Detail
-
toString
public java.lang.String toString(EnumerationValueModel value)
Description copied from interface:RuleParameterValueMapper
Maps the object to its String representation.- Specified by:
toString
in interfaceRuleParameterValueMapper<EnumerationValueModel>
- Parameters:
value
- - object to map- Returns:
- String representation
-
fromString
public EnumerationValueModel fromString(java.lang.String code)
Description copied from interface:RuleParameterValueMapper
Maps the String representation to the specific object.- Specified by:
fromString
in interfaceRuleParameterValueMapper<EnumerationValueModel>
- Parameters:
code
- - String representation- Returns:
- mapped object
-
getTypeService
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-