Class semper.payment.ServiceType
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 Streamable
Description of service types. Objects of this class are used to identify a specific service defined in the PurseServices hierarchy.
Version:
$Revision: 1.2 $ $Date: 1997/01/27 10:56:38 $
Author:
N. Asokan (aso@zurich.ibm.com)
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 isValueMovedIn()
Does this service move value into the purse?
 o isValueMovedOut()
Does this service move value out of the purse?
 o myStreamSize()
Implementing the Streamable interface
 o readObject(StreamInputInterface)
Implementing the Streamable interface
 o toString()
redefine toString
 o writeObject(StreamOutputInterface)
Implementing the Streamable interface

Variables

 o ST_UNKNOWN
  public final static ServiceType ST_UNKNOWN
Unknown service
 o ST_PAY
  public final static ServiceType ST_PAY
"pay" service
 o ST_RECEIVE_PAYMENT
  public final static ServiceType ST_RECEIVE_PAYMENT
"receive payment" service
 o ST_REVERSE_PAYMENT
  public final static ServiceType ST_REVERSE_PAYMENT
"reverse payment" service
 o ST_REVERSE_RECEIVED_PAYMENT
  public final static 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 toString
  public String toString()
redefine toString
Returns:
a string describing this service
Overrides:
toString in class Object
 o writeObject
  public void writeObject(StreamOutputInterface s) throws StreamIOException
Implementing the Streamable interface
Throws: StreamIOException
as usual
 o readObject
  public void readObject(StreamInputInterface s) throws StreamIOException
Implementing the Streamable interface
Throws: StreamIOException
as usual
 o myStreamSize
  public int myStreamSize() throws StreamIOException
Implementing the Streamable interface

All Packages  Class Hierarchy  This Package  Previous  Next  Index