TaxResult Interface
- 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.
- Containment: By Value
- Multiplicity: 0:N
- Interface: java.util.Collection
Attribute: total
The total information for the order that was processed.
- Containment: By Value
- Multiplicity: 1:1
Related Topics
TaxResultHome
TaxResultImpl
-
All Known Implementing Classes
-
TaxResultImpl
-
All Superinterfaces
-
Belonging
, BusinessSmartComponent
, Cloneable
, Comparable
, Serializable
calculateTotals() Method
public 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.
getLine() Method
public List
getLine()
Get the value of line
Returns
- line.
getTotal() Method
public TaxInformation
getTotal()
Get the value of total
Returns
- total.
setLine(List) Method
public void setLine(List
list)
Set the value of Line
Parameters
-
list
- to be set
setTotal(TaxInformation) Method
public void setTotal(TaxInformation
total)
Set the value of total
Parameters
-
total
- total to be added