com.ibm.jtopenlite.command
Class CommandResult

java.lang.Object
  extended by com.ibm.jtopenlite.command.CommandResult

public class CommandResult
extends Object

The result of calling a program or command.

See Also:
CommandConnection.call(java.lang.String, java.lang.String, com.ibm.jtopenlite.command.Parameter[]), CommandConnection.execute(java.lang.String)

Method Summary
 Message[] getMessages()
          Returns any messages that were issued during the call.
 int getReturnCode()
          Returns the return code from the call, if any.
 boolean succeeded()
          Returns true if the call was successful.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

succeeded

public boolean succeeded()
Returns true if the call was successful.


getReturnCode

public int getReturnCode()
Returns the return code from the call, if any.


getMessages

public Message[] getMessages()
Returns any messages that were issued during the call.


toString

public String toString()
Overrides:
toString in class Object