org.omg.CORBA
Class CompletionStatusHelper

java.lang.Object
  extended by org.omg.CORBA.CompletionStatusHelper

public abstract class CompletionStatusHelper
extends Object

Provides static helper methods for working with CompletionStatus.


Constructor Summary
CompletionStatusHelper()
           
 
Method Summary
static CompletionStatus extract(Any a)
          Extract the CompletionStatus from the given Any.
static String id()
          Returns the agreed Id.
static void insert(Any into, CompletionStatus that)
          Insert into the given CompletionStatus into the given Any.
static CompletionStatus read(InputStream input)
          Reads the CompletionStatus from the CORBA input stream.
static TypeCode type()
          Get the parameter mode typecode (enumeration, named "CompletionStatus").
static void write(OutputStream output, CompletionStatus status)
          Writes the CompletionStatus into the given stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompletionStatusHelper

public CompletionStatusHelper()
Method Detail

extract

public static CompletionStatus extract(Any a)
Extract the CompletionStatus from the given Any. This implementation expects the integer (Corba long) value, stating the completion status.

Parameters:
a - an Any to extract the completion status from.
Returns:
completion status

id

public static String id()
Returns the agreed Id.

Returns:
IDL:omg.org/CORBA/CompletionStatus:1.0, always.

insert

public static void insert(Any into,
                          CompletionStatus that)
Insert into the given CompletionStatus into the given Any. This implementation inserts it as an integer (CORBA long).

Parameters:
into - the target Any.
that - the CompletionStatus to insert.

read

public static CompletionStatus read(InputStream input)
Reads the CompletionStatus from the CORBA input stream. This implementation reads an an integer (CORBA long).

Parameters:
input - the CORBA (not java.io) stream to read from.
Returns:
the value from the stream.

write

public static void write(OutputStream output,
                         CompletionStatus status)
Writes the CompletionStatus into the given stream. This implementation writes an int (CORBA long), corresponding the status of completion.

Parameters:
output - the CORBA (not java.io) output stream to write.
status - the value that must be written.

type

public static TypeCode type()
Get the parameter mode typecode (enumeration, named "CompletionStatus"). The typecode states that the enumeration can obtain one of the following values: COMPLETED_YES ,COMPLETED_NO or COMPLETED_MAYBE .