public interface DynUnionOperations extends DynAnyOperations
Modifier and Type | Method and Description |
---|---|
TCKind |
discriminator_kind()
返回识别器TypeCode的TCKind值。
|
DynAny |
get_discriminator()
返回当前的鉴别器值。
|
boolean |
has_no_active_member()
如果联合没有活动成员,则返回true,即,联合值仅由其标识符组成,因为鉴别符具有未列为明确案例标签的值。
|
TCKind |
member_kind()
返回当前活动成员TypeCode的TCKind值。
|
String |
member_name()
返回当前活动成员的名称。
|
DynAny |
member()
返回当前活动的成员。
|
void |
set_discriminator(DynAny d)
将DynUnion的鉴别器设置为指定的值。
|
void |
set_to_default_member()
将标识符设置为与联合的默认大小写的值一致的值。
|
void |
set_to_no_active_member()
将鉴别器设置为不与任何联合案例标签对应的值。
|
assign, component_count, copy, current_component, destroy, equal, from_any, get_any, get_boolean, get_char, get_double, get_dyn_any, get_float, get_long, get_longlong, get_octet, get_reference, get_short, get_string, get_typecode, get_ulong, get_ulonglong, get_ushort, get_val, get_wchar, get_wstring, insert_any, insert_boolean, insert_char, insert_double, insert_dyn_any, insert_float, insert_long, insert_longlong, insert_octet, insert_reference, insert_short, insert_string, insert_typecode, insert_ulong, insert_ulonglong, insert_ushort, insert_val, insert_wchar, insert_wstring, next, rewind, seek, to_any, type
DynAny get_discriminator()
void set_discriminator(DynAny d) throws TypeMismatch
TypeMismatch
- 如果参数的TypeCode不等同于联盟鉴别器的TypeCode
void set_to_default_member() throws TypeMismatch
TypeMismatch
- 如果联合没有明确的默认情况
void set_to_no_active_member() throws TypeMismatch
TypeMismatch
- 如果联合体具有明确的默认情况,或者如果它使用明确案例标签的全部范围的鉴别器值
boolean has_no_active_member()
TCKind discriminator_kind()
TCKind member_kind() throws InvalidValue
InvalidValue
- 如果联合没有当前活动的成员
DynAny member() throws InvalidValue
InvalidValue
- 如果联合没有活动成员
String member_name() throws InvalidValue
InvalidValue
- 如果联合没有活动成员
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.