com.beasys.commerce.ebusiness.tax
Interface TaxResult

All Superinterfaces
Belonging, BusinessSmartComponent, Cloneable, Comparable, Serializable
All Known Implementing Classes:
TaxResultImpl

public interface TaxResult
extends Belonging

A holder for various taxinfo belongings: total: A summary of all taxes and reasons line: A ordered list of lines that correspond to various taxes. The order is the same as the order of the taxlinelist being used to generate the taxes. Attribute: line One TaxInformation for each line in the original order.

Attribute: total The total information for the order that was processed.

See Also
TaxResultHome, TaxResultImpl

Method Summary
 void calculateTotals()
          This method should be called by anyone constructing TaxResults, it will calculate the total TaxInformation attribute.
 List getLine()
          Get the value of line
 TaxInformation getTotal()
          Get the value of total
 void setLine(List list)
          Set the value of Line
 void setTotal(TaxInformation total)
          Set the value of total
 
Methods inherited from interface com.beasys.commerce.foundation.Belonging
clone, equals, interfaceName, setByValue, value
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getLine

List getLine()
Get the value of line

Returns
line.

setLine

void setLine(List list)
Set the value of Line

Parameters
line - to be set

getTotal

TaxInformation getTotal()
Get the value of total

Returns
total.

setTotal

void setTotal(TaxInformation total)
Set the value of total

Parameters
total - total to be added

calculateTotals

void calculateTotals()
This method should be called by anyone constructing TaxResults, it will calculate the total TaxInformation attribute. Typically, the caller would be a subclass of TaxCalculator. The user of a TaxCalculator does not have to call calculateTotals.



Copyright © 2006 BEA Systems, Inc. All Rights Reserved