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:
- org.omg.CORBA.portable.IDLEntity, java.io.Serializable
- public class UnionTC
- extends StructTC
TypeCode implementation for unions.
- See Also:
- Serialized Form
|
Constructor Summary |
UnionTC(java.lang.String id,
java.lang.String name)
Creates a new UnionTC with the provided parameters |
|
Method Summary |
int |
default_index()
|
org.omg.CORBA.TypeCode |
discriminator_type()
|
void |
init(org.omg.CORBA.TypeCode discriminator_type,
org.omg.CORBA.Any[] labels,
java.lang.String[] member_names,
org.omg.CORBA.TypeCode[] member_types)
Initializes the target typecode with the provided parameters |
void |
init(org.omg.CORBA.TypeCode discriminator_type,
org.omg.CORBA.UnionMember[] members)
Initializes the target typecode with the provided parameters |
org.omg.CORBA.Any |
member_label(int index)
|
| 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 |
| Methods inherited from class org.omg.CORBA.TypeCode |
concrete_base_type, member_visibility, type_modifier |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UnionTC
public UnionTC(java.lang.String id,
java.lang.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(org.omg.CORBA.TypeCode discriminator_type,
org.omg.CORBA.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(org.omg.CORBA.TypeCode discriminator_type,
org.omg.CORBA.Any[] labels,
java.lang.String[] member_names,
org.omg.CORBA.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 org.omg.CORBA.Any member_label(int index)
throws org.omg.CORBA.TypeCodePackage.Bounds
- Throws:
org.omg.CORBA.TypeCodePackage.Bounds
discriminator_type
public org.omg.CORBA.TypeCode discriminator_type()
default_index
public int default_index()
throws org.omg.CORBA.TypeCodePackage.BadKind
- Throws:
org.omg.CORBA.TypeCodePackage.BadKind