Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.CORBA.SetOverrideType
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.
Field Summary | |
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. |
Constructor Summary | |
protected |
SetOverrideType(int _value)
Constructs the SetOverrideType instance given a
int . |
Method Summary | |
static SetOverrideType |
from_int(int i)
Converts the given int to the corresponding
SetOverrideType instance. |
int |
value()
Retrieves the value of this SetOverrideType instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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.Constructor Detail |
protected SetOverrideType(int _value)
SetOverrideType
instance given a
int
._value
- the value that is passed in could be one of
SET_OVERRIDE or ADD_OVERRIDEMethod Detail |
public int value()
SetOverrideType
instance.int
for this SetOverrideType
instance.public static SetOverrideType from_int(int i) throws BAD_PARAM
int
to the corresponding
SetOverrideType
instance.i
- the int
to convert. It must be one of
the int
constants in the class
SetOverrideType
.SetOverrideType
instance whose value
matches the given int
BAD_PARAM
- if the given int
does not
match the value of
any SetOverrideType
instance
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.