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

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.AliasTC
All Implemented Interfaces:
IDLEntity, Serializable

public class AliasTC
extends org.objectweb.david.libs.binding.orbs.NamedTC

Implementation of TypeCode to be used for typedefs.

See Also:
Serialized Form

Constructor Summary
AliasTC(String id, String name)
          Constructs a new AliasTC
 
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()
           
 void init(TypeCode content_type)
          Initializes the target type code's content type
 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

AliasTC

public AliasTC(String id,
               String name)
Constructs a new AliasTC
Parameters:
id - its repository id
name - its identifier
Method Detail

init

public void init(TypeCode content_type)
Initializes the target type code's content type
Parameters:
content_type - the content type code

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.NamedTC

id

public String id()
Overrides:
id in class org.objectweb.david.libs.binding.orbs.PrimitiveTC

name

public String name()
Overrides:
name 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

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

length

public int length()
           throws BadKind
Overrides:
length 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