org.omg.PortableServer

Class IdUniquenessPolicyValue

public class IdUniquenessPolicyValue extends Object implements Serializable, IDLEntity

Specifies the Object Id uniqueness policy. This enumeration can obtain the following values:
Field Summary
static IdUniquenessPolicyValueMULTIPLE_ID
Indicates that a servant activated with that POA is able to support the multiple Object Ids.
static IdUniquenessPolicyValueUNIQUE_ID
Indicates that a servant activated with that POA, supports one and only one OBject Id.
static int_MULTIPLE_ID
The possible value of this enumeration (MULTIPLE_ID).
static int_UNIQUE_ID
The possible value of this enumeration (UNIQUE_ID).
Constructor Summary
protected IdUniquenessPolicyValue(int a_value)
Normally, no new instances are required, so the constructor is protected.
Method Summary
static IdUniquenessPolicyValuefrom_int(int code)
Returns the IdUniquenessPolicyValue, matching the given integer constant.
StringtoString()
Returns a short string representation.
intvalue()
Returns the integer code of the policy value.

Field Detail

MULTIPLE_ID

public static final IdUniquenessPolicyValue MULTIPLE_ID
Indicates that a servant activated with that POA is able to support the multiple Object Ids.

UNIQUE_ID

public static final IdUniquenessPolicyValue UNIQUE_ID
Indicates that a servant activated with that POA, supports one and only one OBject Id.

_MULTIPLE_ID

public static final int _MULTIPLE_ID
The possible value of this enumeration (MULTIPLE_ID).

_UNIQUE_ID

public static final int _UNIQUE_ID
The possible value of this enumeration (UNIQUE_ID).

Constructor Detail

IdUniquenessPolicyValue

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

Method Detail

from_int

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

Parameters: code one of _UNIQUE_ID, _MULTIPLE_ID.

Returns: one of UNIQUE_ID, MULTIPLE_ID.

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 policy value.

Returns: _UNIQUE_ID or _MULTIPLE_ID.