org.omg.CORBA
Interface DynUnion

All Superinterfaces:
DynAny sample code for org.omg.CORBA.DynAny definition code for org.omg.CORBA.DynAny , Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object

Deprecated. Use the new DynUnion instead

@Deprecated
public interface DynUnion
extends Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object , DynAny sample code for org.omg.CORBA.DynAny definition code for org.omg.CORBA.DynAny

The DynUnion interface represents a DynAny object that is associated with an IDL union. Union values can be traversed using the operations defined in DynAny. The first component in the union corresponds to the discriminator; the second corresponds to the actual value of the union. Calling the method next() twice allows you to access both components.


Method Summary
 TCKind sample code for org.omg.CORBA.TCKind definition code for org.omg.CORBA.TCKind discriminator_kind sample code for org.omg.CORBA.DynUnion.discriminator_kind() definition code for org.omg.CORBA.DynUnion.discriminator_kind() ()
          Deprecated. Returns the TCKind object associated with the discriminator of this union.
 DynAny sample code for org.omg.CORBA.DynAny definition code for org.omg.CORBA.DynAny discriminator sample code for org.omg.CORBA.DynUnion.discriminator() definition code for org.omg.CORBA.DynUnion.discriminator() ()
          Deprecated. Returns a DynAny object reference that must be narrowed to the type of the discriminator in order to insert/get the discriminator value.
 TCKind sample code for org.omg.CORBA.TCKind definition code for org.omg.CORBA.TCKind member_kind sample code for org.omg.CORBA.DynUnion.member_kind() definition code for org.omg.CORBA.DynUnion.member_kind() ()
          Deprecated. Returns the TCKind associated with the member of this union.
 String sample code for java.lang.String definition code for java.lang.String member_name sample code for org.omg.CORBA.DynUnion.member_name() definition code for org.omg.CORBA.DynUnion.member_name() ()
          Deprecated. Allows for the inspection of the name of this union member without checking the value of the discriminator.
 void member_name sample code for org.omg.CORBA.DynUnion.member_name(java.lang.String) definition code for org.omg.CORBA.DynUnion.member_name(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  arg)
          Deprecated. Allows for the assignment of the name of this union member.
 DynAny sample code for org.omg.CORBA.DynAny definition code for org.omg.CORBA.DynAny member sample code for org.omg.CORBA.DynUnion.member() definition code for org.omg.CORBA.DynUnion.member() ()
          Deprecated. Returns a DynAny object reference that is used in order to insert/get a member of this union.
 boolean set_as_default sample code for org.omg.CORBA.DynUnion.set_as_default() definition code for org.omg.CORBA.DynUnion.set_as_default() ()
          Deprecated. Determines whether the discriminator associated with this union has been assigned a valid default value.
 void set_as_default sample code for org.omg.CORBA.DynUnion.set_as_default(boolean) definition code for org.omg.CORBA.DynUnion.set_as_default(boolean) (boolean arg)
          Deprecated. Determines whether the discriminator associated with this union gets assigned a valid default value.
 
