|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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. |
List |
getAdjustments()
Returns the List of LineAdjustments for this LineItem. |
Money |
getBasePrice()
Returns the base unit price for this item. |
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. |
String |
toString()
Provides a string representation for this LineItem. |
static String |
toString(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
QuoteException
ProductItem
Method Detail |
protected void addAdjustment(int qty, AdjustmentDetail detail) throws QuoteException
qty
- the quantity of the item to adjust.
QuoteException
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.
QuoteException
LineAdjustment
,
AdjustmentDetail
,
Quote
public List getAdjustments()
LineAdjustment
public final Money getBasePrice()
Money
,
ProductItem
public final String getCurrency()
public final Money getMsrp()
Money
,
ProductItem
public final ProductItem getProductItem()
ProductItem
public final int getQty()
public final Quote getQuote()
Quote
public Money getTotal()
Money
public final long getUID()
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.
QuoteException
ProductItem
public String toString()
public static final String toString(List list)
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |