Class semper.payment.PaymentInformationMessage
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 Streamable
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.6 $ $Date: 1997/01/27 12:15:21 $
Author:
N. Asokan (aso@zurich.ibm.com)

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 myStreamSize()
Implementing the Streamable interface
 o readObject(StreamInputInterface)
Implementing the Streamable interface
 o setAmount(Amount)
Set the amount
 o toString()
redefine toString to suit our needs
 o writeObject(StreamOutputInterface)
Implementing the Streamable interface

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
 o writeObject
  public void writeObject(StreamOutputInterface s) throws StreamIOException
Implementing the Streamable interface
Throws: StreamIOException
as usual
 o readObject
  public void readObject(StreamInputInterface s) throws StreamIOException
Implementing the Streamable interface
Throws: StreamIOException
as usual
 o myStreamSize
  public int myStreamSize() throws StreamIOException
Implementing the Streamable interface

All Packages  Class Hierarchy  This Package  Previous  Next  Index