Class SourceRuleParameterValueMapper
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.rule.strategies.impl.mappers.SourceRuleParameterValueMapper
-
- All Implemented Interfaces:
RuleParameterValueMapper<AbstractRuleModel>
public class SourceRuleParameterValueMapper extends java.lang.Object implements RuleParameterValueMapper<AbstractRuleModel>
Performs mapping between AbstractRuleModel and a String representation of it instance.
-
-
Constructor Summary
Constructors Constructor Description SourceRuleParameterValueMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractRuleModelfromString(java.lang.String code)Maps the String representation to the specific object.protected RuleServicegetRuleService()voidsetRuleService(RuleService ruleService)java.lang.StringtoString(AbstractRuleModel sourceRule)Maps the object to its String representation.
-
-
-
Method Detail
-
fromString
public AbstractRuleModel fromString(java.lang.String code)
Description copied from interface:RuleParameterValueMapperMaps the String representation to the specific object.- Specified by:
fromStringin interfaceRuleParameterValueMapper<AbstractRuleModel>- Parameters:
code- - String representation- Returns:
- mapped object
-
toString
public java.lang.String toString(AbstractRuleModel sourceRule)
Description copied from interface:RuleParameterValueMapperMaps the object to its String representation.- Specified by:
toStringin interfaceRuleParameterValueMapper<AbstractRuleModel>- Parameters:
sourceRule- - object to map- Returns:
- String representation
-
getRuleService
protected RuleService getRuleService()
-
setRuleService
public void setRuleService(RuleService ruleService)
-
-