org.eclipse.ocl.examples.debug.vm.response
Class VMResponse

java.lang.Object
  extended by org.eclipse.ocl.examples.debug.vm.response.VMResponse
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
VMBreakpointResponse, VMConnectResponse, VMDetailResponse, VMStackFrameResponse, VMVariableResponse

public class VMResponse
extends java.lang.Object
implements java.io.Serializable

A VMResponse is set by the VM to respond to a VMRequest.

See Also:
Serialized Form

Field Summary
 int status
           
static int STATUS_ERROR
           
static int STATUS_OK
           
 
Constructor Summary
protected VMResponse()
           
protected VMResponse(int status)
           
 
Method Summary
static VMResponse createERROR()
           
static VMResponse createOK()
           
 boolean isOK()
           
static java.lang.String toStatusString(int status)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_OK

public static final int STATUS_OK
See Also:
Constant Field Values

STATUS_ERROR

public static final int STATUS_ERROR
See Also:
Constant Field Values

status

public final int status
Constructor Detail

VMResponse

protected VMResponse()

VMResponse

protected VMResponse(int status)
Method Detail

createERROR

@NonNull
public static VMResponse createERROR()

createOK

@NonNull
public static VMResponse createOK()

toStatusString

@NonNull
public static java.lang.String toStatusString(int status)

isOK

public boolean isOK()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object