org.omg.PortableServer.POAManagerPackage
Class State

java.lang.Object
  extended by org.omg.PortableServer.POAManagerPackage.State
All Implemented Interfaces:
Serializable, IDLEntity

public class State
extends Object
implements Serializable, IDLEntity

Defines the possible states of the POA manager. This enumeration can obtain the following values:

See Also:
Serialized Form

Field Summary
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).
static State ACTIVE
          An instance of State, initialized to ACTIVE.
static State DISCARDING
          An instance of State, initialized to DISCARDING.
static State HOLDING
          An instance of State, initialized to HOLDING.
static State INACTIVE
          An instance of State, initialized to INACTIVE.
 
Constructor Summary
protected State(int a_value)
          Normally, no new instances are required, so the constructor is protected.
 
Method Summary
static State from_int(int code)
          Returns the State, matching the given integer constant.
 String toString()
          Returns a short string representation.
 int value()
          Returns the integer code of the enumeration value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_HOLDING

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

See Also:
Constant Field Values

HOLDING

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


_ACTIVE

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

See Also:
Constant Field Values

ACTIVE

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


_DISCARDING

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

See Also:
Constant Field Values

DISCARDING

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


_INACTIVE

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

See Also:
Constant Field Values

INACTIVE

public static final State INACTIVE
An instance of State, initialized to 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.

Overrides:
toString in class Object
Returns:
the name of the current enumeration value.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)

value

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

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