org.omg.CORBA

Class CompletionStatus

public final class CompletionStatus extends Object implements Serializable, IDLEntity

Defines the method completion status, usually for the time moment, when the exception has been thrown.
Field Summary
static CompletionStatusCOMPLETED_MAYBE
An instance of CompletionStatus, initialized to {@link #COMPLETED_MAYBE }
static CompletionStatusCOMPLETED_NO
An instance of CompletionStatus, initialized to {@link #COMPLETED_NO }
static CompletionStatusCOMPLETED_YES
An instance of CompletionStatus, initialized to {@link #COMPLETED_YES }
static int_COMPLETED_MAYBE
The method was either running or complete (no exact information availabe) when the exception was thrown.
static int_COMPLETED_NO
The method was running when the exception was thrown.
static int_COMPLETED_YES
The method was completed when the exception was thrown.
Method Summary
static CompletionStatusfrom_int(int completion)
Returns the CompletionStatus, matching the given integer constant
StringtoString()
Returns a short string representation.
intvalue()
Returns the value, representing the completion status of this object.

Field Detail

COMPLETED_MAYBE

public static final CompletionStatus COMPLETED_MAYBE
An instance of CompletionStatus, initialized to {@link #COMPLETED_MAYBE }

COMPLETED_NO

public static final CompletionStatus COMPLETED_NO
An instance of CompletionStatus, initialized to {@link #COMPLETED_NO }

COMPLETED_YES

public static final CompletionStatus COMPLETED_YES
An instance of CompletionStatus, initialized to {@link #COMPLETED_YES }

_COMPLETED_MAYBE

public static final int _COMPLETED_MAYBE
The method was either running or complete (no exact information availabe) when the exception was thrown.

_COMPLETED_NO

public static final int _COMPLETED_NO
The method was running when the exception was thrown.

_COMPLETED_YES

public static final int _COMPLETED_YES
The method was completed when the exception was thrown.

Method Detail

from_int

public static CompletionStatus from_int(int completion)
Returns the CompletionStatus, matching the given integer constant

Parameters: completion one of COMPLETED_YES, COMPLETED_NO or COMPLEED_MAYBE.

Returns: one of COMPLETED_YES, COMPLETED_NO or COMPLEED_MAYBE.

Throws: BAD_PARAM if the parameter is not one of these three valid values.

toString

public String toString()
Returns a short string representation.

Returns: a string, defining the completion status.

value

public int value()
Returns the value, representing the completion status of this object.

Returns: one of COMPLETED_MAYBE, COMPLETED_YES or COMPLETED_NO