org.omg.CORBA
Class ParameterModeHelper

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

public abstract class ParameterModeHelper
extends Object

A helper operations for a method parameter modes. A method parameter can pass the value (PARAM_IN), be used as a placeholder to return the value (PARAM_OUT) or both pass the data and be used as a placeholder to return the changed value (PARAM_INOUT).


Constructor Summary
ParameterModeHelper()
           
 
Method Summary
static ParameterMode extract(Any any)
          Extract the parameter mode from the given Any.
static String id()
          Get the parameter mode repository id.
static void insert(Any any, ParameterMode that)
          Insert the parameter mode into the given Any.
static ParameterMode read(InputStream istream)
          Read the enumeration value (as int) from the CDR intput stream.
static TypeCode type()
          Get the parameter mode typecode (enumeration, named "ParameterMode").
static void write(OutputStream ostream, ParameterMode value)
          Write the enumeration value (as int) to the CDR output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterModeHelper

public ParameterModeHelper()
Method Detail

insert

public static void insert(Any any,
                          ParameterMode that)
Insert the parameter mode into the given Any.


extract

public static ParameterMode extract(Any any)
Extract the parameter mode from the given Any.


type

public static TypeCode type()
Get the parameter mode typecode (enumeration, named "ParameterMode"). The typecode states that the enumeration can obtain one of the following values: PARAM_IN ,PARAM_OUT ,PARAM_INOUT .


id

public static String id()
Get the parameter mode repository id.

Returns:
"IDL:omg.org/CORBA/ParameterMode:1.0", always.

read

public static ParameterMode read(InputStream istream)
Read the enumeration value (as int) from the CDR intput stream.

Parameters:
istream - a stream to read from.

write

public static void write(OutputStream ostream,
                         ParameterMode value)
Write the enumeration value (as int) to the CDR output stream.

Parameters:
ostream - a stream to write into.
value - a value to write.