Class CouponRuleParameterValueMapper
- java.lang.Object
-
- de.hybris.platform.couponservices.rule.strategies.impl.mappers.CouponRuleParameterValueMapper
-
- All Implemented Interfaces:
RuleParameterValueMapper<AbstractCouponModel>
public class CouponRuleParameterValueMapper extends java.lang.Object implements RuleParameterValueMapper<AbstractCouponModel>
Performs mapping between AbstractCouponModel and a String representation of it instance.
-
-
Constructor Summary
Constructors Constructor Description CouponRuleParameterValueMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractCouponModelfromString(java.lang.String value)Maps the String representation to the specific object.protected AbstractCouponModelgetCouponById(java.lang.String couponId)protected CouponDaogetCouponDao()voidsetCouponDao(CouponDao couponDao)java.lang.StringtoString(AbstractCouponModel value)Maps the object to its String representation.
-
-
-
Method Detail
-
fromString
public AbstractCouponModel fromString(java.lang.String value)
Description copied from interface:RuleParameterValueMapperMaps the String representation to the specific object.- Specified by:
fromStringin interfaceRuleParameterValueMapper<AbstractCouponModel>- Parameters:
value- - String representation- Returns:
- mapped object
-
getCouponById
protected AbstractCouponModel getCouponById(java.lang.String couponId)
-
toString
public java.lang.String toString(AbstractCouponModel value)
Description copied from interface:RuleParameterValueMapperMaps the object to its String representation.- Specified by:
toStringin interfaceRuleParameterValueMapper<AbstractCouponModel>- Parameters:
value- - object to map- Returns:
- String representation
-
getCouponDao
protected CouponDao getCouponDao()
-
setCouponDao
public void setCouponDao(CouponDao couponDao)
-
-