All Packages Class Hierarchy This Package Previous Next Index
Class semper.txlayer.extensions.payment.PaymentItem
java.lang.Object
|
+----semper.txlayer.extensions.payment.PaymentItem
- public class PaymentItem
- extends Object
- implements Serializable, Transferable, Containable, Describable
This class describes a "payment item." The notion of an item is
defined by the txlayer.
- Version:
- $Revision: 1.1 $ $Date: 1997/10/14 14:54:09 $
- Author:
- N. Asokan ([email protected])
- See Also:
- PaymentTransferTransaction, PaymentDescription
-
PaymentItem(PaymentEntity, Amount)
- Constructor with typical set of parameters
-
PaymentItem(PaymentEntity, String, Amount, Vector, Vector)
- Constructor with full set of parameters
-
getAmount()
- Get the amount
-
getDescription()
- Create a description of this item
-
getMyAlias()
- Get our own name string.
-
getPeer()
- Get the peer identity
-
getPSList()
- Get the restriction on payment systems
-
getPursesList()
- Get the restriction on purses
-
getTransferTransaction()
- Create a payment transfer transaction.
-
registerContainer(Container)
- TODO: whatever this method was intended to do, needs to be
implemented.
-
toString()
- Overriding the toString method.
PaymentItem
public PaymentItem(PaymentEntity peer,
String my_alias,
Amount amount,
Vector PS_list,
Vector purses_list)
- Constructor with full set of parameters
- Parameters:
- peer - identity of peer
- amount - amount involved in the transfer
- PS_list - Restriction list: this payment must be carried out
only via one of the payment systems specified in this list.
- purses_list - Restriction list: this payment must be carried out
only via one of the purses specified in this list.
PaymentItem
public PaymentItem(PaymentEntity peer,
Amount amount)
- Constructor with typical set of parameters
- Parameters:
- peer - identity of peer
- amount - amount involved in the transfer
toString
public String toString()
- Overriding the toString method.
- Returns:
- String string describing the payment
- Overrides:
- toString in class Object
getTransferTransaction
public TransferTransaction getTransferTransaction()
- Create a payment transfer transaction.
- Returns:
- a PaymentTransfer object to transfer this item
registerContainer
public boolean registerContainer(Container c)
- TODO: whatever this method was intended to do, needs to be
implemented.
getDescription
public Description getDescription()
- Create a description of this item
getAmount
public Amount getAmount()
- Get the amount
- Returns:
- the amount of this payment
getPeer
public PaymentEntity getPeer()
- Get the peer identity
- Returns:
- the identity of the peer
getMyAlias
public String getMyAlias()
- Get our own name string. Beware, it may be null.
- Returns:
- the name by which we want to be known to the peer
getPSList
public Vector getPSList()
- Get the restriction on payment systems
- Returns:
- Vector containing a list of payment systems
getPursesList
public Vector getPursesList()
- Get the restriction on purses
- Returns:
- Vector containing a list of purse names
All Packages Class Hierarchy This Package Previous Next Index