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 Serializable
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.3 $ $Date: 1997/06/16 12:55:55 $
Author:
N. Asokan ([email protected])
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 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

Variables

 o TS_CL_UNKOWN
 public static final 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index