|
Copyright © 2008 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.QuoteFactory
@Deprecated public class QuoteFactory
A factory for creating objects from the Quote package.
Quote,
LineItem,
LineAdjustment,
OrderAdjustment,
AdjustmentDetail,
Line| Field Summary | |
|---|---|
static String |
NO_CURRENCY
Deprecated See BEA Commerce product offering |
static double |
ZERO
Deprecated See BEA Commerce product offering |
| Constructor Summary | |
|---|---|
QuoteFactory()
Deprecated See BEA Commerce product offering |
|
| Method Summary | |
|---|---|
DiscountPresentation |
createDescription(LineAdjustment adjustment)
Deprecated See BEA Commerce product offering |
List |
createDescriptions(List adjustments)
Deprecated See BEA Commerce product offering |
AdjustmentDetail |
getDetail(AdjustmentDetail detail)
Deprecated See BEA Commerce product offering |
AdjustmentDetail |
getDetail(AdjustmentType type,
Money initialPrice,
Money endPrice,
String computation,
String reason,
Object discountID)
Deprecated See BEA Commerce product offering |
int |
getInt(double value)
Deprecated See BEA Commerce product offering |
LineAdjustment |
getLineAdjustment(Money basePrice,
LineItem parent)
Deprecated See BEA Commerce product offering |
List |
getLineItems(Quote quote,
Line[] lines)
Deprecated See BEA Commerce product offering |
Line[] |
getLines(Quote quote,
Line[] lines)
Deprecated See BEA Commerce product offering |
OrderAdjustment |
getOrderAdjustment(Money basePrice,
Quote parent)
Deprecated See BEA Commerce product offering |
Quote |
getQuote(Line[] lines)
Deprecated See BEA Commerce product offering |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double ZERO
public static final String NO_CURRENCY
| Constructor Detail |
|---|
public QuoteFactory()
| Method Detail |
|---|
public Quote getQuote(Line[] lines)
throws QuoteException
QuoteException
public List getLineItems(Quote quote,
Line[] lines)
throws QuoteException
quote - the Quote to use as the parent of the LineItemslines - array of Lines to base the new LineItems on.
QuoteExceptionLineItem,
Quote,
Line
public Line[] getLines(Quote quote,
Line[] lines)
quote - the Quote to obtain the data from for the Lineslines - array of Lines to populate from the Quote.
LineItem,
Quote,
Linepublic List createDescriptions(List adjustments)
adjustments - List of LineAdjustments.LineAdjustment,
DiscountPresentationpublic DiscountPresentation createDescription(LineAdjustment adjustment)
adjustment - the LineAdjustments to build the presentation fromLineAdjustment,
DiscountPresentation
public LineAdjustment getLineAdjustment(Money basePrice,
LineItem parent)
throws QuoteException
basePrice - the base price for the new LineAdjustment.parent - the LineItem to set as the parent of the adjustment.
QuoteException
public OrderAdjustment getOrderAdjustment(Money basePrice,
Quote parent)
basePrice - the price of the adjustmentparent - the parent Quote for this adjustmentQuote,
OrderAdjustment
public AdjustmentDetail getDetail(AdjustmentType type,
Money initialPrice,
Money endPrice,
String computation,
String reason,
Object discountID)
throws QuoteException
type - the AdjustmentType of this detailinitialPrice - the price of the object
before adjustment.endPrice - the price of the object
after adjustment.computation - a string describing the computation used
to compute the end price from the initial price.reason - the reason for the adjustmentdetailID - the identifier associated with this adjustment.
com.bea.commerce.ebusiness.price.QuoteException
QuoteExceptionAdjustmentDetail,
AdjustmentType,
Money
public AdjustmentDetail getDetail(AdjustmentDetail detail)
throws QuoteException
detail - the detail to copy.
QuoteExceptionAdjustmentDetailpublic int getInt(double value)
value - double value to cast to int.
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||