|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.commerce.ebusiness.price.quote.Adjustment
com.bea.commerce.ebusiness.price.quote.OrderAdjustment
public class OrderAdjustment
An OrderAdjustment is used in conjunction with the Quote class to adjust the total price of the Quote.
Adjustment,
Quote,
AdjustmentDetail,
Money,
AdjustmentType,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.bea.commerce.ebusiness.price.quote.Adjustment |
|---|
details, isSet, type |
| Constructor Summary | |
|---|---|
protected |
OrderAdjustment()
|
|
OrderAdjustment(Money aBasePrice,
Quote parent)
Constructs a new OrderAdjustment with the specified values. |
| Method Summary | |
|---|---|
protected void |
addDetail(AdjustmentDetail aDetail)
Adding a detail changes the adjustment type to match the detail. |
protected void |
computeAdjustmentAmount()
Computes the amount of adjustment. |
Quote |
getParent()
Returns the Quote that is the parent of this adjustment |
protected void |
init()
allocate permanent objects, called by super constructor |
protected void |
reset()
reset created values, called by super set() |
protected double |
roundBasePrice(double value)
Provides a means to round the base price amount. |
void |
set(Money aBasePrice,
Quote parent)
Sets the adjusment object values, clearing any old values |
protected void |
setType(AdjustmentDetail aDetail)
called by addDetail() in the super class to set the type of this adjustment. |
String |
toString()
Provides a string representation of this object. |
static String |
toString(List adjustments)
Provides a string representation of a List of OrderAdjustments. |
| Methods inherited from class com.bea.commerce.ebusiness.price.quote.Adjustment |
|---|
checkCurrency, checkCurrency, checkCurrency, getActualPrice, getAdjustmentAmount, getBasePrice, getCurrency, getDetails, getType, markModified, set, set, setActualPrice, setAdjustmentAmount |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected OrderAdjustment()
public OrderAdjustment(Money aBasePrice,
Quote parent)
Adjustment,
Quote| Method Detail |
|---|
public void set(Money aBasePrice,
Quote parent)
protected void init()
init in class Adjustmentprotected void reset()
reset in class Adjustmentpublic final Quote getParent()
protected void addDetail(AdjustmentDetail aDetail)
Adjustment
addDetail in class Adjustmentprotected void setType(AdjustmentDetail aDetail)
setType in class Adjustmentprotected double roundBasePrice(double value)
roundBasePrice in class Adjustmentvalue - Money amount to be roundedprotected void computeAdjustmentAmount()
computeAdjustmentAmount in class Adjustmentpublic String toString()
toString in class Adjustmentpublic static String toString(List adjustments)
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||