org.objectweb.david.libs.binding.orbs
Class UnionTC

java.lang.Object
  extended byorg.omg.CORBA.TypeCode
      extended byorg.objectweb.david.libs.binding.orbs.PrimitiveTC
          extended byorg.objectweb.david.libs.binding.orbs.NamedTC
              extended byorg.objectweb.david.libs.binding.orbs.EnumTC
                  extended byorg.objectweb.david.libs.binding.orbs.StructTC
                      extended byorg.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
 

Constructor Detail

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 typecode
name - the name of the typecode.
Method Detail

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 code
members - 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 code
labels - the union labels
member_names - the union member names
member_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