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
 
Method Summary
 int default_index()
           
 TypeCode discriminator_type()
           
 void init(TypeCode discriminator_type, Any[] labels, String[] member_names, TypeCode[] member_types)
          Initializes the target typecode with the provided parameters
 void init(TypeCode discriminator_type, UnionMember[] members)
          Initializes the target typecode with the provided parameters
 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(String id,
               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(TypeCode discriminator_type,
                       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(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 code
labels - the union labels
member_names - the union member names
member_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