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:
- Name of a payment system which can be used for the proposed
transaction, and
- Amount for the proposed transaction if this payment system
were to be used for it
- Version:
- $Revision: 1.6 $ $Date: 1997/01/27 12:15:21 $
- Author:
- N. Asokan ([email protected])
-
PaymentInformationMessage()
- constructor
-
PaymentInformationMessage(String)
- constructor
-
PaymentInformationMessage(String, Amount)
- constructor
-
equals(PaymentInformationMessage)
- redefine equals to suit our needs
-
getAmount()
- Retrieve the amount
-
getPaymentSystemName()
- Retrieve the payment system name (can be null -- so check for it)
-
hashCode()
- redefine hashCode to suit our needs
-
myStreamSize()
- Implementing the Streamable interface
-
readObject(StreamInputInterface)
- Implementing the Streamable interface
-
setAmount(Amount)
- Set the amount
-
toString()
- redefine toString to suit our needs
-
writeObject(StreamOutputInterface)
- Implementing the Streamable interface
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.
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
PaymentInformationMessage
public PaymentInformationMessage()
- constructor
equals
public boolean equals(PaymentInformationMessage other)
- redefine equals to suit our needs
- Returns:
- true if objects are equal; false otherwise
hashCode
public int hashCode()
- redefine hashCode to suit our needs
- Returns:
- integer hashcode
- Overrides:
- hashCode in class Object
- See Also:
- hashCode
toString
public String toString()
- redefine toString to suit our needs
- Returns:
- a string describing this message
- Overrides:
- toString in class Object
- See Also:
- toString
getPaymentSystemName
public String getPaymentSystemName()
- Retrieve the payment system name (can be null -- so check for it)
- Returns:
- payment system name
getAmount
public Amount getAmount()
- Retrieve the amount
- Returns:
- Amount
setAmount
public synchronized void setAmount(Amount amount)
- Set the amount
- Parameters:
- amount - Amount
- Returns:
- nothing
writeObject
public void writeObject(StreamOutputInterface s) throws StreamIOException
- Implementing the Streamable interface
- Throws: StreamIOException
- as usual
readObject
public void readObject(StreamInputInterface s) throws StreamIOException
- Implementing the Streamable interface
- Throws: StreamIOException
- as usual
myStreamSize
public int myStreamSize() throws StreamIOException
- Implementing the Streamable interface
All Packages Class Hierarchy This Package Previous Next Index