- 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 aSystemException
was thrown.The class
CompletionStatus
contains threeCompletionStatus
instances, which are constants representing each possible completion status:COMPLETED_MAYBE
,COMPLETED_NO
, andCOMPLETED_YES
. It also contains threeint
members, each a constant corresponding to one of theCompletionStatus
instances. Theseint
members make it possible to use aswitch
statement.The class also contains two methods:
public int
-- which accesses thevalue ()value
field of aCompletionStatus
objectpublic static CompletionStatus
-- for creating an instance from one of thefrom_int (int i)int
members
- Since:
- JDK1.2
- See Also:
SystemException
-
-
Field Summary
Fields Modifier and Type Field and Description static int
_COMPLETED_MAYBE
The constant indicating that a method completed running before aSystemException
was thrown.static int
_COMPLETED_NO
The constant indicating that a method completed running before aSystemException
was thrown.static int
_COMPLETED_YES
The constant indicating that a method completed running before aSystemException
was thrown.static CompletionStatus
COMPLETED_MAYBE
An instance ofCompletionStatus
initialized with the constant_COMPLETED_MAYBE
.static CompletionStatus
COMPLETED_NO
An instance ofCompletionStatus
initialized with the constant_COMPLETED_NO
.static CompletionStatus
COMPLETED_YES
An instance ofCompletionStatus
initialized with the constant_COMPLETED_YES
.
-
Method Summary
Methods Modifier and Type Method and Description static CompletionStatus
from_int(int i)
Creates aCompletionStatus
object from the givenint
.int
value()
Retrieves the value of thisCompletionStatus
object.
-
-
-
Field Detail
-
_COMPLETED_YES
public static final int _COMPLETED_YES
The constant indicating that a method completed running before aSystemException
was thrown.- See Also:
- Constant Field Values
-
_COMPLETED_NO
public static final int _COMPLETED_NO
The constant indicating that a method completed running before aSystemException
was thrown.- See Also:
- Constant Field Values
-
_COMPLETED_MAYBE
public static final int _COMPLETED_MAYBE
The constant indicating that a method completed running before aSystemException
was thrown.- See Also:
- Constant Field Values
-
COMPLETED_YES
public static final CompletionStatus COMPLETED_YES
An instance ofCompletionStatus
initialized with the constant_COMPLETED_YES
.
-
COMPLETED_NO
public static final CompletionStatus COMPLETED_NO
An instance ofCompletionStatus
initialized with the constant_COMPLETED_NO
.
-
COMPLETED_MAYBE
public static final CompletionStatus COMPLETED_MAYBE
An instance ofCompletionStatus
initialized with the constant_COMPLETED_MAYBE
.
-
-
Method Detail
-
value
public int value()
Retrieves the value of thisCompletionStatus
object.- Returns:
- one of the possible
CompletionStatus
values:_COMPLETED_YES
,_COMPLETED_NO
, or_COMPLETED_MAYBE
-
from_int
public static CompletionStatus from_int(int i)
Creates aCompletionStatus
object from the givenint
.- Parameters:
i
- one of_COMPLETED_YES
,_COMPLETED_NO
, or_COMPLETED_MAYBE
- Returns:
- one of the possible
CompletionStatus
objects with values:_COMPLETED_YES
,_COMPLETED_NO
, or_COMPLETED_MAYBE
- Throws:
BAD_PARAM
- if the argument given is not one of theint
constants defined inCompletionStatus
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-org/omg/corba/completionstatus.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.