Methods inherited from interface org.omg.CORBA.DynAny sample code for org.omg.CORBA.DynAny definition code for org.omg.CORBA.DynAny
assign sample code for org.omg.CORBA.DynAny.assign(org.omg.CORBA.DynAny) definition code for org.omg.CORBA.DynAny.assign(org.omg.CORBA.DynAny) , copy sample code for org.omg.CORBA.DynAny.copy() definition code for org.omg.CORBA.DynAny.copy() , current_component sample code for org.omg.CORBA.DynAny.current_component() definition code for org.omg.CORBA.DynAny.current_component() , destroy sample code for org.omg.CORBA.DynAny.destroy() definition code for org.omg.CORBA.DynAny.destroy() , from_any sample code for org.omg.CORBA.DynAny.from_any(org.omg.CORBA.Any) definition code for org.omg.CORBA.DynAny.from_any(org.omg.CORBA.Any) , get_any sample code for org.omg.CORBA.DynAny.get_any() definition code for org.omg.CORBA.DynAny.get_any() , get_boolean sample code for org.omg.CORBA.DynAny.get_boolean() definition code for org.omg.CORBA.DynAny.get_boolean() , get_char sample code for org.omg.CORBA.DynAny.get_char() definition code for org.omg.CORBA.DynAny.get_char() , get_double sample code for org.omg.CORBA.DynAny.get_double() definition code for org.omg.CORBA.DynAny.get_double() , get_float sample code for org.omg.CORBA.DynAny.get_float() definition code for org.omg.CORBA.DynAny.get_float() , get_long sample code for org.omg.CORBA.DynAny.get_long() definition code for org.omg.CORBA.DynAny.get_long() , get_longlong sample code for org.omg.CORBA.DynAny.get_longlong() definition code for org.omg.CORBA.DynAny.get_longlong() , get_octet sample code for org.omg.CORBA.DynAny.get_octet() definition code for org.omg.CORBA.DynAny.get_octet() , get_reference sample code for org.omg.CORBA.DynAny.get_reference() definition code for org.omg.CORBA.DynAny.get_reference() , get_short sample code for org.omg.CORBA.DynAny.get_short() definition code for org.omg.CORBA.DynAny.get_short() , get_string sample code for org.omg.CORBA.DynAny.get_string() definition code for org.omg.CORBA.DynAny.get_string() , get_typecode sample code for org.omg.CORBA.DynAny.get_typecode() definition code for org.omg.CORBA.DynAny.get_typecode() , get_ulong sample code for org.omg.CORBA.DynAny.get_ulong() definition code for org.omg.CORBA.DynAny.get_ulong() , get_ulonglong sample code for org.omg.CORBA.DynAny.get_ulonglong() definition code for org.omg.CORBA.DynAny.get_ulonglong() , get_ushort sample code for org.omg.CORBA.DynAny.get_ushort() definition code for org.omg.CORBA.DynAny.get_ushort() , get_val sample code for org.omg.CORBA.DynAny.get_val() definition code for org.omg.CORBA.DynAny.get_val() , get_wchar sample code for org.omg.CORBA.DynAny.get_wchar() definition code for org.omg.CORBA.DynAny.get_wchar() , get_wstring sample code for org.omg.CORBA.DynAny.get_wstring() definition code for org.omg.CORBA.DynAny.get_wstring() , insert_any sample code for org.omg.CORBA.DynAny.insert_any(org.omg.CORBA.Any) definition code for org.omg.CORBA.DynAny.insert_any(org.omg.CORBA.Any) , insert_boolean sample code for org.omg.CORBA.DynAny.insert_boolean(boolean) definition code for org.omg.CORBA.DynAny.insert_boolean(boolean) , insert_char sample code for org.omg.CORBA.DynAny.insert_char(char) definition code for org.omg.CORBA.DynAny.insert_char(char) , insert_double sample code for org.omg.CORBA.DynAny.insert_double(double) definition code for org.omg.CORBA.DynAny.insert_double(double) , insert_float sample code for org.omg.CORBA.DynAny.insert_float(float) definition code for org.omg.CORBA.DynAny.insert_float(float) , insert_long sample code for org.omg.CORBA.DynAny.insert_long(int) definition code for org.omg.CORBA.DynAny.insert_long(int) , insert_longlong sample code for org.omg.CORBA.DynAny.insert_longlong(long) definition code for org.omg.CORBA.DynAny.insert_longlong(long) , insert_octet sample code for org.omg.CORBA.DynAny.insert_octet(byte) definition code for org.omg.CORBA.DynAny.insert_octet(byte) , insert_reference sample code for org.omg.CORBA.DynAny.insert_reference(org.omg.CORBA.Object) definition code for org.omg.CORBA.DynAny.insert_reference(org.omg.CORBA.Object) , insert_short sample code for org.omg.CORBA.DynAny.insert_short(short) definition code for org.omg.CORBA.DynAny.insert_short(short) , insert_string sample code for org.omg.CORBA.DynAny.insert_string(java.lang.String) definition code for org.omg.CORBA.DynAny.insert_string(java.lang.String) , insert_typecode sample code for org.omg.CORBA.DynAny.insert_typecode(org.omg.CORBA.TypeCode) definition code for org.omg.CORBA.DynAny.insert_typecode(org.omg.CORBA.TypeCode) , insert_ulong sample code for org.omg.CORBA.DynAny.insert_ulong(int) definition code for org.omg.CORBA.DynAny.insert_ulong(int) , insert_ulonglong sample code for org.omg.CORBA.DynAny.insert_ulonglong(long) definition code for org.omg.CORBA.DynAny.insert_ulonglong(long) , insert_ushort sample code for org.omg.CORBA.DynAny.insert_ushort(short) definition code for org.omg.CORBA.DynAny.insert_ushort(short) , insert_val sample code for org.omg.CORBA.DynAny.insert_val(java.io.Serializable) definition code for org.omg.CORBA.DynAny.insert_val(java.io.Serializable) , insert_wchar sample code for org.omg.CORBA.DynAny.insert_wchar(char) definition code for org.omg.CORBA.DynAny.insert_wchar(char) , insert_wstring sample code for org.omg.CORBA.DynAny.insert_wstring(java.lang.String) definition code for org.omg.CORBA.DynAny.insert_wstring(java.lang.String) , next sample code for org.omg.CORBA.DynAny.next() definition code for org.omg.CORBA.DynAny.next() , rewind sample code for org.omg.CORBA.DynAny.rewind() definition code for org.omg.CORBA.DynAny.rewind() , seek sample code for org.omg.CORBA.DynAny.seek(int) definition code for org.omg.CORBA.DynAny.seek(int) , to_any sample code for org.omg.CORBA.DynAny.to_any() definition code for org.omg.CORBA.DynAny.to_any() , type sample code for org.omg.CORBA.DynAny.type() definition code for org.omg.CORBA.DynAny.type()
 

Method Detail

set_as_default sample code for org.omg.CORBA.DynUnion.set_as_default() definition code for org.omg.CORBA.DynUnion.set_as_default()

boolean set_as_default()
Deprecated. 
Determines whether the discriminator associated with this union has been assigned a valid default value.

Returns:
true if the discriminator has a default value; false otherwise

set_as_default sample code for org.omg.CORBA.DynUnion.set_as_default(boolean) definition code for org.omg.CORBA.DynUnion.set_as_default(boolean)

void set_as_default(boolean arg)
Deprecated. 
Determines whether the discriminator associated with this union gets assigned a valid default value.

Parameters:
arg - true if the discriminator gets assigned a default value

discriminator sample code for org.omg.CORBA.DynUnion.discriminator() definition code for org.omg.CORBA.DynUnion.discriminator()

DynAny sample code for org.omg.CORBA.DynAny definition code for org.omg.CORBA.DynAny  discriminator()
Deprecated. 
Returns a DynAny object reference that must be narrowed to the type of the discriminator in order to insert/get the discriminator value.

Returns:
a DynAny object reference representing the discriminator value

discriminator_kind sample code for org.omg.CORBA.DynUnion.discriminator_kind() definition code for org.omg.CORBA.DynUnion.discriminator_kind()

TCKind sample code for org.omg.CORBA.TCKind definition code for org.omg.CORBA.TCKind  discriminator_kind()
Deprecated. 
Returns the TCKind object associated with the discriminator of this union.

Returns:
the TCKind object associated with the discriminator of this union

member sample code for org.omg.CORBA.DynUnion.member() definition code for org.omg.CORBA.DynUnion.member()

DynAny sample code for org.omg.CORBA.DynAny definition code for org.omg.CORBA.DynAny  member()
Deprecated. 
Returns a DynAny object reference that is used in order to insert/get a member of this union.

Returns:
the DynAny object representing a member of this union

member_name sample code for org.omg.CORBA.DynUnion.member_name() definition code for org.omg.CORBA.DynUnion.member_name()

String sample code for java.lang.String definition code for java.lang.String  member_name()
Deprecated. 
Allows for the inspection of the name of this union member without checking the value of the discriminator.

Returns:
the name of this union member

member_name sample code for org.omg.CORBA.DynUnion.member_name(java.lang.String) definition code for org.omg.CORBA.DynUnion.member_name(java.lang.String)

void member_name(String sample code for java.lang.String definition code for java.lang.String  arg)
Deprecated. 
Allows for the assignment of the name of this union member.

Parameters:
arg - the new name of this union member

member_kind sample code for org.omg.CORBA.DynUnion.member_kind() definition code for org.omg.CORBA.DynUnion.member_kind()

TCKind sample code for org.omg.CORBA.TCKind definition code for org.omg.CORBA.TCKind  member_kind()
Deprecated. 
Returns the TCKind associated with the member of this union.

Returns:
the TCKind object associated with the member of this union