org.omg.CORBA

Interface DynUnion

public interface DynUnion extends DynAny

Deprecated: by {@link org.omg.DynamicAny.DynUnion}

Represents the {@link DynAny}, holding the CORBA structure (variant record with the named fields). The internal reference, described in {@link DynAny#current_component()}, iterates over the fields of the member, stored in the union. The union always holds only one member; which one, depends from the value of the discriminator.
Method Summary
DynAnydiscriminator()
Returns the discriminator, defining, which set of fields is stored.
TCKinddiscriminator_kind()
Returns the discriminator kind.
DynAnymember()
Returns the member, stored in this union.
TCKindmember_kind()
Returns the kind of the member, stored in this union.
Stringmember_name()
Returns the name of the currently focused member.
voidmember_name(String new_name)
Renames the currently focused member.
booleanset_as_default()
Checks if the discriminator of this union has been assigned a valid default value.
voidset_as_default(boolean assign_default)
Determines if the discriminator of this union gets assigned a valid default value.

Method Detail

discriminator

public DynAny discriminator()
Returns the discriminator, defining, which set of fields is stored.

Returns: the discriminator.

discriminator_kind

public TCKind discriminator_kind()
Returns the discriminator kind.

member

public DynAny member()
Returns the member, stored in this union.

member_kind

public TCKind member_kind()
Returns the kind of the member, stored in this union.

member_name

public String member_name()
Returns the name of the currently focused member.

member_name

public void member_name(String new_name)
Renames the currently focused member.

Parameters: new_name the new name of the currently focused member.

set_as_default

public boolean set_as_default()
Checks if the discriminator of this union has been assigned a valid default value.

set_as_default

public void set_as_default(boolean assign_default)
Determines if the discriminator of this union gets assigned a valid default value.

Parameters: assign_default