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

java.lang.Object
  |
  +--org.omg.CORBA.TypeCode
        |
        +--org.objectweb.david.libs.binding.orbs.PrimitiveTC
              |
              +--org.objectweb.david.libs.binding.orbs.StringTC
                    |
                    +--org.objectweb.david.libs.binding.orbs.ArrayTC
All Implemented Interfaces:
IDLEntity, Serializable
Direct Known Subclasses:
SequenceTC

public class ArrayTC
extends org.objectweb.david.libs.binding.orbs.StringTC

TypeCode implementation for arrays (and sequences).

See Also:
Serialized Form

Constructor Summary
ArrayTC(TCKind kind)
          Creates a new ArrayTC of kind kind
 
Method Summary
 TypeCode content_type()
           
 int default_index()
           
 TypeCode discriminator_type()
           
 boolean equal(TypeCode tc)
           
 boolean equivalent(TypeCode tc)
           
 short fixed_digits()
           
 short fixed_scale()
           
 TypeCode get_compact_typecode()
           
 String id()
           
protected  void init(int length)
           
 void init(int length, TypeCode content_type)
          Intialiszes the target type code
 TCKind kind()
           
 int length()
           
 int member_count()
           
 Any member_label(int index)
           
 String member_name(int index)
           
 TypeCode member_type(int index)
           
 String name()
           
 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

ArrayTC

public ArrayTC(TCKind kind)
Creates a new ArrayTC of kind kind
Parameters:
kind - a TypeCode kind.
Method Detail

init

public void init(int length,
                 TypeCode content_type)
Intialiszes the target type code
Parameters:
length - a maximum length
content_type - the content type typecode

content_type

public TypeCode content_type()
Overrides:
content_type in class org.objectweb.david.libs.binding.orbs.PrimitiveTC

toString

public String toString()
Overrides:
toString in class org.objectweb.david.libs.binding.orbs.StringTC

init

protected void init(int length)

length

public int length()
Overrides:
length in class org.objectweb.david.libs.binding.orbs.PrimitiveTC

kind

public TCKind kind()
Overrides:
kind in class TypeCode

equal

public final boolean equal(TypeCode tc)
Overrides:
equal in class TypeCode

id

public String id()
          throws BadKind
Overrides:
id in class TypeCode

name

public String name()
            throws BadKind
Overrides:
name in class TypeCode

member_count

public int member_count()
                 throws BadKind
Overrides:
member_count in class TypeCode

member_name

public String member_name(int index)
                   throws BadKind,
                          Bounds
Overrides:
member_name in class TypeCode

member_type

public TypeCode member_type(int index)
                     throws BadKind,
                            Bounds
Overrides:
member_type in class TypeCode

member_label

public Any member_label(int index)
                 throws BadKind,
                        Bounds
Overrides:
member_label in class TypeCode

discriminator_type

public TypeCode discriminator_type()
                            throws BadKind
Overrides:
discriminator_type in class TypeCode

default_index

public int default_index()
                  throws BadKind
Overrides:
default_index in class TypeCode

fixed_digits

public short fixed_digits()
                   throws BadKind
Overrides:
fixed_digits in class TypeCode

fixed_scale

public short fixed_scale()
                  throws BadKind
Overrides:
fixed_scale in class TypeCode

equivalent

public boolean equivalent(TypeCode tc)
Overrides:
equivalent in class TypeCode

get_compact_typecode

public TypeCode get_compact_typecode()
Overrides:
get_compact_typecode in class TypeCode