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 ([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
-
isValueMovedIn()
- Does this service move value into the purse?
-
isValueMovedOut()
- Does this service move value out of the purse?
-
myStreamSize()
- Implementing the Streamable interface
-
readObject(StreamInputInterface)
- Implementing the Streamable interface
-
toString()
- redefine toString
-
writeObject(StreamOutputInterface)
- Implementing the Streamable interface
ST_UNKNOWN
public final static ServiceType ST_UNKNOWN
- Unknown service
ST_PAY
public final static ServiceType ST_PAY
- "pay" service
ST_RECEIVE_PAYMENT
public final static ServiceType ST_RECEIVE_PAYMENT
- "receive payment" service
ST_REVERSE_PAYMENT
public final static ServiceType ST_REVERSE_PAYMENT
- "reverse payment" service
ST_REVERSE_RECEIVED_PAYMENT
public final static 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
toString
public String toString()
- redefine toString
- Returns:
- a string describing this service
- Overrides:
- toString in class Object
writeObject
public void writeObject(StreamOutputInterface s) throws StreamIOException
- Implementing the Streamable interface
- Throws: StreamIOException
- as usual
readObject
public void readObject(StreamInputInterface s) throws StreamIOException
- Implementing the Streamable interface
- Throws: StreamIOException
- as usual
myStreamSize
public int myStreamSize() throws StreamIOException
- Implementing the Streamable interface
All Packages Class Hierarchy This Package Previous Next Index