All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.ServiceType

java.lang.Object
   |
   +----semper.payment.ServiceType

public class ServiceType
extends Object
implements Serializable
Description of service types. Objects of this class are used to identify a specific service defined in the PurseServices hierarchy.

Version:
$Revision: 1.5 $ $Date: 1997/06/16 12:56:04 $
Author:
N. Asokan ([email protected])
See Also:
PurseServices, AccountBasedServiceType, CashLikeServiceType

Variable Index

 o ST_PAY
"pay" service
 o ST_RECEIVE_PAYMENT
"receive payment" service
 o ST_REVERSE_PAYMENT
"reverse payment" service
 o ST_REVERSE_RECEIVED_PAYMENT
"reverse received payment" service
 o ST_UNKNOWN
Unknown service

Constructor Index

 o ServiceType()
Constructor without arguments for serializer

Method Index

 o getTypeCode()
Return the integer type value.
 o isValueMovedIn()
Does this service move value into the purse?
 o isValueMovedOut()
Does this service move value out of the purse?
 o setTypeCode(int)
Set the integer service type value.
 o toString()
redefine toString

Variables

 o ST_UNKNOWN
 public static final ServiceType ST_UNKNOWN
Unknown service

 o ST_PAY
 public static final ServiceType ST_PAY
"pay" service

 o ST_RECEIVE_PAYMENT
 public static final ServiceType ST_RECEIVE_PAYMENT
"receive payment" service

 o ST_REVERSE_PAYMENT
 public static final ServiceType ST_REVERSE_PAYMENT
"reverse payment" service

 o ST_REVERSE_RECEIVED_PAYMENT
 public static final ServiceType ST_REVERSE_RECEIVED_PAYMENT
"reverse received payment" service

Constructors

 o ServiceType
 public ServiceType()
Constructor without arguments for serializer

Methods

 o isValueMovedIn
 public boolean isValueMovedIn()
Does this service move value into the purse?

Returns:
true if the service primitive moves value into the purse
 o isValueMovedOut
 public boolean isValueMovedOut()
Does this service move value out of the purse?

Returns:
true if the service primitive moves value out of the purse
 o setTypeCode
 protected void setTypeCode(int type)
Set the integer service type value. This is intended to be used in the constructors of subclasses. Later, subclasses can access this code using the getTypeCode method.

Parameters:
code - integer code value
See Also:
setTypeCode
 o getTypeCode
 protected int getTypeCode()
Return the integer type value. This is intended to be used by objects of subclasses to retrieve the code value set during their construction

Returns:
code integer code
See Also:
setTypeCode
 o toString
 public String toString()
redefine toString

Returns:
a string describing this service
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index