Adempiere 3.5.2a

org.compiere.wstore
Class WebBasketLine

java.lang.Object
  extended by org.compiere.wstore.WebBasketLine

public class WebBasketLine
extends Object

Web Basket Line

Version:
$Id: WebBasketLine.java,v 1.2 2006/07/30 00:53:21 jjanke Exp $
Author:
Jorg Janke

Constructor Summary
WebBasketLine(int M_Product_ID, String Name, BigDecimal Qty, BigDecimal Price)
          Web Basket Line
 
Method Summary
 BigDecimal addQuantity(BigDecimal addedQuantity)
          Add Quantity
 int getLine()
          Get Line number
 int getM_Product_ID()
          Get M_Product_ID product
 String getName()
          Get Name
 BigDecimal getPrice()
          Get Price
 BigDecimal getQuantity()
          Get Quantity
 BigDecimal getTotal()
          Get Total (calculate)
protected  void setLine(int line)
          Set Line number
protected  void setM_Product_ID(int M_Product_ID)
          Set M_Product_ID
protected  void setName(String name)
          Set Product Name
protected  void setPrice(BigDecimal price)
          Set Price
 void setQuantity(BigDecimal quantity)
          Set Quantity
 String toString()
          Extended String Representation
 String toStringX()
          Extended String Representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebBasketLine

public WebBasketLine(int M_Product_ID,
                     String Name,
                     BigDecimal Qty,
                     BigDecimal Price)
Web Basket Line

Parameters:
M_Product_ID - product
Name - Name
Qty - Qty
Price - Price
Method Detail

toStringX

public String toStringX()
Extended String Representation

Returns:
info

toString

public String toString()
Extended String Representation

Overrides:
toString in class Object
Returns:
info

getLine

public int getLine()
Get Line number

Returns:
line no

setLine

protected void setLine(int line)
Set Line number

Parameters:
line - no

getM_Product_ID

public int getM_Product_ID()
Get M_Product_ID product

Returns:
product

setM_Product_ID

protected void setM_Product_ID(int M_Product_ID)
Set M_Product_ID

Parameters:
M_Product_ID - id

getName

public String getName()
Get Name

Returns:
name or -?-

setName

protected void setName(String name)
Set Product Name

Parameters:
name -

getPrice

public BigDecimal getPrice()
Get Price

Returns:
price

setPrice

protected void setPrice(BigDecimal price)
Set Price

Parameters:
price -

getQuantity

public BigDecimal getQuantity()
Get Quantity

Returns:
quantity

setQuantity

public void setQuantity(BigDecimal quantity)
Set Quantity

Parameters:
quantity - quantity

addQuantity

public BigDecimal addQuantity(BigDecimal addedQuantity)
Add Quantity

Parameters:
addedQuantity -
Returns:
new quantity

getTotal

public BigDecimal getTotal()
Get Total (calculate)

Returns:
total price

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.