FileDocCategorySizeDatePackage
DynUnion.javaAPI DocJava SE 5 API2747Fri Aug 26 14:58:28 BST 2005org.omg.CORBA

DynUnion

public interface DynUnion implements org.omg.CORBA.Object, 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.
deprecated
Use the new DynUnion instead

Fields Summary
Constructors Summary
Methods Summary
public org.omg.CORBA.DynAnydiscriminator()
Returns a DynAny object reference that must be narrowed to the type of the discriminator in order to insert/get the discriminator value.

return
a DynAny object reference representing the discriminator value

public org.omg.CORBA.TCKinddiscriminator_kind()
Returns the TCKind object associated with the discriminator of this union.

return
the TCKind object associated with the discriminator of this union

public org.omg.CORBA.DynAnymember()
Returns a DynAny object reference that is used in order to insert/get a member of this union.

return
the DynAny object representing a member of this union

public org.omg.CORBA.TCKindmember_kind()
Returns the TCKind associated with the member of this union.

return
the TCKind object associated with the member of this union

public java.lang.Stringmember_name()
Allows for the inspection of the name of this union member without checking the value of the discriminator.

return
the name of this union member

public voidmember_name(java.lang.String arg)
Allows for the assignment of the name of this union member.

param
arg the new name of this union member

public booleanset_as_default()
Determines whether the discriminator associated with this union has been assigned a valid default value.

return
true if the discriminator has a default value; false otherwise

public voidset_as_default(boolean arg)
Determines whether the discriminator associated with this union gets assigned a valid default value.

param
arg true if the discriminator gets assigned a default value