com.ibm.commerce.order.calculation
Class Group

java.lang.Object
  |
  +--com.ibm.commerce.order.calculation.Group
All Implemented Interfaces:
java.lang.Comparable

public class Group
extends java.lang.Object
implements java.lang.Comparable

Each group is composed of:


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
Group(CalculationCodeAccessBean aabCode, Item[] aItems)
           
 
Method Summary
 int compareTo(java.lang.Object a)
           
 CalculationCodeAccessBean getCode()
          Returns the calculation code.
  Item[] getItems()
          Returns the items.
 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 this group is calculated.
 void setCode(CalculationCodeAccessBean aabCode)
          Sets the calculation code.
 void setItems( Item[] aItems)
          Sets the items.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Group

public Group(CalculationCodeAccessBean aabCode,
Item[] aItems)
Method Detail

compareTo

public int compareTo(java.lang.Object a)
Specified by:
compareTo in interface java.lang.Comparable

getCode

public CalculationCodeAccessBean getCode()
Returns the calculation code.

getItems

public Item[] getItems()
Returns the items.

getValues

public java.math.BigDecimal[] getValues()
Returns the values.

getValues

public java.math.BigDecimal[] getValues(java.lang.Integer anTaxCategoryId)
Returns the values of a particular tax category.

isCalculated

public boolean isCalculated()
Returns whether this group is calculated.

isEmpty

public boolean isEmpty()
Returns whether this group is empty.

setCalculated

public void setCalculated(boolean abCalculated)
Sets whether this group is calculated.

setCode

public void setCode(CalculationCodeAccessBean aabCode)
Sets the calculation code.

setItems

public void setItems(Item[] aItems)
Sets the items.

setValues

public void setValues(java.math.BigDecimal[] adValues)
Sets the values.

setValues

public void setValues(java.lang.Integer anTaxCategoryId,
                      java.math.BigDecimal[] adValues)
Sets the values of a particular tax category.