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