edu.jhu.tmaj.util.data
Class Status

java.lang.Object
  extended by edu.jhu.tmaj.util.data.Status

public final class Status
extends java.lang.Object

Represents the status of a process, indicating where an error has occured, and if so, what is the error.


Constructor Summary
protected Status(boolean isError, java.lang.String errorMessage)
           
 
Method Summary
 java.lang.String getError()
           
static Status getErrorStatus(java.lang.String errorMessage)
           
static Status getOkayStatus()
           
 boolean isError()
           
 boolean isOkay()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Status

protected Status(boolean isError,
                 java.lang.String errorMessage)
Method Detail

getOkayStatus

public static Status getOkayStatus()

getErrorStatus

public static Status getErrorStatus(java.lang.String errorMessage)

isOkay

public final boolean isOkay()

isError

public final boolean isError()

getError

public final java.lang.String getError()