All Packages Class Hierarchy This Package Previous Next Index
Class semper.payment.CashLikePurse
java.lang.Object
|
+----semper.payment.Purse
|
+----semper.payment.CashLikePurse
- public abstract class CashLikePurse
- extends Purse
- implements Serializable
Generic representation of a cash-like payment system
- Version:
- $Revision: 1.7 $ $Date: 1998/03/12 10:53:02 $
- Author:
- N. Asokan ([email protected])
- See Also:
- Purse
-
CashLikePurse()
-
-
doPurseOp(TinguinSession, String)
- Perform a special purse operation.
-
getPurseOpsList()
- Returns a vector containing names of supported special purse
operations.
CashLikePurse
public CashLikePurse()
getPurseOpsList
public Vector getPurseOpsList()
- Returns a vector containing names of supported special purse
operations. These names will be used by the purse management
application to present a menu to the user. It is important that
doPurseOp
knows about all the commands defined by
this method.
- Used-by: PurseManagement
- Returns:
- Vector containing names of operations
- Overrides:
- getPurseOpsList in class Purse
- See Also:
- doPurseOp
doPurseOp
public boolean doPurseOp(TinguinSession dis,
String cmd) throws PaymentServiceException
- Perform a special purse operation.
- Parameters:
- cmd - name of the operation; this must be one of the strings
returned by
getPurseOpsList
method. It is important
that this method knows about all the operations defined by the
getPurseOpsList
method. If we do not understand the
requested operation, we pass it up.
- Used-by: PurseManagement
- a - tinguin session
- Returns:
- true/false: if we return true, the user will be presented again
with the list of operations from
getPurseOpsList
; if we
return false, the user will be returned to the main purse management menu.
This implementation returns false.
- Throws: PaymentServiceException
- if the operation cannot be performed
- Overrides:
- doPurseOp in class Purse
- See Also:
- getPurseOpsList
All Packages Class Hierarchy This Package Previous Next Index