public class DistributionRange extends java.lang.Object implements XMLizable
<Range impl="com.ibm.commerce.marketing.promotion.reward.DistributionRange"> <LowerBound>0</LowerBound> <UpperBound>2</UpperBound> <RewardChoice> <!-- Multiple Rewards can be specified --> <Reward></Reward> </RewardChoice> </Range>
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
DistributionRange()
Constructor for DistributionRange.
|
Modifier and Type | Method and Description |
---|---|
void | fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
java.math.BigDecimal | getlowerBound()
This method gets the lower bound of the range.
|
Reward[] | getRewards()
This method gets the rewards in the range.
|
java.math.BigDecimal | getUpperBound()
This method gets the upper bound of the range.
|
boolean | isInRange(java.math.BigDecimal x)
This method checks if the given number falls in the range.
|
boolean | isLowerBoundIncludedInRange()
Returns a boolean value which indicates whether the lower bound is included in the range or not.
|
boolean | isUpperBoundIncludedInRange()
Returns a boolean value which indicates whether the upper bound is included in the range or not.
|
void | setLowerBound(java.math.BigDecimal _lowerBound)
This method sets the lower bound of the range.
|
void | setLowerBoundIncludedInRange(boolean b)
Sets the boolean attribute lowerBoundIncludedInRange.
|
void | setRewards(Reward[] _rewards)
This method sets the rewards in the range.
|
void | setUpperBound(java.math.BigDecimal _upperBound)
This methods sets the upper bound of the range.
|
void | setUpperBoundIncludedInRange(boolean b)
Sets the boolean attribute upperBoundIncludedInRange.
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public java.math.BigDecimal getlowerBound()
public java.math.BigDecimal getUpperBound()
public void setUpperBound(java.math.BigDecimal _upperBound)
public void setLowerBound(java.math.BigDecimal _lowerBound)
public Reward[] getRewards()
public void setRewards(Reward[] _rewards)
public boolean isInRange(java.math.BigDecimal x)
public java.lang.String toXML() throws XMLizationException
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
public boolean isLowerBoundIncludedInRange()
public boolean isUpperBoundIncludedInRange()
public void setLowerBoundIncludedInRange(boolean b)
public void setUpperBoundIncludedInRange(boolean b)