All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.BApp.bargainer.messages.Item

java.lang.Object
   |
   +----semper.BApp.bargainer.messages.Item

public class Item
extends Object
implements Serializable

Constructor Index

 o Item()
Constructs a new Item object.
 o Item(String, String, Integer, Float, Float)
Constructs a new Item object.

Method Index

 o getCode()
Returns the item's code.
 o getDescription()
Returns the item's description.
 o getDifferencesFrom(Item, String)
 o getNetPrice()
Returns the item's net price.
 o getQuantity()
Returns the item's quantity.
 o getSubTotal()
Returns the subtotal of the item.
 o getVat()
Returns the item's vat.
 o setCode(String)
Sets the item's code.
 o setDescription(String)
Sets the item's description.
 o setNetPrice(Float)
Sets the item's net price.
 o setQuantity(Integer)
Sets the item's quantity.
 o setVat(Float)
Sets the item's vat.

Constructors

 o Item
 public Item(String code,
             String description,
             Integer quantity,
             Float netPrice,
             Float vat)
Constructs a new Item object.

Parameters:
code - this item's code
description - this item's description
quantity - this item's quantity
netPrice - this item's net price
vat - this item's vat
 o Item
 public Item()
Constructs a new Item object.

Methods

 o setCode
 public void setCode(String code)
Sets the item's code.

Parameters:
code - the item's code
 o getCode
 public String getCode()
Returns the item's code.

 o setDescription
 public void setDescription(String description)
Sets the item's description.

Parameters:
description - the item's description
 o getDescription
 public String getDescription()
Returns the item's description.

 o setQuantity
 public void setQuantity(Integer quantity)
Sets the item's quantity.

Parameters:
quantity - the item's quantity
 o getQuantity
 public Integer getQuantity()
Returns the item's quantity.

 o setNetPrice
 public void setNetPrice(Float netPrice)
Sets the item's net price.

Parameters:
netPrice - the item's net price
 o getNetPrice
 public Float getNetPrice()
Returns the item's net price.

 o setVat
 public void setVat(Float vat)
Sets the item's vat.

Parameters:
vat - the item's vat
 o getVat
 public Float getVat()
Returns the item's vat.

 o getSubTotal
 public Float getSubTotal()
Returns the subtotal of the item.

 o getDifferencesFrom
 public String getDifferencesFrom(Item old,
                                  String code)

All Packages  Class Hierarchy  This Package  Previous  Next  Index