| org.omg.CORBA.Object org.omg.CORBA.SetOverrideType
SetOverrideType | public class SetOverrideType implements org.omg.CORBA.portable.IDLEntity(Code) | | The mapping of a CORBA enum tagging
SET_OVERRIDE and ADD_OVERRIDE , which
indicate whether policies should replace the
existing policies of an Object or be added to them.
The method
omg.org.CORBA.Object._set_policy_override takes
either SetOverrideType.SET_OVERRIDE or
SetOverrideType.ADD_OVERRIDE as its second argument.
The method _set_policy_override
creates a new Object initialized with the
Policy objects supplied as the first argument. If the
second argument is ADD_OVERRIDE , the new policies
are added to those of the Object instance that is
calling the _set_policy_override method. If
SET_OVERRIDE is given instead, the existing policies
are replaced with the given ones.
author: OMG version: 1.22 05/05/07 since: JDK1.2 |
Field Summary | |
final public static SetOverrideType | ADD_OVERRIDE The SetOverrideType constant for the enum value ADD_OVERRIDE. | final public static SetOverrideType | SET_OVERRIDE The SetOverrideType constant for the enum value SET_OVERRIDE. | final public static int | _ADD_OVERRIDE The int constant for the enum value ADD_OVERRIDE. | final public static int | _SET_OVERRIDE The int constant for the enum value SET_OVERRIDE. |
Constructor Summary | |
protected | SetOverrideType(int _value) Constructs a SetOverrideType instance from an
int . |
Method Summary | |
public static SetOverrideType | from_int(int i) Converts the given int to the corresponding
SetOverrideType instance. | public int | value() Retrieves the value of this SetOverrideType instance. |
ADD_OVERRIDE | final public static SetOverrideType ADD_OVERRIDE(Code) | | The SetOverrideType constant for the enum value ADD_OVERRIDE.
|
SET_OVERRIDE | final public static SetOverrideType SET_OVERRIDE(Code) | | The SetOverrideType constant for the enum value SET_OVERRIDE.
|
_ADD_OVERRIDE | final public static int _ADD_OVERRIDE(Code) | | The int constant for the enum value ADD_OVERRIDE.
|
_SET_OVERRIDE | final public static int _SET_OVERRIDE(Code) | | The int constant for the enum value SET_OVERRIDE.
|
SetOverrideType | protected SetOverrideType(int _value)(Code) | | Constructs a SetOverrideType instance from an
int .
Parameters: _value - must be either SET_OVERRIDE or ADD_OVERRIDE |
from_int | public static SetOverrideType from_int(int i)(Code) | | Converts the given int to the corresponding
SetOverrideType instance.
Parameters: i - the int to convert; must be eitherSetOverrideType._SET_OVERRIDE orSetOverrideType._ADD_OVERRIDE the SetOverrideType instance whose valuematches the given int exception: BAD_PARAM - if the given int does notmatch the value ofany SetOverrideType instance |
value | public int value()(Code) | | Retrieves the value of this SetOverrideType instance.
the int for this SetOverrideType instance. |
|
|