Class SetOverrideType
- java.lang.Object
-
- org.omg.CORBA.SetOverrideType
- All Implemented Interfaces:
- Serializable, IDLEntity
public class SetOverrideType extends Object implements 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
Fields
| Modifier and Type | Field and Description |
|---|---|
static int |
_ADD_OVERRIDE The |
static int |
_SET_OVERRIDE The |
static SetOverrideType |
ADD_OVERRIDE The |
static SetOverrideType |
SET_OVERRIDE The |
Constructors
| Modifier | Constructor and Description |
|---|---|
protected |
SetOverrideType(int _value) Constructs a |
Methods
| Modifier and Type | Method and Description |
|---|---|
static SetOverrideType |
from_int(int i) Converts the given |
int |
value() Retrieves the value of this |
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Fields
_SET_OVERRIDE
public static final int _SET_OVERRIDE
The int constant for the enum value SET_OVERRIDE.
- See Also:
- Constant Field Values
_ADD_OVERRIDE
public static final int _ADD_OVERRIDE
The int constant for the enum value ADD_OVERRIDE.
- See Also:
- Constant Field Values
SET_OVERRIDE
public static final SetOverrideType SET_OVERRIDE
The SetOverrideType constant for the enum value SET_OVERRIDE.
ADD_OVERRIDE
public static final SetOverrideType ADD_OVERRIDE
The SetOverrideType constant for the enum value ADD_OVERRIDE.
Constructors
SetOverrideType
protected SetOverrideType(int _value)
Constructs a SetOverrideType instance from an int.
- Parameters:
-
_value- must be eitherSET_OVERRIDEorADD_OVERRIDE
Methods
value
public int value()
Retrieves the value of this SetOverrideType instance.
- Returns:
- the
intfor thisSetOverrideTypeinstance.
from_int
public static SetOverrideType from_int(int i)
Converts the given int to the corresponding SetOverrideType instance.
- 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
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/javase/8/docs/api/org/omg/CORBA/SetOverrideType.html