|
© 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.QuoteFactory
A factory for creating objects from the Quote package.
Quote,
LineItem,
LineAdjustment,
OrderAdjustment,
AdjustmentDetail,
Line| Field Summary | |
static java.lang.String |
NO_CURRENCY
|
static double |
ZERO
|
| Constructor Summary | |
QuoteFactory()
Construct a new QuoteFactory. |
|
| Method Summary | |
DiscountPresentation |
createDescription(LineAdjustment adjustment)
Create a DiscountPresentation object corresponding to the LineAdjusment object passed into the method. |
java.util.List |
createDescriptions(java.util.List adjustments)
Create a List of DiscountPresentation objects corresponding to the List of LineAdjustment objects passed into the method. |
AdjustmentDetail |
getDetail(AdjustmentDetail detail)
Obtain a fresh AdjustmentDetail based on the detail specified |
AdjustmentDetail |
getDetail(AdjustmentType type,
Money initialPrice,
Money endPrice,
java.lang.String computation,
java.lang.String reason,
java.lang.Object discountID)
Obtain a fresh AdjustmentDetail with the specified values. |
int |
getInt(double value)
Obtain the integer portion of a double by casting it to an int. |
LineAdjustment |
getLineAdjustment(Money basePrice,
LineItem parent)
Obtain a fresh LineAdjustment object. |
java.util.List |
getLineItems(Quote quote,
Line[] lines)
Produce a List of LineItems for the given Quote and array of Lines. |
Line[] |
getLines(Quote quote,
Line[] lines)
Populate the array of Lines specified with the data supplied in the Quote. |
OrderAdjustment |
getOrderAdjustment(Money basePrice,
Quote parent)
Obtain a fresh LineAdjustment object based on the specified values and add the specified detail to the adjustment. |
Quote |
getQuote(Line[] lines)
Create a new Quote object based on the array of Lines specified. |
| 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 java.lang.String NO_CURRENCY
| Constructor Detail |
public QuoteFactory()
| Method Detail |
public Quote getQuote(Line[] lines)
throws QuoteException
public java.util.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.LineItem,
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 java.util.List createDescriptions(java.util.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.
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,
java.lang.String computation,
java.lang.String reason,
java.lang.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.AdjustmentDetail,
AdjustmentType,
Money
public AdjustmentDetail getDetail(AdjustmentDetail detail)
throws QuoteException
detail - the detail to copy.AdjustmentDetailpublic int getInt(double value)
value - double value to cast to int.
|
© 2002 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||