Package org.omg.CORBA
Class SetOverrideType
java.lang.Object
org.omg.CORBA.SetOverrideType
- All Implemented Interfaces:
Serializable,IDLEntity
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 Object._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) 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.
- Since:
- JDK1.2
- Author:
- OMG
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intTheintconstant for the enum value ADD_OVERRIDE.static final intTheintconstant for the enum value SET_OVERRIDE.static final SetOverrideTypeTheSetOverrideTypeconstant for the enum value ADD_OVERRIDE.static final SetOverrideTypeTheSetOverrideTypeconstant for the enum value SET_OVERRIDE. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSetOverrideType(int _value) Constructs aSetOverrideTypeinstance from anint. -
Method Summary
Modifier and TypeMethodDescriptionstatic SetOverrideTypefrom_int(int i) Converts the givenintto the correspondingSetOverrideTypeinstance.intvalue()Retrieves the value of thisSetOverrideTypeinstance.
-
Field Details
-
_SET_OVERRIDE
public static final int _SET_OVERRIDETheintconstant for the enum value SET_OVERRIDE.- See Also:
-
_ADD_OVERRIDE
public static final int _ADD_OVERRIDETheintconstant for the enum value ADD_OVERRIDE.- See Also:
-
SET_OVERRIDE
TheSetOverrideTypeconstant for the enum value SET_OVERRIDE. -
ADD_OVERRIDE
TheSetOverrideTypeconstant for the enum value ADD_OVERRIDE.
-
-
Constructor Details
-
SetOverrideType
protected SetOverrideType(int _value) Constructs aSetOverrideTypeinstance from anint.- Parameters:
_value- must be eitherSET_OVERRIDEorADD_OVERRIDE
-
-
Method Details
-
value
public int value()Retrieves the value of thisSetOverrideTypeinstance.- Returns:
- the
intfor thisSetOverrideTypeinstance.
-
from_int
Converts the givenintto the correspondingSetOverrideTypeinstance.- Parameters:
i- theintto convert; must be eitherSetOverrideType._SET_OVERRIDEorSetOverrideType._ADD_OVERRIDE- Returns:
- the
SetOverrideTypeinstance whose value matches the givenint - Throws:
BAD_PARAM- if the givenintdoes not match the value of anySetOverrideTypeinstance
-