|
© 2004 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.beasys.commerce.foundation.BelongingImpl
com.beasys.commerce.ebusiness.tax.TaxResultImpl
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.
TaxResult
,
TaxResultHome
,
Serialized FormField Summary | |
List |
line
One TaxInformation for each line in the original order. |
TaxInformation |
total
The total information for the order that was processed. |
Fields inherited from class com.beasys.commerce.foundation.BelongingImpl |
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber, _isDirty |
Constructor Summary | |
TaxResultImpl()
|
Method Summary | |
void |
calculateTotals()
This method should be called by anyone constructing TaxResults, it will calculate the total TaxInformation attribute. |
int |
compareTo(Object o)
Compare this belonging to another |
List |
getLine()
Get the value of line |
TaxInformation |
getTotal()
Get the value of total |
String |
interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model |
void |
setByValue(Belonging value)
It is possible to call set-by-value with a superclass. |
void |
setLine(List list)
Set the value of Line |
void |
setTotal(TaxInformation total)
Set the value of total |
Belonging |
value()
value() is a more typesafe implementation of clone() |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.beasys.commerce.foundation.Belonging |
clone, equals |
Field Detail |
public List line
public TaxInformation total
Constructor Detail |
public TaxResultImpl()
Method Detail |
public void calculateTotals()
calculateTotals
in interface TaxResult
public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in class BelongingImpl
o
- target object for comparision
public List getLine()
getLine
in interface TaxResult
public TaxInformation getTotal()
getTotal
in interface TaxResult
public String interfaceName()
interfaceName
in interface Belonging
public void setByValue(Belonging value)
It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.
setByValue
in interface Belonging
setByValue
in class BelongingImpl
value
- The Belonging
to use for initialization.public void setLine(List list)
setLine
in interface TaxResult
public void setTotal(TaxInformation total)
setTotal
in interface TaxResult
total
- total to be addedpublic Belonging value()
value
in interface Belonging
|
© 2004 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |