public class SetOverrideType extends Object implements IDLEntity
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.
Modifier and Type | Field and Description |
---|---|
static int |
_ADD_OVERRIDE
The
int constant for the enum value ADD_OVERRIDE. |
static int |
_SET_OVERRIDE
The
int constant for the enum value SET_OVERRIDE. |
static SetOverrideType |
ADD_OVERRIDE
The
SetOverrideType constant for the enum value ADD_OVERRIDE. |
static SetOverrideType |
SET_OVERRIDE
The
SetOverrideType constant for the enum value SET_OVERRIDE. |
Modifier | Constructor and Description |
---|---|
protected |
SetOverrideType(int _value)
Constructs a
SetOverrideType instance from an
int . |
Modifier and Type | Method and Description |
---|---|
static SetOverrideType |
from_int(int i)
Converts the given
int to the corresponding
SetOverrideType instance. |
int |
value()
Retrieves the value of this
SetOverrideType instance. |
public static final int _SET_OVERRIDE
int
constant for the enum value SET_OVERRIDE.public static final int _ADD_OVERRIDE
int
constant for the enum value ADD_OVERRIDE.public static final SetOverrideType SET_OVERRIDE
SetOverrideType
constant for the enum value SET_OVERRIDE.public static final SetOverrideType ADD_OVERRIDE
SetOverrideType
constant for the enum value ADD_OVERRIDE.protected SetOverrideType(int _value)
SetOverrideType
instance from an
int
._value
- must be either SET_OVERRIDE
or
ADD_OVERRIDE
public int value()
SetOverrideType
instance.int
for this SetOverrideType
instance.public static SetOverrideType from_int(int i)
int
to the corresponding
SetOverrideType
instance.i
- the int
to convert; must be either
SetOverrideType._SET_OVERRIDE
or
SetOverrideType._ADD_OVERRIDE
SetOverrideType
instance whose value
matches the given int
BAD_PARAM
- if the given int
does not
match the value of
any SetOverrideType
instance Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2024, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
Scripting on this page tracks web page traffic, but does not change the content in any way.