public class Group
extends java.lang.Object
implements java.lang.Comparable
items
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field
|
Constructor and Description |
---|
Group(CalculationCodeAccessBean aabCode,
Item[] aItems)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object a)
The comparison to another object.
|
CalculationCodeAccessBean |
getCode()
Returns the calculation code.
|
Item[] |
getItems()
Returns the items.
|
PromotionExecutionRecord |
getPromotionExecutionRecord()
Returns the promotion execution record.
|
java.math.BigDecimal[] |
getValues()
Returns the values.
|
java.math.BigDecimal[] |
getValues(java.lang.Integer anTaxCategoryId)
Returns the values of a particular tax category.
|
boolean |
isCalculated()
Returns whether this group is calculated.
|
boolean |
isEmpty()
Returns whether this group is empty.
|
void |
setCalculated(boolean abCalculated)
Sets whether the group is calculated.
|
void |
setCode(CalculationCodeAccessBean aabCode)
Sets the calculation code.
|
void |
setItems(Item[] aItems)
Sets the items.
|
void |
setPromotionExecutionRecord(PromotionExecutionRecord aPromotionExecutionRecord)
Sets the promotion execution record.
|
void |
setValues(java.math.BigDecimal[] adValues)
Sets the values.
|
void |
setValues(java.lang.Integer anTaxCategoryId,
java.math.BigDecimal[] adValues)
Sets the values of a particular tax category.
|
public static final java.lang.String COPYRIGHT
public Group(CalculationCodeAccessBean aabCode, Item[] aItems)
aabCode
- the calculation codeaItems
- the itemspublic int compareTo(java.lang.Object a)
compareTo
in interface java.lang.Comparable
a
- the object to be compared topublic CalculationCodeAccessBean getCode()
public Item[] getItems()
public java.math.BigDecimal[] getValues()
public java.math.BigDecimal[] getValues(java.lang.Integer anTaxCategoryId)
anTaxCategoryId
- the tax category idpublic boolean isCalculated()
public boolean isEmpty()
public void setCalculated(boolean abCalculated)
abCalculated
- the boolean valuepublic void setCode(CalculationCodeAccessBean aabCode)
aabCode
- the calculation code.public void setItems(Item[] aItems)
aItems
- the array of itemspublic void setValues(java.math.BigDecimal[] adValues)
adValues
- the valuespublic void setValues(java.lang.Integer anTaxCategoryId, java.math.BigDecimal[] adValues)
anTaxCategoryId
- the tax category idadValues
- the valuepublic void setPromotionExecutionRecord(PromotionExecutionRecord aPromotionExecutionRecord)
aPromotionExecutionRecord
- setValues(BigDecimal[])
public PromotionExecutionRecord getPromotionExecutionRecord()
getValues()