org.omg.CORBA

Class ParameterMode

public class ParameterMode extends Object implements Serializable, IDLEntity

Defines the parameter modes (the ways in that a method parameter is used during invocation). In CORBA, 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).
Field Summary
static ParameterModePARAM_IN
This value means that the parameter is an IN parameter.
static ParameterModePARAM_INOUT
This value means that the parameter is an INOUT parameter.
static ParameterModePARAM_OUT
This value means that the parameter is an OUT parameter.
static int_PARAM_IN
This value means that the parameter is an IN parameter.
static int_PARAM_INOUT
This value means that the parameter is an INOUT parameter.
static int_PARAM_OUT
This value means that the parameter is an OUT parameter.
Constructor Summary
protected ParameterMode(int a_value)
Create an instance of the parameter mode with the given value.
Method Summary
static ParameterModefrom_int(int p_mode)
Get a parameter mode instance for the integer parameter mode code.
intvalue()
Return the integer value code for the given parameter mode.

Field Detail

PARAM_IN

public static final ParameterMode PARAM_IN
This value means that the parameter is an IN parameter.

PARAM_INOUT

public static final ParameterMode PARAM_INOUT
This value means that the parameter is an INOUT parameter.

PARAM_OUT

public static final ParameterMode PARAM_OUT
This value means that the parameter is an OUT parameter.

_PARAM_IN

public static final int _PARAM_IN
This value means that the parameter is an IN parameter.

_PARAM_INOUT

public static final int _PARAM_INOUT
This value means that the parameter is an INOUT parameter.

_PARAM_OUT

public static final int _PARAM_OUT
This value means that the parameter is an OUT parameter.

Constructor Detail

ParameterMode

protected ParameterMode(int a_value)
Create an instance of the parameter mode with the given value.

Method Detail

from_int

public static ParameterMode from_int(int p_mode)
Get a parameter mode instance for the integer parameter mode code.

Parameters: p_mode a parameter mode (0..2).

Returns: a corresponding parameter mode instance.

Throws: BAD_PARAM for the invalid parameter mode code.

value

public int value()
Return the integer value code for the given parameter mode.

Returns: 0 for PARAM_IN, 1 for PARAM_OUT, 3 for PARAM_INOUT.