org.omg.PortableServer.POAManagerPackage

Class State

public class State extends Object implements Serializable, IDLEntity

Defines the possible states of the POA manager. This enumeration can obtain the following values:
Field Summary
static StateACTIVE
An instance of State, initialized to ACTIVE.
static StateDISCARDING
An instance of State, initialized to DISCARDING.
static StateHOLDING
An instance of State, initialized to HOLDING.
static StateINACTIVE
An instance of State, initialized to INACTIVE.
static int_ACTIVE
The possible value of this enumeration (ACTIVE).
static int_DISCARDING
The possible value of this enumeration (DISCARDING).
static int_HOLDING
The possible value of this enumeration (HOLDING).
static int_INACTIVE
The possible value of this enumeration (INACTIVE).
Constructor Summary
protected State(int a_value)
Normally, no new instances are required, so the constructor is protected.
Method Summary
static Statefrom_int(int code)
Returns the State, matching the given integer constant.
StringtoString()
Returns a short string representation.
intvalue()
Returns the integer code of the enumeration value.

Field Detail

ACTIVE

public static final State ACTIVE
An instance of State, initialized to ACTIVE.

DISCARDING

public static final State DISCARDING
An instance of State, initialized to DISCARDING.

HOLDING

public static final State HOLDING
An instance of State, initialized to HOLDING.

INACTIVE

public static final State INACTIVE
An instance of State, initialized to INACTIVE.

_ACTIVE

public static final int _ACTIVE
The possible value of this enumeration (ACTIVE).

_DISCARDING

public static final int _DISCARDING
The possible value of this enumeration (DISCARDING).

_HOLDING

public static final int _HOLDING
The possible value of this enumeration (HOLDING).

_INACTIVE

public static final int _INACTIVE
The possible value of this enumeration (INACTIVE).

Constructor Detail

State

protected State(int a_value)
Normally, no new instances are required, so the constructor is protected.

Method Detail

from_int

public static State from_int(int code)
Returns the State, matching the given integer constant.

Parameters: code one of _HOLDING, _ACTIVE, _DISCARDING, _INACTIVE.

Returns: one of HOLDING, ACTIVE, DISCARDING, INACTIVE.

Throws: BAD_PARAM if the parameter is not one of the valid values.

toString

public String toString()
Returns a short string representation.

Returns: the name of the current enumeration value.

value

public int value()
Returns the integer code of the enumeration value.

Returns: one of HOLDING, ACTIVE, DISCARDING, INACTIVE.