public class SetOverrideType extends Object implements IDLEntity
枚举标记SET_OVERRIDE和ADD_OVERRIDE ,指出策略是否应替换现有的Object或添加到其中。
方法Object._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType)采用SetOverrideType.SET_OVERRIDE或SetOverrideType.ADD_OVERRIDE作为其第二个参数。 方法_set_policy_override创建一个新的Object初始化为作为第一个参数提供的Policy对象。 如果第二个参数是ADD_OVERRIDE ,则新策略将添加到调用_set_policy_override方法的Object实例中。 如果SET_OVERRIDE ,现有的策略将被替换。
| Modifier and Type | Field and Description |
|---|---|
static int |
_ADD_OVERRIDE
int常量为枚举值ADD_OVERRIDE。
|
static int |
_SET_OVERRIDE
int常量为枚举值SET_OVERRIDE。
|
static SetOverrideType |
ADD_OVERRIDE
SetOverrideType常量为枚举值ADD_OVERRIDE。
|
static SetOverrideType |
SET_OVERRIDE
SetOverrideType常量为枚举值SET_OVERRIDE。
|
| Modifier | Constructor and Description |
|---|---|
protected |
SetOverrideType(int _value)
构造一个
SetOverrideType从实例
int 。
|
public static final int _SET_OVERRIDE
int常量为枚举值SET_OVERRIDE。
public static final int _ADD_OVERRIDE
int常量为枚举值ADD_OVERRIDE。
public static final SetOverrideType SET_OVERRIDE
SetOverrideType常量为枚举值SET_OVERRIDE。
public static final SetOverrideType ADD_OVERRIDE
SetOverrideType常量为枚举值ADD_OVERRIDE。
protected SetOverrideType(int _value)
SetOverrideType从实例
int 。
_value - 必须是
SET_OVERRIDE或
ADD_OVERRIDE
public int value()
SetOverrideType实例的值。
int为这个
SetOverrideType例子。
public static SetOverrideType from_int(int i)
int转换为相应的
SetOverrideType实例。
i - 转换int ;
必须是SetOverrideType._SET_OVERRIDE或SetOverrideType._ADD_OVERRIDE
SetOverrideType实例的值与给定的
int匹配
BAD_PARAM - 如果给定的
int与任何
SetOverrideType实例的值不匹配
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, 2014, Oracle and/or its affiliates. All rights reserved.