com.ibm.commerce.marketing.promotion.condition

Interface PatternFilter

  • All Superinterfaces:
    java.io.Serializable, XMLizable
    All Known Implementing Classes:
    DummyPatternFilter, TotalCostPatternFilter


    public interface PatternFilter
    extends XMLizable
    A Pattern Filter is a set of logic that eliminates matched patterns that do not satisfy the conditions set out in a Pattern Filter. PatternFilter interface contains the methods common to all pattern filters. This interface extends the XMLizable interface. All the pattern filters should implement this interface.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • evaluate

        boolean evaluate(LineItemSet input,
                         PromotionContext context)
        This method checks if the LineItemSet passed as input satisfies the condition specified in the filter.
        Parameters:
        input - LineItemSet
        context - PromotionContext
        Returns:
        boolean true if condition satisfied; false otherwise