- java.lang.Object
- 
- org.omg.CORBA.CompletionStatus
 
- 
- All Implemented Interfaces:
- Serializable,- IDLEntity
 
 public final class CompletionStatus extends Object implements IDLEntity An object that indicates whether a method had completed running when aSystemExceptionwas thrown.The class CompletionStatuscontains threeCompletionStatusinstances, which are constants representing each possible completion status:COMPLETED_MAYBE,COMPLETED_NO, andCOMPLETED_YES. It also contains threeintmembers, each a constant corresponding to one of theCompletionStatusinstances. Theseintmembers make it possible to use aswitchstatement.The class also contains two methods: - public int value()-- which accesses the- valuefield of a- CompletionStatusobject
- public static CompletionStatus from_int(int i)-- for creating an instance from one of the- intmembers
 - Since:
- JDK1.2
- See Also:
- SystemException
 
- 
- 
Field SummaryFields Modifier and Type Field Description static int_COMPLETED_MAYBEThe constant indicating that a method completed running before aSystemExceptionwas thrown.static int_COMPLETED_NOThe constant indicating that a method completed running before aSystemExceptionwas thrown.static int_COMPLETED_YESThe constant indicating that a method completed running before aSystemExceptionwas thrown.static CompletionStatusCOMPLETED_MAYBEAn instance ofCompletionStatusinitialized with the constant_COMPLETED_MAYBE.static CompletionStatusCOMPLETED_NOAn instance ofCompletionStatusinitialized with the constant_COMPLETED_NO.static CompletionStatusCOMPLETED_YESAn instance ofCompletionStatusinitialized with the constant_COMPLETED_YES.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompletionStatusfrom_int(int i)Creates aCompletionStatusobject from the givenint.intvalue()Retrieves the value of thisCompletionStatusobject.
 
- 
- 
- 
Field Detail- 
_COMPLETED_YESpublic static final int _COMPLETED_YES The constant indicating that a method completed running before aSystemExceptionwas thrown.- See Also:
- Constant Field Values
 
 - 
_COMPLETED_NOpublic static final int _COMPLETED_NO The constant indicating that a method completed running before aSystemExceptionwas thrown.- See Also:
- Constant Field Values
 
 - 
_COMPLETED_MAYBEpublic static final int _COMPLETED_MAYBE The constant indicating that a method completed running before aSystemExceptionwas thrown.- See Also:
- Constant Field Values
 
 - 
COMPLETED_YESpublic static final CompletionStatus COMPLETED_YES An instance ofCompletionStatusinitialized with the constant_COMPLETED_YES.
 - 
COMPLETED_NOpublic static final CompletionStatus COMPLETED_NO An instance ofCompletionStatusinitialized with the constant_COMPLETED_NO.
 - 
COMPLETED_MAYBEpublic static final CompletionStatus COMPLETED_MAYBE An instance ofCompletionStatusinitialized with the constant_COMPLETED_MAYBE.
 
- 
 - 
Method Detail- 
valuepublic int value() Retrieves the value of thisCompletionStatusobject.- Returns:
- one of the possible CompletionStatusvalues:_COMPLETED_YES,_COMPLETED_NO, or_COMPLETED_MAYBE
 
 - 
from_intpublic static CompletionStatus from_int(int i) 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 the- intconstants defined in- CompletionStatus
 
 
- 
 
-