Class CompletionStatus
java.lang.Object
org.omg.CORBA.CompletionStatus
- All Implemented Interfaces:
Serializable, IDLEntity
An object that indicates whether a method had completed running
when a
SystemException was thrown.
The class CompletionStatus
contains three CompletionStatus instances, which are constants
representing each
possible completion status: COMPLETED_MAYBE,
COMPLETED_NO, and COMPLETED_YES.
It also contains
three int members, each a constant corresponding to one of
the CompletionStatus instances. These int
members make it possible to use a switch statement.
The class also contains two methods:
public int value()-- which accesses thevaluefield of aCompletionStatusobjectpublic static CompletionStatus from_int(int i)-- for creating an instance from one of theintmembers
- Since:
- JDK1.2
- Version:
- %I, %G
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe constant indicating that a method completed running before aSystemExceptionwas thrown.static final intThe constant indicating that a method completed running before aSystemExceptionwas thrown.static final intThe constant indicating that a method completed running before aSystemExceptionwas thrown.private intstatic final CompletionStatusAn instance ofCompletionStatusinitialized with the constant_COMPLETED_MAYBE.static final CompletionStatusAn instance ofCompletionStatusinitialized with the constant_COMPLETED_NO.static final CompletionStatusAn instance ofCompletionStatusinitialized with the constant_COMPLETED_YES. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCompletionStatus(int _value) Creates aCompletionStatusobject from the givenint. -
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionStatusfrom_int(int i) Creates aCompletionStatusobject from the givenint.intvalue()Retrieves the value of thisCompletionStatusobject.
-
Field Details
-
_COMPLETED_YES
public static final int _COMPLETED_YESThe constant indicating that a method completed running before aSystemExceptionwas thrown.- See Also:
-
_COMPLETED_NO
public static final int _COMPLETED_NOThe constant indicating that a method completed running before aSystemExceptionwas thrown.- See Also:
-
_COMPLETED_MAYBE
public static final int _COMPLETED_MAYBEThe constant indicating that a method completed running before aSystemExceptionwas thrown.- See Also:
-
COMPLETED_YES
An instance ofCompletionStatusinitialized with the constant_COMPLETED_YES. -
COMPLETED_NO
An instance ofCompletionStatusinitialized with the constant_COMPLETED_NO. -
COMPLETED_MAYBE
An instance ofCompletionStatusinitialized with the constant_COMPLETED_MAYBE. -
_value
private int _value
-
-
Constructor Details
-
CompletionStatus
private CompletionStatus(int _value) Creates aCompletionStatusobject from the givenint.- Parameters:
_value- one of_COMPLETED_YES,_COMPLETED_NO, or_COMPLETED_MAYBE
-
-
Method Details
-
value
public int value()Retrieves the value of thisCompletionStatusobject.- Returns:
- one of the possible
CompletionStatusvalues:_COMPLETED_YES,_COMPLETED_NO, or_COMPLETED_MAYBE
-
from_int
Creates aCompletionStatusobject from the givenint.- Parameters:
i- one of_COMPLETED_YES,_COMPLETED_NO, or_COMPLETED_MAYBE- Returns:
- one of the possible
CompletionStatusobjects with values:_COMPLETED_YES,_COMPLETED_NO, or_COMPLETED_MAYBE - Throws:
BAD_PARAM- if the argument given is not one of theintconstants defined inCompletionStatus
-