All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class banking.Status

java.lang.Object
   |
   +----banking.Status

public abstract class Status
extends Object
Abstract base class for representation of various status codes returned by bank for a transaction. The bank will create appropriate subclasses.


Constructor Index

 o Status()

Method Index

 o getMessage()
Accessor for message describing this status (used if status is not success)
 o isInvalidPIN()
See if this status represents an invalid PIN
 o isSuccess()
See if this status represents success
 o toString()
Create a printable string representing this status

Constructors

 o Status
 public Status()

Methods

 o toString
 public String toString()
Create a printable string representing this status

Returns:
string representation
Overrides:
toString in class Object
 o isSuccess
 public abstract boolean isSuccess()
See if this status represents success

Returns:
true if this status represents success
 o isInvalidPIN
 public abstract boolean isInvalidPIN()
See if this status represents an invalid PIN

Returns:
true if this status represents an invalid PIN
 o getMessage
 public abstract String getMessage()
Accessor for message describing this status (used if status is not success)

Returns:
description of the problem

All Packages  Class Hierarchy  This Package  Previous  Next  Index