|
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 FormField 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 Adjustment
protected void reset()
reset
in class Adjustment
public final Quote getParent()
protected void addDetail(AdjustmentDetail aDetail)
Adjustment
addDetail
in class Adjustment
protected void setType(AdjustmentDetail aDetail)
setType
in class Adjustment
protected double roundBasePrice(double value)
roundBasePrice
in class Adjustment
value
- Money amount to be roundedprotected void computeAdjustmentAmount()
computeAdjustmentAmount
in class Adjustment
public String toString()
toString
in class Adjustment
public 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 |