|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.shop.model.ShoppingCartPosition
public class ShoppingCartPosition
A position in the ShoppingCart.
| Constructor Summary | |
|---|---|
ShoppingCartPosition(ShopItem pItem)
The constructor that sets the ShopItem with an amount of
one. |
|
ShoppingCartPosition(ShopItem pItem,
int pAmount)
The constructor that sets the ShopItem and the amount. |
|
| Method Summary | |
|---|---|
int |
getAmount()
Returns the amount. |
ShopItem |
getItem()
Returns the ShopItem. |
long |
getPrice(User pUser)
Returns the total price of the ShoppingCartPosition for the
given User. |
Price |
getPriceObject(User pUser)
returns the Price for a given User. |
void |
setAmount(int pAmount)
Sets the amount. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShoppingCartPosition(ShopItem pItem)
ShopItem with an amount of
one.
pItem - the ShopItem to be set.
public ShoppingCartPosition(ShopItem pItem,
int pAmount)
ShopItem and the amount.
pItem - the ShopItem to be set.pAmount - the amount to be set.| Method Detail |
|---|
public final ShopItem getItem()
ShopItem.
ShopItem.public final int getAmount()
public final void setAmount(int pAmount)
pAmount - the amount to be set.public final long getPrice(User pUser)
ShoppingCartPosition for the
given User.
pUser - the User to get the price for.
ShoppingCartPosition for the
given User.public final Price getPriceObject(User pUser)
Price for a given User.
pUser - the User
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||