    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.

##

Status()

##

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

##

Status

     public Status()

##

toString

     public String toString()

  Create a printable string representing this status

  Returns:
    string representation
  Overrides:
    toString in class Object

isSuccess

     public abstract boolean isSuccess()

  See if this status represents success

  Returns:
    true if this status represents success

isInvalidPIN

     public abstract boolean isInvalidPIN()

  See if this status represents an invalid PIN

  Returns:
    true if this status represents an invalid PIN

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