Object
Serializable
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.
Related Topics
PriceService
PricingReply
PricingRequest
PricingRequestImpl
DiscountPresentation
ProductItem
Object
Line
Serializable
Constructor Summary |
|
Method Summary |
public |
|
public |
|
public double |
|
public |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void | |
public |
|
public static |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Line(ProductItem
item,
double quantity)
Related Topics
Method Detail |
public List
getDiscountDescriptions()
Retrieves a List of DiscountPresentation objects
corresponding to price adjustments applied to the Line.
Related Topics
public ProductItem
getProductItem()
Retrieves the ProductItem for the Line.
Related Topics
public double getQuantity()Retrieves the quantity for the Line.
public Money
getTotal()
Retrieves the total price for the Line.
public void set(ProductItem
item,
double quantity)
Intializes the Line with specified values.
Related Topics
public void setDiscountDescriptions(List
descriptions)
Sets the List of DiscountPresentation objects for the Line.
Related Topics
public void setProductItem(ProductItem
item)
Sets the ProductItem for the Line.
Related Topics
public void setQuantity(double quantity)Sets the quantity for the Line.
public void setTotal(Money
lineTotal)
Sets the total price for the Line.
public String
toString()
Produces a string representing the data values for this Line.
This method is intended for debugging purposes
and may change at anytime.
Object.toString()
public staticProduces a string representation of an array of Line items. The string is produced by concatenating the results of the toString() method for each Line in the array.String
toString(Line
[] lines)