org.omg.CORBA

Class 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).
Method Summary
static ParameterModeextract(Any any)
Extract the parameter mode from the given Any.
static Stringid()
Get the parameter mode repository id.
static voidinsert(Any any, ParameterMode that)
Insert the parameter mode into the given Any.
static ParameterModeread(InputStream istream)
Read the enumeration value (as int) from the CDR intput stream.
static TypeCodetype()
Get the parameter mode typecode (enumeration, named "ParameterMode").
static voidwrite(OutputStream ostream, ParameterMode value)
Write the enumeration value (as int) to the CDR output stream.

Method Detail

extract

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

id

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

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

insert

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

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.

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 .

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.