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

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
All Implemented Interfaces:
org.omg.CORBA.portable.IDLEntity, java.io.Serializable
Direct Known Subclasses:
UnionTC, ValueTC

public class StructTC
extends org.objectweb.david.libs.binding.orbs.EnumTC

TypeCode implementation for structures and exceptions

See Also:
Serialized Form

Constructor Summary
StructTC(org.omg.CORBA.TCKind kind, java.lang.String id, java.lang.String name)
          Creates a new StructTC with the provided parameters
 
Method Summary
 org.omg.CORBA.TypeCode content_type()
           
 int default_index()
           
 org.omg.CORBA.TypeCode discriminator_type()
           
 boolean equal(org.omg.CORBA.TypeCode tc)
           
 boolean equivalent(org.omg.CORBA.TypeCode tc)
           
 short fixed_digits()
           
 short fixed_scale()
           
 org.omg.CORBA.TypeCode get_compact_typecode()
           
 java.lang.String id()
           
 void init(java.lang.String[] member_names, org.omg.CORBA.TypeCode[] member_types)
          Initializes the target TypeCode with the provided structure members
 void init(org.omg.CORBA.StructMember[] members)
          Initializes the target TypeCode with the provided StructMembers
 org.omg.CORBA.TCKind kind()
           
 int length()
           
 int member_count()
           
 org.omg.CORBA.Any member_label(int index)
           
 java.lang.String member_name(int index)
           
 org.omg.CORBA.TypeCode member_type(int index)
           
 java.lang.String name()
           
 java.lang.String 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

StructTC

public StructTC(org.omg.CORBA.TCKind kind,
                java.lang.String id,
                java.lang.String name)
Creates a new StructTC with the provided parameters

Parameters:
kind - the kind of the new TypeCode
id - the repository ID of the new TypeCode
name - the name of the new TypeCode
Method Detail

init

public void init(org.omg.CORBA.StructMember[] members)
Initializes the target TypeCode with the provided StructMembers

Parameters:
members - structure members

init

public void init(java.lang.String[] member_names,
                 org.omg.CORBA.TypeCode[] member_types)
Initializes the target TypeCode with the provided structure members

Parameters:
member_names - the structure members names
member_types - the structure members types

member_type

public org.omg.CORBA.TypeCode member_type(int index)
                                   throws org.omg.CORBA.TypeCodePackage.Bounds
Throws:
org.omg.CORBA.TypeCodePackage.Bounds

toString

public java.lang.String toString()

member_count

public int member_count()
                 throws org.omg.CORBA.TypeCodePackage.BadKind
Throws:
org.omg.CORBA.TypeCodePackage.BadKind

member_name

public java.lang.String member_name(int index)
                             throws org.omg.CORBA.TypeCodePackage.BadKind,
                                    org.omg.CORBA.TypeCodePackage.Bounds
Throws:
org.omg.CORBA.TypeCodePackage.BadKind
org.omg.CORBA.TypeCodePackage.Bounds

id

public java.lang.String id()

name

public java.lang.String name()

kind

public org.omg.CORBA.TCKind kind()

equal

public final boolean equal(org.omg.CORBA.TypeCode tc)

member_label

public org.omg.CORBA.Any member_label(int index)
                               throws org.omg.CORBA.TypeCodePackage.BadKind,
                                      org.omg.CORBA.TypeCodePackage.Bounds
Throws:
org.omg.CORBA.TypeCodePackage.BadKind
org.omg.CORBA.TypeCodePackage.Bounds

discriminator_type

public org.omg.CORBA.TypeCode discriminator_type()
                                          throws org.omg.CORBA.TypeCodePackage.BadKind
Throws:
org.omg.CORBA.TypeCodePackage.BadKind

default_index

public int default_index()
                  throws org.omg.CORBA.TypeCodePackage.BadKind
Throws:
org.omg.CORBA.TypeCodePackage.BadKind

length

public int length()
           throws org.omg.CORBA.TypeCodePackage.BadKind
Throws:
org.omg.CORBA.TypeCodePackage.BadKind

content_type

public org.omg.CORBA.TypeCode content_type()
                                    throws org.omg.CORBA.TypeCodePackage.BadKind
Throws:
org.omg.CORBA.TypeCodePackage.BadKind

fixed_digits

public short fixed_digits()
                   throws org.omg.CORBA.TypeCodePackage.BadKind
Throws:
org.omg.CORBA.TypeCodePackage.BadKind

fixed_scale

public short fixed_scale()
                  throws org.omg.CORBA.TypeCodePackage.BadKind
Throws:
org.omg.CORBA.TypeCodePackage.BadKind

equivalent

public boolean equivalent(org.omg.CORBA.TypeCode tc)

get_compact_typecode

public org.omg.CORBA.TypeCode get_compact_typecode()