Interface QuantityBasedRule

All Superinterfaces:
Serializable
All Known Subinterfaces:
OfferItemCriteria, PageItemCriteria, StructuredContentItemCriteria
All Known Implementing Classes:
OfferItemCriteriaImpl, OfferQualifyingCriteriaXrefImpl, OfferTargetCriteriaXrefImpl, PageItemCriteriaImpl, StructuredContentItemCriteriaImpl

public interface QuantityBasedRule extends Serializable
Represents a class containing an MVEL rule and an associated quantity.
Author:
Jeff Fischer
  • Method Summary

    Modifier and Type
    Method
    Description
    The primary key value for this rule object
    The rule in the form of an MVEL expression
    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 Details

    • 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