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.DiscountPresentationcreateDescription(LineAdjustmentadjustment)
Related Topics
LineAdjustment
DiscountPresentation
publicCreate a List of DiscountPresentation objects corresponding to the List of LineAdjustment objects passed into the method.ListcreateDescriptions(Listadjustments)
Related Topics
LineAdjustment
DiscountPresentation
publicObtain a fresh AdjustmentDetail with the specified values.AdjustmentDetailgetDetail(AdjustmentTypetype,MoneyinitialPrice,MoneyendPrice,Stringcomputation,Stringreason,ObjectdiscountID)
throwsQuoteException
QuoteException
Related Topics
AdjustmentDetail
AdjustmentType
Money
publicObtain a fresh AdjustmentDetail based on the detail specifiedAdjustmentDetailgetDetail(AdjustmentDetaildetail)
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.LineAdjustmentgetLineAdjustment(MoneybasePrice,LineItemparent)
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.ListgetLineItems(Quotequote,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(Quotequote,Line[] lines)
Related Topics
publicObtain a fresh LineAdjustment object based on the specified values and add the specified detail to the adjustment.OrderAdjustmentgetOrderAdjustment(MoneybasePrice,Quoteparent)
Related Topics
publicCreate a new Quote object based on the array of Lines specified.QuotegetQuote(Line[] lines)
throwsQuoteException
QuoteException