Class semper.payment.CashLikeTransactionState
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.CashLikeTransactionState

java.lang.Object
   |
   +----semper.payment.PaymentTransactionState
           |
           +----semper.payment.CashLikeTransactionState

public class CashLikeTransactionState
extends PaymentTransactionState
implements Streamable
Description of cash like transaction states. Objects of this class are used to identify a specific state of an cash like transaction. Typically, adapters of cash like payment systems are expected to instantiate state objects as objects of this class. This class provides various standard state values as constants (e.g. TS_CL_UNKNOWN). The intent is that once a state object has been created, the setCashLikeState method will be used to set the state based on one of these pre-defined constants. The setState method of the parent class should be used by the adapters to set the major status values.
Version:
$Revision: 1.2 $ $Date: 1997/01/27 10:56:19 $
Author:
N. Asokan (aso@zurich.ibm.com)
See Also:
PurseServices, PaymentTransactionState

Variable Index

 o TS_CL_UNKOWN
cash-like transaction state: unknown

Constructor Index

 o CashLikeTransactionState()
Constructor without arguments for serializer

Method Index

 o equals(Object)
Override equals:
If the input object cannot be cast into our class, we simply invoke the equals method from the parent class.
 o hashCode()
Override hashCode.
 o myStreamSize()
Implementing the Streamable interface
 o readObject(StreamInputInterface)
Implementing the Streamable interface
 o setCashLikeState(CashLikeTransactionState)
Set the value of the cash-like sub state to be the same as the state corresponding to the input parameter.
 o toString()
redefine toString
 o writeObject(StreamOutputInterface)
Implementing the Streamable interface

Variables

 o TS_CL_UNKOWN
  public final static CashLikeTransactionState TS_CL_UNKOWN
cash-like transaction state: unknown

Constructors

 o CashLikeTransactionState
  public CashLikeTransactionState()
Constructor without arguments for serializer

Methods

 o setCashLikeState
  public synchronized void setCashLikeState(CashLikeTransactionState clts)
Set the value of the cash-like sub state to be the same as the state corresponding to the input parameter. The intent is that pre-defined constant state values (e.g. TS_CL_UNKNOWN) will be used as the input parameter to this method.
Parameters:
abts - An cash-like state object
Returns:
nothing
 o toString
  public String toString()
redefine toString
Returns:
a string describing this service
Overrides:
toString in class PaymentTransactionState
 o equals
  public boolean equals(Object o)
Override equals:
If the input object cannot be cast into our class, we simply invoke the equals method from the parent class. Otherwise, we return true if the internal integer state code of the input is the same as ours.
Overrides:
equals in class PaymentTransactionState
See Also:
equals
 o hashCode
  public int hashCode()
Override hashCode. We redefine hashCode as the sum of the integer state code and the parent class' hashCode
Overrides:
hashCode in class PaymentTransactionState
See Also:
hashCode
 o writeObject
  public void writeObject(StreamOutputInterface s) throws StreamIOException
Implementing the Streamable interface
Throws: StreamIOException
as usual
Overrides:
writeObject in class PaymentTransactionState
 o readObject
  public void readObject(StreamInputInterface s) throws StreamIOException
Implementing the Streamable interface
Throws: StreamIOException
as usual
Overrides:
readObject in class PaymentTransactionState
 o myStreamSize
  public int myStreamSize() throws StreamIOException
Implementing the Streamable interface
Overrides:
myStreamSize in class PaymentTransactionState

All Packages  Class Hierarchy  This Package  Previous  Next  Index