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
-
ST_PAY
- "pay" service
-
ST_RECEIVE_PAYMENT
- "receive payment" service
-
ST_REVERSE_PAYMENT
- "reverse payment" service
-
ST_REVERSE_RECEIVED_PAYMENT
- "reverse received payment" service
-
ST_UNKNOWN
- Unknown service
-
ServiceType()
- Constructor without arguments for serializer
-
getTypeCode()
- Return the integer type value.
-
isValueMovedIn()
- Does this service move value into the purse?
-
isValueMovedOut()
- Does this service move value out of the purse?
-
setTypeCode(int)
- Set the integer service type value.
-
toString()
- redefine toString
ST_UNKNOWN
public static final ServiceType ST_UNKNOWN
- Unknown service
ST_PAY
public static final ServiceType ST_PAY
- "pay" service
ST_RECEIVE_PAYMENT
public static final ServiceType ST_RECEIVE_PAYMENT
- "receive payment" service
ST_REVERSE_PAYMENT
public static final ServiceType ST_REVERSE_PAYMENT
- "reverse payment" service
ST_REVERSE_RECEIVED_PAYMENT
public static final ServiceType ST_REVERSE_RECEIVED_PAYMENT
- "reverse received payment" service
ServiceType
public ServiceType()
- Constructor without arguments for serializer
isValueMovedIn
public boolean isValueMovedIn()
- Does this service move value into the purse?
- Returns:
- true if the service primitive moves value into the purse
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
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
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
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