org.broadleafcommerce.common.rule
Interface QuantityBasedRule

All Superinterfaces:
Serializable

public interface QuantityBasedRule
extends Serializable

Represents a class containing an MVEL rule and an associated quantity.

Author:
Jeff Fischer

Method Summary
 Long getId()
          The primary key value for this rule object
 String getMatchRule()
          The rule in the form of an MVEL expression
 Integer getQuantity()
          The quantity for which a match must be found using the rule.
 void setId(Long id)
          The primary key value for this rule object
 void setMatchRule(String matchRule)
          Sets the match rule used to test this item.
 void setQuantity(Integer quantity)
          The quantity for which a match must be found using the rule.
 

Method Detail

getQuantity

Integer getQuantity()
The quantity for which a match must be found using the rule. This generally equates to order item quantity (e.g. 2 shirts matching the rule are required in order to receive a discount)

Returns:
the quantity of matches required

setQuantity

void setQuantity(Integer quantity)
The quantity for which a match must be found using the rule. This generally equates to order item quantity (e.g. 2 shirts matching the rule are required in order to receive a discount)

Parameters:
quantity - the quantity of matches required

getMatchRule

String getMatchRule()
The rule in the form of an MVEL expression

Returns:
the rule as an MVEL string

setMatchRule

void setMatchRule(String matchRule)
Sets the match rule used to test this item.

Parameters:
matchRule - the rule as an MVEL string

getId

Long getId()
The primary key value for this rule object

Returns:
the primary key value

setId

void setId(Long id)
The primary key value for this rule object

Parameters:
id - the primary key value


Copyright © 2013. All Rights Reserved.