com.ibm.jsdt.support.deploymenthelper
Class OperationStatus

java.lang.Object
  extended by com.ibm.jsdt.support.deploymenthelper.OperationStatus
Direct Known Subclasses:
ProgramOutput

public class OperationStatus
extends java.lang.Object

OperationStatus object represents the outcome of an operation. This object is returned by methods providing details regarding failure, exceptions, or any messages concerning the operation.


Field Summary
static int ERROR
          Error status
static int INFO
          Information status
static int OK
          Normal status
static int WARNING
          Warning status
 
Constructor Summary
OperationStatus()
          Sole constructor
 
Method Summary
 java.lang.Throwable getException()
          Get the exception
 java.lang.String getMessage()
          Get the message
 int getSeverity()
          Get severity status
 boolean isOK()
          Verify the status is normal
protected  void setException(java.lang.Throwable e)
          Set the exception
protected  void setMessage(java.lang.String msg)
          Set the message
protected  void setSeverity(int severity)
          Set severity status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static final int OK
Normal status

See Also:
Constant Field Values

INFO

public static final int INFO
Information status

See Also:
Constant Field Values

WARNING

public static final int WARNING
Warning status

See Also:
Constant Field Values

ERROR

public static final int ERROR
Error status

See Also:
Constant Field Values
Constructor Detail

OperationStatus

public OperationStatus()
Sole constructor

Method Detail

setSeverity

protected void setSeverity(int severity)
Set severity status

Parameters:
severity - - integer severity level

getSeverity

public int getSeverity()
Get severity status

Returns:
severity status

setMessage

protected void setMessage(java.lang.String msg)
Set the message

Parameters:
msg - - message need to be displayed.

getMessage

public java.lang.String getMessage()
Get the message

Returns:
message

setException

protected void setException(java.lang.Throwable e)
Set the exception

Parameters:
e - - exception message.

getException

public java.lang.Throwable getException()
Get the exception

Returns:
exception

isOK

public boolean isOK()
Verify the status is normal

Returns:
OK status