com.ibm.commerce.tools.epromotion
Class RLPromotionRangesModel

java.lang.Object
  com.ibm.commerce.tools.epromotion.RLPromotionRangesModel

public class RLPromotionRangesModel
extends java.lang.Object

Represents the range model for rules based discount.


Field Summary
static java.lang.String COPYRIGHT
IBM copyright notice field.
Constructor Summary
RLPromotionRangesModel(java.lang.String[] someQuantities, java.lang.String[] someValues)
RangedPromotionModel constructor.
RLPromotionRangesModel(java.util.Vector someQuantities, java.util.Vector someValues)
RangedPromotionModel constructor
Method Summary
int countDiscountValues()
Return the range size of the ranged promotion
java.lang.String getDiscountValue(int anIndex)
Get the discount value by the given index in the range array.
java.lang.String getMinimumQuantityToQualify(int anIndex)
Get the minimum quantity to quanlify the discount by the given index in the range.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

COPYRIGHT

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

RLPromotionRangesModel

public RLPromotionRangesModel(java.lang.String[] someQuantities,
                              java.lang.String[] someValues)
RangedPromotionModel constructor.
Parameters:
someQuantities - String[]
someValues - String[]

RLPromotionRangesModel

public RLPromotionRangesModel(java.util.Vector someQuantities,
                              java.util.Vector someValues)
RangedPromotionModel constructor
Parameters:
someQuantities - java.util.Vector
someValues - java.util.Vecotr
Method Detail

countDiscountValues

public int countDiscountValues()
Return the range size of the ranged promotion
Returns:
int

getDiscountValue

public java.lang.String getDiscountValue(int anIndex)
Get the discount value by the given index in the range array.
Parameters:
anIndex - int
Returns:
java.lang.String

getMinimumQuantityToQualify

public java.lang.String getMinimumQuantityToQualify(int anIndex)
Get the minimum quantity to quanlify the discount by the given index in the range.
Parameters:
anIndex - int
Returns:
java.lang.String

Feedback