com.ibm.commerce.order.calculation
Class Group

java.lang.Object
  |
  +--com.ibm.commerce.order.calculation.Group

public class Group
extends java.lang.Object

Each group is composed of:


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
Group(CalculationCodeAccessBean aabCode, Item[] aItems)
           
 
Method Summary
 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

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

Group

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

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.