|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.management.cmdframework.provider.CommandResultImpl
public class CommandResultImpl
Provide a basic implementation for CommandResult.
Constructor Summary | |
---|---|
CommandResultImpl()
|
Method Summary | |
---|---|
void |
addWarnings(java.lang.String msg)
Adds a localized warning message. |
java.lang.Throwable |
getException()
Gets the exception if the command execution failed. |
java.util.Collection |
getMessages()
Gets warning messages if there is any. |
java.lang.Object |
getResult()
Gets the result of the command execution if the execution is successful. |
boolean |
isSuccessful()
Returns if the last command execution is successful or not. |
void |
reset()
This method should be called first to fill in the execution result. |
void |
setException(java.lang.Throwable thisThrowable)
Sets the exception for result if any exception is thrown. |
void |
setResult(java.lang.Object obj)
Adds an object command execution result. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandResultImpl()
Method Detail |
---|
public void reset()
public boolean isSuccessful()
CommandResult
isSuccessful
in interface CommandResult
public java.util.Collection getMessages()
CommandResult
getMessages
in interface CommandResult
public java.lang.Throwable getException()
CommandResult
getException
in interface CommandResult
public java.lang.Object getResult()
CommandResult
getResult
in interface CommandResult
public void setException(java.lang.Throwable thisThrowable)
public void addWarnings(java.lang.String msg)
public void setResult(java.lang.Object obj)
public java.lang.String toString()
toString
in class java.lang.Object
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |