public final class DynUnion extends DynAny implements DynUnion
anyRepresentation, dynFactory, limit, logger, orb, pos, typeCode
Modifier and Type | Method and Description |
---|---|
int |
component_count()
Overrides component_count() in DynAny
|
DynAny |
current_component() |
void |
destroy() |
TCKind |
discriminator_kind() |
boolean |
equal(DynAny dyn_any)
Overrides equal() in DynAny
|
void |
from_any(Any value)
Overrides from_any() in DynAny
|
DynAny |
get_discriminator() |
boolean |
has_no_active_member() |
TCKind |
member_kind() |
String |
member_name() |
DynAny |
member() |
boolean |
next()
Overrides next() in DynAny
|
boolean |
seek(int index)
Overrides seek() in DynAny
|
void |
set_discriminator(DynAny dynAny)
sets the discriminator to d
|
void |
set_to_default_member()
sets the discriminator to a value that is consistent with the
value of the default case of a union; it sets the current
position to zero and causes component_count to return 2.
|
void |
set_to_no_active_member()
sets the discriminator to a value that does not correspond to
any of the union's case labels; it sets the current position
to zero and causes component_count to return 1.
|
Any |
to_any() |
assign, checkDestroyed, copy, get_any, get_boolean_seq, get_boolean, get_char_seq, get_char, get_double_seq, get_double, get_dyn_any, get_float_seq, get_float, get_long_seq, get_long, get_longdouble_seq, get_longdouble, get_longlong_seq, get_longlong, get_octet_seq, get_octet, get_reference, get_short_seq, get_short, get_string, get_typecode, get_ulong_seq, get_ulong, get_ulonglong_seq, get_ulonglong, get_ushort_seq, get_ushort, get_val, get_wchar_seq, get_wchar, get_wstring, getRepresentation, insert_any, insert_boolean_seq, insert_boolean, insert_char_seq, insert_char, insert_double_seq, insert_double, insert_dyn_any, insert_float_seq, insert_float, insert_long_seq, insert_long, insert_longdouble_seq, insert_longdouble, insert_longlong_seq, insert_longlong, insert_octet_seq, insert_octet, insert_reference, insert_short_seq, insert_short, insert_string, insert_typecode, insert_ulong_seq, insert_ulong, insert_ulonglong_seq, insert_ulonglong, insert_ushort_seq, insert_ushort, insert_val, insert_wchar_seq, insert_wchar, insert_wstring, rewind, type, unexpectedException
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
assign, copy, 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, rewind, type
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
public void from_any(Any value) throws InvalidValue, TypeMismatch
from_any
in interface DynAnyOperations
from_any
in class DynAny
InvalidValue
TypeMismatch
public Any to_any()
to_any
in interface DynAnyOperations
to_any
in class DynAny
public int component_count()
component_count
in interface DynAnyOperations
component_count
in class DynAny
public boolean next()
next
in interface DynAnyOperations
next
in class DynAny
public boolean seek(int index)
seek
in interface DynAnyOperations
seek
in class DynAny
public boolean equal(DynAny dyn_any)
equal
in interface DynAnyOperations
equal
in class DynAny
public DynAny get_discriminator()
get_discriminator
in interface DynUnionOperations
public void set_discriminator(DynAny dynAny) throws TypeMismatch
set_discriminator
in interface DynUnionOperations
TypeMismatch
- if the TypeCode of the d parameter
is not equivalent to the TypeCode of the union's discriminatorpublic void set_to_default_member() throws TypeMismatch
set_to_default_member
in interface DynUnionOperations
TypeMismatch
- if the union does not have an explicit
default case.public void set_to_no_active_member() throws TypeMismatch
set_to_no_active_member
in interface DynUnionOperations
TypeMismatch
- if the union has an explicit default
case or uses the entire range of discriminator values for
explicit case labels.public boolean has_no_active_member()
has_no_active_member
in interface DynUnionOperations
public TCKind discriminator_kind()
discriminator_kind
in interface DynUnionOperations
public DynAny member() throws InvalidValue
member
in interface DynUnionOperations
InvalidValue
- if the union has no active memberpublic TCKind member_kind() throws InvalidValue
member_kind
in interface DynUnionOperations
InvalidValue
- if the union has no active memberpublic String member_name() throws InvalidValue
member_name
in interface DynUnionOperations
InvalidValue
- if the union has no active memberpublic void destroy()
destroy
in interface DynAnyOperations
destroy
in class DynAny
public DynAny current_component()
current_component
in interface DynAnyOperations
current_component
in class DynAny
Copyright © 2017 JacORB. All rights reserved.