public class XmlItem extends Object implements Item, Serializable
Item for XML serialization.| Constructor and Description |
|---|
XmlItem() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getGroupToPay()
Get the ID of the
Person who should pay for the item alone
(optional). |
int |
getId()
Get the ID of the data object.
|
Integer |
getPaidBy()
|
Integer |
getPersonToPay()
Get the ID of the
Person who should pay for the item alone
(optional). |
long |
getPrice()
Get the price in the base unit (cents).
|
int |
getQuantity()
Get the quantity of the items (multiplicator for
Item.getPrice() to
calculate Item.getTotal()). |
String |
getTitle()
Get the title of the item
|
long |
getTotal()
Get the total price of the item (price * quantity) in the base unit
(cents).
|
void |
setGroupToPay(Integer groupToPay) |
void |
setId(int id) |
void |
setPaidBy(Integer paidBy) |
void |
setPersonToPay(Integer personToPay) |
void |
setPrice(long price) |
void |
setQuantity(int quantity) |
void |
setTitle(String title) |
void |
setTotal(long total) |
public int getId()
BaseDatapublic long getPrice()
Itempublic int getQuantity()
ItemItem.getPrice() to
calculate Item.getTotal()). This number must be positive.getQuantity in interface Itempublic long getTotal()
Itempublic Integer getPersonToPay()
ItemPerson who should pay for the item alone
(optional).getPersonToPay in interface ItemPerson or nullpublic Integer getGroupToPay()
ItemPerson who should pay for the item alone
(optional).getGroupToPay in interface ItemGroup or nullpublic void setId(int id)
public void setTitle(String title)
public void setPrice(long price)
public void setQuantity(int quantity)
public void setTotal(long total)
public void setPaidBy(Integer paidBy)
public void setPersonToPay(Integer personToPay)
public void setGroupToPay(Integer groupToPay)
Copyright © 2015 illucIT Software GmbH. All rights reserved.