|
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.LineAdjustment
public class LineAdjustment
A LineAdjustment is used to adjust the unit price of some quantity of a LineItem. One AdjustmentDetail is associated with a LineAdjustment and provides a description of the adjustment.
Adjustment,
AdjustmentDetail,
LineItem,
AdjustmentType,
Serialized Form| Field Summary | |
|---|---|
static int |
MAX_DETAILS
the maximum number of AdjustmentDetails per LineAdjustment |
| Fields inherited from class com.bea.commerce.ebusiness.price.quote.Adjustment |
|---|
details, isSet, type |
| Constructor Summary | |
|---|---|
protected |
LineAdjustment()
|
|
LineAdjustment(Money aBasePrice,
LineItem parent)
AdjustmentType defaults to BASE_PRICE |
| Method Summary | |
|---|---|
protected void |
addDetail(AdjustmentDetail aDetail)
Do not allow the use of the superclass' addDetail( detail ) method. |
protected void |
addDetail(int seqNumber,
int qty,
AdjustmentDetail aDetail)
|
protected void |
computeAdjustmentAmount()
Computes the change in overall price represented by this LineAdjustment object. |
LineItem |
getParent()
Returns the parent LineItem of this adjustment |
int |
getQuantity()
Returns the quantity of items for this adjustment. |
Money |
getTotal()
Returns the total value for this adjustment. |
protected void |
init()
allocate permanent objects, called by super constructor |
protected void |
reset()
reset created values, called by super set() |
void |
set(Money aBasePrice,
LineItem parent)
Sets the adjusment object values, clearing any old values |
String |
toString()
Provides a string representation of this object. |
static String |
toString(List adjustments)
Provides a string representation for a List of LineAdjustments. |
| Methods inherited from class com.bea.commerce.ebusiness.price.quote.Adjustment |
|---|
checkCurrency, checkCurrency, checkCurrency, getActualPrice, getAdjustmentAmount, getBasePrice, getCurrency, getDetails, getType, markModified, roundBasePrice, set, set, setActualPrice, setAdjustmentAmount, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_DETAILS
| Constructor Detail |
|---|
protected LineAdjustment()
public LineAdjustment(Money aBasePrice,
LineItem parent)
throws QuoteException
QuoteExceptionAdjustmentType| Method Detail |
|---|
public void set(Money aBasePrice,
LineItem parent)
throws QuoteException
QuoteExceptionprotected void init()
init in class Adjustmentprotected void reset()
reset in class Adjustmentprotected void computeAdjustmentAmount()
computeAdjustmentAmount in class Adjustment
protected void addDetail(int seqNumber,
int qty,
AdjustmentDetail aDetail)
throws QuoteException
QuoteExceptionprotected void addDetail(AdjustmentDetail aDetail)
addDetail in class Adjustmentpublic final LineItem getParent()
LineItempublic final int getQuantity()
public final Money getTotal()
public 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 | ||||||||