Object
Serializable
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.
Related Topics
Quote
ProductItem
LineAdjustment
OrderAdjustment
AdjustmentDetail
AdjustmentType
QuoteFactory
Money
Object
LineItem
Serializable
Constructor Summary |
|
|
Method Summary |
protected void |
|
protected void |
|
public |
|
public final |
|
public final |
|
public final |
|
public final |
|
public final int |
|
public final |
|
public |
|
public final long |
|
protected static void |
|
public void |
|
public |
|
public static final |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected LineItem()
public LineItem(Quote
quote,ProductItem
product, int qty)
Related Topics
Method Detail |
protected void addAdjustment(int qty,Add a LineAdjustment to the LineItem with the specified AdjustmentDetail. The sequence number is obtained through the quote object.AdjustmentDetail
detail)
throwsQuoteException
QuoteException
Related Topics
LineAdjustment
AdjustmentDetail
Quote
protected void addAdjustment(int seqNumber, int qty,Add a LineAdjustment to the LineItem with the specified AdjustmentDetail. The sequence number is obtained through the quote object.AdjustmentDetail
detail)
throwsQuoteException
QuoteException
Related Topics
LineAdjustment
AdjustmentDetail
Quote
public List
getAdjustments()
Returns the List of LineAdjustments for this LineItem.
Related Topics
public final Money
getBasePrice()
Returns the base unit price for this item.
Related Topics
public final String
getCurrency()
Returns the currency for this adjustment. All money
values for this adjustment are of this currency
public final Money
getMsrp()
Returns the manufacturers suggested retail price unit price for this
item.
Related Topics
public final ProductItem
getProductItem()
Returns the ProductItem associated with this LineItem.
Related Topics
public final int getQty()Returns the quantity of the ProductItem represented by this LineItem.
public final Quote
getQuote()
returns the Quote object for this LineItem
Related Topics
public Money
getTotal()
Returns the total price for this LineItem. The total
is computed by adding the unit prices for each quantity
of the LineItem.
Related Topics
public final long getUID()returns the unique numeric identifier for the LineItem. When LineItems are generated through the QuoteFactory the idnetifiers are guarnteed to be unique.
protected static void resetSeqNumber()reset sequence number
public void set(Initializes the LineItem for the Quote specified and representing a quantity of the ProductItem specified.Quote
quote,ProductItem
product, int qty)
throwsQuoteException
QuoteException
Related Topics
public String
toString()
Provides a string representation for this LineItem.
This method is intended to for debugging and may change
at any time.
Object.toString()
public static finalProvides a string representation for a List of LineItems. This method is intended to for debugging and may change at any time.String
toString(List
list)