org.omg.PortableServer

Class IdAssignmentPolicyValue

public class IdAssignmentPolicyValue extends Object implements Serializable, IDLEntity

Specifies the Object Id assignment policy.
Field Summary
static IdAssignmentPolicyValueSYSTEM_ID
An instance of IdAssignmentPolicyValue, initialized to SYSTEM_ID, indicating, that the objects created with that POA obtain they Object Ids from POA.
static IdAssignmentPolicyValueUSER_ID
An instance of IdAssignmentPolicyValue, initialized to USER_ID.
static int_SYSTEM_ID
The possible value of this enumeration (SYSTEM_ID),.
static int_USER_ID
The possible value of this enumeration (USER_ID).
Constructor Summary
protected IdAssignmentPolicyValue(int a_value)
Normally, no new instances are required, so the constructor is protected.
Method Summary
static IdAssignmentPolicyValuefrom_int(int code)
Returns the IdAssignmentPolicyValue, matching the given integer constant.
StringtoString()
Returns a short string representation.
intvalue()
Returns the integer code of the policy value.

Field Detail

SYSTEM_ID

public static final IdAssignmentPolicyValue SYSTEM_ID
An instance of IdAssignmentPolicyValue, initialized to SYSTEM_ID, indicating, that the objects created with that POA obtain they Object Ids from POA.

USER_ID

public static final IdAssignmentPolicyValue USER_ID
An instance of IdAssignmentPolicyValue, initialized to USER_ID.

_SYSTEM_ID

public static final int _SYSTEM_ID
The possible value of this enumeration (SYSTEM_ID),.

_USER_ID

public static final int _USER_ID
The possible value of this enumeration (USER_ID).

Constructor Detail

IdAssignmentPolicyValue

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

Method Detail

from_int

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

Parameters: code one of _USER_ID, _SYSTEM_ID.

Returns: one of USER_ID, SYSTEM_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: _USER_ID or _SYSTEM_ID.