public class CouponRuleParameterValueMapper extends Object implements RuleParameterValueMapper<AbstractCouponModel>
| Constructor and Description |
|---|
CouponRuleParameterValueMapper() |
| Modifier and Type | Method and Description |
|---|---|
AbstractCouponModel |
fromString(String value)
Maps the String representation to the specific object.
|
protected AbstractCouponModel |
getCouponById(String couponId) |
protected CouponDao |
getCouponDao() |
void |
setCouponDao(CouponDao couponDao) |
String |
toString(AbstractCouponModel value)
Maps the object to its String representation.
|
public AbstractCouponModel fromString(String value) throws RuleParameterValueMapperException
RuleParameterValueMapperfromString in interface RuleParameterValueMapper<AbstractCouponModel>value - - String representationRuleParameterValueMapperExceptionprotected AbstractCouponModel getCouponById(String couponId) throws ModelNotFoundException
ModelNotFoundExceptionpublic String toString(AbstractCouponModel value) throws RuleParameterValueMapperException
RuleParameterValueMappertoString in interface RuleParameterValueMapper<AbstractCouponModel>value - - object to mapRuleParameterValueMapperExceptionprotected CouponDao getCouponDao()
public void setCouponDao(CouponDao couponDao)
Copyright © 2017 SAP SE. All Rights Reserved.