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 EnumerationValueModelfromString(java.lang.String code)Maps the String representation to the specific object.protected TypeServicegetTypeService()voidsetTypeService(TypeService typeService)java.lang.StringtoString(EnumerationValueModel value)Maps the object to its String representation.
-
-
-
Method Detail
-
toString
public java.lang.String toString(EnumerationValueModel value)
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
public EnumerationValueModel fromString(java.lang.String code)
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
protected TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-