Object
A factory for creating objects from the Quote package.
Related Topics
Quote
LineItem
LineAdjustment
OrderAdjustment
AdjustmentDetail
Line
Object
QuoteFactory
Field Summary |
public static final |
|
public static final double |
|
Constructor Summary |
|
Method Summary |
public |
|
public |
|
public | |
public |
|
public int |
|
public |
|
public |
|
public | |
public |
|
public |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String
NO_CURRENCY
public static final double ZERO
Constructor Detail |
public QuoteFactory()
Method Detail |
publicCreate a DiscountPresentation object corresponding to the LineAdjusment object passed into the method.DiscountPresentation
createDescription(LineAdjustment
adjustment)
Related Topics
LineAdjustment
DiscountPresentation
publicCreate a List of DiscountPresentation objects corresponding to the List of LineAdjustment objects passed into the method.List
createDescriptions(List
adjustments)
Related Topics
LineAdjustment
DiscountPresentation
publicObtain a fresh AdjustmentDetail with the specified values.AdjustmentDetail
getDetail(AdjustmentType
type,Money
initialPrice,Money
endPrice,String
computation,String
reason,Object
discountID)
throwsQuoteException
QuoteException
Related Topics
AdjustmentDetail
AdjustmentType
Money
publicObtain a fresh AdjustmentDetail based on the detail specifiedAdjustmentDetail
getDetail(AdjustmentDetail
detail)
throwsQuoteException
QuoteException
Related Topics
public int getInt(double value)Obtain the integer portion of a double by casting it to an int.
publicObtain a fresh LineAdjustment object.LineAdjustment
getLineAdjustment(Money
basePrice,LineItem
parent)
throwsQuoteException
QuoteException
publicProduce a List of LineItems for the given Quote and array of Lines. The List of LineItems is in the same natural order as the array of Lines specified.List
getLineItems(Quote
quote,Line
[] lines)
throwsQuoteException
QuoteException
Related Topics
publicPopulate the array of Lines specified with the data supplied in the Quote. The Lines returned will be in the same order as the LineItems in the Quote.Line
[] getLines(Quote
quote,Line
[] lines)
Related Topics
publicObtain a fresh LineAdjustment object based on the specified values and add the specified detail to the adjustment.OrderAdjustment
getOrderAdjustment(Money
basePrice,Quote
parent)
Related Topics
publicCreate a new Quote object based on the array of Lines specified.Quote
getQuote(Line
[] lines)
throwsQuoteException
QuoteException