|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.commerce.ebusiness.price.quote.LineItem
The LineItem class represents some quantity of a ProductItem. The class obtains the base and msrp prices from the ProductItem. LineAdjustment objects may be added to the LineItem to adjust the unit price of some sub-quantity of the LineItem. Each LineAdjustment will have a single detail describing the adjustment.
Quote
,
ProductItem
,
LineAdjustment
,
OrderAdjustment
,
AdjustmentDetail
,
AdjustmentType
,
QuoteFactory
,
Money
, Serialized FormConstructor Summary | |
protected |
LineItem()
Constructs a new empty LineItem. |
|
LineItem(Quote quote,
ProductItem product,
int qty)
Constructs a new LineItem for the Quote specified and representing a quantity of the ProductItem specified. |
Method Summary | |
protected void |
addAdjustment(int qty,
AdjustmentDetail detail)
Add a LineAdjustment to the LineItem with the specified AdjustmentDetail. |
protected void |
addAdjustment(int seqNumber,
int qty,
AdjustmentDetail detail)
Add a LineAdjustment to the LineItem with the specified AdjustmentDetail. |
java.util.List |
getAdjustments()
Returns the List of LineAdjustments for this LineItem. |
Money |
getBasePrice()
Returns the base unit price for this item. |
java.lang.String |
getCurrency()
Returns the currency for this adjustment. |
Money |
getMsrp()
Returns the manufacturers suggested retail price unit price for this item. |
ProductItem |
getProductItem()
Returns the ProductItem associated with this LineItem. |
int |
getQty()
Returns the quantity of the ProductItem represented by this LineItem. |
Quote |
getQuote()
returns the Quote object for this LineItem |
Money |
getTotal()
Returns the total price for this LineItem. |
long |
getUID()
returns the unique numeric identifier for the LineItem. |
protected static void |
resetSeqNumber()
reset sequence number |
void |
set(Quote quote,
ProductItem product,
int qty)
Initializes the LineItem for the Quote specified and representing a quantity of the ProductItem specified. |
java.lang.String |
toString()
Provides a string representation for this LineItem. |
static java.lang.String |
toString(java.util.List list)
Provides a string representation for a List of LineItems. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
protected LineItem()
public LineItem(Quote quote, ProductItem product, int qty) throws QuoteException
quote
- the Quote object this LineItem is part of.product
- the ProductItem associated with this LineItem.qty
- the quantity of the ProductItem represented by
this LineItem.ProductItem
Method Detail |
protected static void resetSeqNumber()
public void set(Quote quote, ProductItem product, int qty) throws QuoteException
quote
- the Quote object this LineItem is part of.product
- the ProductItem associated with this LineItem.qty
- the quantity of the ProductItem represented by
this LineItem.ProductItem
public final int getQty()
public final ProductItem getProductItem()
ProductItem
public final Quote getQuote()
Quote
public java.util.List getAdjustments()
LineAdjustment
public final Money getBasePrice()
Money
,
ProductItem
public final Money getMsrp()
Money
,
ProductItem
public Money getTotal()
Money
public final long getUID()
public final java.lang.String getCurrency()
protected void addAdjustment(int qty, AdjustmentDetail detail) throws QuoteException
qty
- the quantity of the item to adjust.aDetail
- an AdjustmentDetail.LineAdjustment
,
AdjustmentDetail
,
Quote
protected void addAdjustment(int seqNumber, int qty, AdjustmentDetail detail) throws QuoteException
seqNumber
- the sequence number for this adjustment.qty
- the quantity of the item to adjust.aDetail
- an AdjustmentDetail.LineAdjustment
,
AdjustmentDetail
,
Quote
public java.lang.String toString()
public static final java.lang.String toString(java.util.List list)
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |