org.objectweb.david.libs.binding.orbs
Class UnionTC
java.lang.Object
|
+--org.omg.CORBA.TypeCode
|
+--org.objectweb.david.libs.binding.orbs.PrimitiveTC
|
+--org.objectweb.david.libs.binding.orbs.NamedTC
|
+--org.objectweb.david.libs.binding.orbs.EnumTC
|
+--org.objectweb.david.libs.binding.orbs.StructTC
|
+--org.objectweb.david.libs.binding.orbs.UnionTC
- All Implemented Interfaces:
- IDLEntity, Serializable
- public class UnionTC
- extends StructTC
TypeCode implementation for unions.
- See Also:
- Serialized Form
|
Constructor Summary |
UnionTC(String id,
String name)
Creates a new UnionTC with the provided parameters |
| Methods inherited from class org.objectweb.david.libs.binding.orbs.StructTC |
content_type, equal, equivalent, fixed_digits, fixed_scale, get_compact_typecode, id, init, init, kind, length, member_count, member_name, member_type, name, toString |
UnionTC
public UnionTC(String id,
String name)
- Creates a new UnionTC with the provided parameters
- Parameters:
id - the repository id of the typecodename - the name of the typecode.
init
public final void init(TypeCode discriminator_type,
UnionMember[] members)
- Initializes the target typecode with the provided parameters
- Parameters:
discriminator_type - the discriminator type codemembers - the union members
init
public final void init(TypeCode discriminator_type,
Any[] labels,
String[] member_names,
TypeCode[] member_types)
- Initializes the target typecode with the provided parameters
- Parameters:
discriminator_type - the discriminator type codelabels - the union labelsmember_names - the union member namesmember_types - the union member types
member_label
public Any member_label(int index)
throws Bounds
- Overrides:
member_label in class org.objectweb.david.libs.binding.orbs.PrimitiveTC
discriminator_type
public TypeCode discriminator_type()
- Overrides:
discriminator_type in class org.objectweb.david.libs.binding.orbs.PrimitiveTC
default_index
public int default_index()
throws BadKind
- Overrides:
default_index in class org.objectweb.david.libs.binding.orbs.PrimitiveTC