|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.commerce.ebusiness.price.service.Line
This class represents some quantity of a ProductItem. Instances of the class are used as input to the Price service. Each Line item may be adorned with a List of DiscountPresentation objects corresponding to adjustments applied to the price of the Line.
PriceService
,
PricingReply
,
PricingRequest
,
PricingRequestImpl
,
DiscountPresentation
,
ProductItem
,
Serialized FormConstructor Summary | |
Line(ProductItem item,
double quantity)
Constructs a new Line with the speicified quantity and ProductItem. |
Method Summary | |
List |
getDiscountDescriptions()
Retrieves a List of DiscountPresentation objects corresponding to price adjustments applied to the Line. |
ProductItem |
getProductItem()
Retrieves the ProductItem for the Line. |
double |
getQuantity()
Retrieves the quantity for the Line. |
Money |
getTotal()
Retrieves the total price for the Line. |
void |
set(ProductItem item,
double quantity)
Intializes the Line with specified values. |
void |
setDiscountDescriptions(List descriptions)
Sets the List of DiscountPresentation objects for the Line. |
void |
setProductItem(ProductItem item)
Sets the ProductItem for the Line. |
void |
setQuantity(double quantity)
Sets the quantity for the Line. |
void |
setTotal(Money lineTotal)
Sets the total price for the Line. |
String |
toString()
Produces a string representing the data values for this Line. |
static String |
toString(Line[] lines)
Produces a string representation of an array of Line items. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Line(ProductItem item, double quantity)
ProductItem
Method Detail |
public List getDiscountDescriptions()
DiscountPresentation
public ProductItem getProductItem()
ProductItem
public double getQuantity()
public Money getTotal()
public void set(ProductItem item, double quantity)
item
- the ProductItem for the Line.quantity
- the quantity of the ProductItem.ProductItem
public void setDiscountDescriptions(List descriptions)
descriptions
- a List of DiscountPresentation objectsDiscountPresentation
public void setProductItem(ProductItem item)
ProductItem
public void setQuantity(double quantity)
public void setTotal(Money lineTotal)
public String toString()
public static String toString(Line[] lines)
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |