Methods Summary |
---|
public org.omg.CORBA.TCKind | discriminator_kind()Returns the TCKind value of the discriminators TypeCode.
|
public org.omg.DynamicAny.DynAny | get_discriminator()Returns the current discriminator value.
|
public boolean | has_no_active_member()Returns true if the union has no active member, that is, the unions value consists solely
of its discriminator because the discriminator has a value that is not listed as an explicit case label.
Calling this operation on a union that has a default case returns false.
Calling this operation on a union that uses the entire range of discriminator values
for explicit case labels returns false.
|
public org.omg.DynamicAny.DynAny | member()Returns the currently active member. Note that the returned reference remains valid only
for as long as the currently active member does not change. Using the returned reference
beyond the life time of the currently active member raises OBJECT_NOT_EXIST.
|
public org.omg.CORBA.TCKind | member_kind()Returns the TCKind value of the currently active members TypeCode.
|
public java.lang.String | member_name()Returns the name of the currently active member. If the unions TypeCode does not contain
a member name for the currently active member, the operation returns an empty string.
|
public void | set_discriminator(org.omg.DynamicAny.DynAny d)Sets the discriminator of the DynUnion to the specified value.
Setting the discriminator to a value that is consistent with the currently active union member
does not affect the currently active member. Setting the discriminator to a value that is inconsistent
with the currently active member deactivates the member and activates the member that is consistent
with the new discriminator value (if there is a member for that value) by initializing the member
to its default value.
Setting the discriminator of a union sets the current position to 0 if the discriminator value
indicates a non-existent union member (has_no_active_member returns true in this case).
Otherwise, if the discriminator value indicates a named union member, the current position is set to 1
(has_no_active_member returns false and component_count returns 2 in this case).
|
public 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.
|
public void | set_to_no_active_member()Sets the discriminator to a value that does not correspond to any of the unions case labels.
It sets the current position to zero and causes component_count to return 1.
|