All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.PaymentInformationMessage

java.lang.Object
   |
   +----semper.payment.PaymentInformationMessage

public class PaymentInformationMessage
extends Object
implements Serializable
A message element containing all the information necessary during the negotiation phase about a specific potential payment using a specific payment system. A negotiation message contains a list of such message elements. Each elements contains the following attributes:

Version:
$Revision: 1.7 $ $Date: 1997/06/16 12:55:59 $
Author:
N. Asokan ([email protected])

Constructor Index

 o PaymentInformationMessage()
constructor
 o PaymentInformationMessage(String)
constructor
 o PaymentInformationMessage(String, Amount)
constructor

Method Index

 o equals(PaymentInformationMessage)
redefine equals to suit our needs
 o getAmount()
Retrieve the amount
 o getPaymentSystemName()
Retrieve the payment system name (can be null -- so check for it)
 o hashCode()
redefine hashCode to suit our needs
 o setAmount(Amount)
Set the amount
 o toString()
redefine toString to suit our needs

Constructors

 o PaymentInformationMessage
 public PaymentInformationMessage(String payment_system_name,
                                  Amount amount)
constructor

Parameters:
payment_system_name - Name of a Payment System which can be used for the proposed transaction
amount - Amount for the proposed transaction if this payment system is to be used to carry it out.
 o PaymentInformationMessage
 public PaymentInformationMessage(String payment_system_name)
constructor

Parameters:
payment_system_name - Name of a Payment System which can be used for the proposed transaction
 o PaymentInformationMessage
 public PaymentInformationMessage()
constructor

Methods

 o equals
 public boolean equals(PaymentInformationMessage other)
redefine equals to suit our needs

Returns:
true if objects are equal; false otherwise
 o hashCode
 public int hashCode()
redefine hashCode to suit our needs

Returns:
integer hashcode
Overrides:
hashCode in class Object
See Also:
hashCode
 o toString
 public String toString()
redefine toString to suit our needs

Returns:
a string describing this message
Overrides:
toString in class Object
See Also:
toString
 o getPaymentSystemName
 public String getPaymentSystemName()
Retrieve the payment system name (can be null -- so check for it)

Returns:
payment system name
 o getAmount
 public Amount getAmount()
Retrieve the amount

Returns:
Amount
 o setAmount
 public synchronized void setAmount(Amount amount)
Set the amount

Parameters:
amount - Amount
Returns:
nothing

All Packages  Class Hierarchy  This Package  Previous  Next  Index