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

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

public class ValueTC
extends StructTC

TypeCode implementation for structures and exceptions

See Also:
Serialized Form

Constructor Summary
ValueTC(String id, String name, short modifier)
          Creates a new ValueTC with the provided parameters
 
Method Summary
 TypeCode concrete_base_type()
           
 void init(TypeCode concrete_base_type, String[] member_names, TypeCode[] member_types, short[] member_visibility)
          Initializes the target TypeCode with the provided value members
 void init(TypeCode concrete_base_type, ValueMember[] members)
          Initializes the target TypeCode with the provided ValueMembers
 short member_visibility(int index)
           
 String toString()
           
 short type_modifier()
           
 
Methods inherited from class org.objectweb.david.libs.binding.orbs.StructTC
content_type, default_index, discriminator_type, equal, equivalent, fixed_digits, fixed_scale, get_compact_typecode, id, init, init, kind, length, member_count, member_label, member_name, member_type, name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueTC

public ValueTC(String id,
               String name,
               short modifier)
Creates a new ValueTC with the provided parameters
Parameters:
id - the repository ID of the new TypeCode;
name - the name of the new TypeCode;
modifier - the value modifier;
Method Detail

init

public void init(TypeCode concrete_base_type,
                 ValueMember[] members)
Initializes the target TypeCode with the provided ValueMembers
Parameters:
concrete_base - the value concrete base.
members - value members

init

public void init(TypeCode concrete_base_type,
                 String[] member_names,
                 TypeCode[] member_types,
                 short[] member_visibility)
Initializes the target TypeCode with the provided value members
Parameters:
concrete_base - the value concrete base.
member_names - the value members names
member_types - the value members types
member_visibility - the value members visibility

member_visibility

public short member_visibility(int index)
                        throws Bounds
Overrides:
member_visibility in class TypeCode

type_modifier

public short type_modifier()
Overrides:
type_modifier in class TypeCode

concrete_base_type

public TypeCode concrete_base_type()
Overrides:
concrete_base_type in class TypeCode

toString

public String toString()
Overrides:
toString in class StructTC