org.openorb.orb.core.typecode
Class TypeCodeFactoryImpl

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by org.openorb.orb.core.typecode.TypeCodeFactoryImpl
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.TypeCodeFactory, org.omg.CORBA.TypeCodeFactoryOperations

public final class TypeCodeFactoryImpl
extends org.omg.CORBA.LocalObject
implements org.omg.CORBA.TypeCodeFactory

This class implements the TypeCodeFactory, it is used to create type codes. It uses the tie implementation method. To get an instance, call ORB.resolve_initial_references("TypeCodeFactory")

Version:
$Revision: 1.7 $ $Date: 2004/02/17 22:13:55 $
Author:
Chris Wood
See Also:
Serialized Form

Method Summary
 org.omg.CORBA.TypeCode create_abstract_interface_tc(java.lang.String id, java.lang.String name)
          Create an abstract interface typecode
 org.omg.CORBA.TypeCode create_alias_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.TypeCode original_type)
          Create an alias typecode
 org.omg.CORBA.TypeCode create_array_tc(int length, org.omg.CORBA.TypeCode element_type)
          Create an array typecode
 org.omg.CORBA.TypeCode create_component_tc(java.lang.String id, java.lang.String name)
          Create a component typecode.
 org.omg.CORBA.TypeCode create_enum_tc(java.lang.String id, java.lang.String name, java.lang.String[] members)
          Create an enum typecode
 org.omg.CORBA.TypeCode create_exception_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.StructMember[] members)
          Create an exception typecode
 org.omg.CORBA.TypeCode create_fixed_tc(short digits, short scale)
          Create a fixed typecode
 org.omg.CORBA.TypeCode create_home_tc(java.lang.String id, java.lang.String name)
          Create a component home typecode.
 org.omg.CORBA.TypeCode create_interface_tc(java.lang.String id, java.lang.String name)
          Create an interface typecode
 org.omg.CORBA.TypeCode create_local_interface_tc(java.lang.String id, java.lang.String name)
          Create a local interface typecode.
 org.omg.CORBA.TypeCode create_native_tc(java.lang.String id, java.lang.String name)
          Create a native typecode
 org.omg.CORBA.TypeCode create_recursive_sequence_tc(int bound, int offset)
          Deprecated.  
 org.omg.CORBA.TypeCode create_recursive_tc(java.lang.String id)
          Create a recursive typecode
 org.omg.CORBA.TypeCode create_sequence_tc(int bound, org.omg.CORBA.TypeCode element_type)
          Create a sequence typecode
 org.omg.CORBA.TypeCode create_string_tc(int bound)
          Create a string typecode
 org.omg.CORBA.TypeCode create_struct_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.StructMember[] members)
          Create a struct typecode
 org.omg.CORBA.TypeCode create_union_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.TypeCode discriminator_type, org.omg.CORBA.UnionMember[] members)
          Create an union typecode
 org.omg.CORBA.TypeCode create_value_box_tc(java.lang.String id, java.lang.String name, org.omg.CORBA.TypeCode boxed_type)
          Create a value box typecode
 org.omg.CORBA.TypeCode create_value_tc(java.lang.String id, java.lang.String name, short type_modifier, org.omg.CORBA.TypeCode concrete_base, org.omg.CORBA.ValueMember[] members)
          Create a valuetype typecode
 org.omg.CORBA.TypeCode create_wstring_tc(int bound)
          Create a wstring typecode
 org.omg.CORBA.TypeCode get_primitive_tc(org.omg.CORBA.TCKind tcKind)
          This operation returns a primitive typecode from the corresponding TC kind.
static TypeCodeFactoryImpl getInstance()
          Used by pre 3.0 ORBSingleton classes to create an instance for manufacturing typecodes
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Method Detail

getInstance

public static TypeCodeFactoryImpl getInstance()
Used by pre 3.0 ORBSingleton classes to create an instance for manufacturing typecodes


create_struct_tc

public org.omg.CORBA.TypeCode create_struct_tc(java.lang.String id,
                                               java.lang.String name,
                                               org.omg.CORBA.StructMember[] members)
Create a struct typecode

Specified by:
create_struct_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_union_tc

public org.omg.CORBA.TypeCode create_union_tc(java.lang.String id,
                                              java.lang.String name,
                                              org.omg.CORBA.TypeCode discriminator_type,
                                              org.omg.CORBA.UnionMember[] members)
Create an union typecode

Specified by:
create_union_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_enum_tc

public org.omg.CORBA.TypeCode create_enum_tc(java.lang.String id,
                                             java.lang.String name,
                                             java.lang.String[] members)
Create an enum typecode

Specified by:
create_enum_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_alias_tc

public org.omg.CORBA.TypeCode create_alias_tc(java.lang.String id,
                                              java.lang.String name,
                                              org.omg.CORBA.TypeCode original_type)
Create an alias typecode

Specified by:
create_alias_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_exception_tc

public org.omg.CORBA.TypeCode create_exception_tc(java.lang.String id,
                                                  java.lang.String name,
                                                  org.omg.CORBA.StructMember[] members)
Create an exception typecode

Specified by:
create_exception_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_interface_tc

public org.omg.CORBA.TypeCode create_interface_tc(java.lang.String id,
                                                  java.lang.String name)
Create an interface typecode

Specified by:
create_interface_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_native_tc

public org.omg.CORBA.TypeCode create_native_tc(java.lang.String id,
                                               java.lang.String name)
Create a native typecode

Specified by:
create_native_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_string_tc

public org.omg.CORBA.TypeCode create_string_tc(int bound)
Create a string typecode

Specified by:
create_string_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_wstring_tc

public org.omg.CORBA.TypeCode create_wstring_tc(int bound)
Create a wstring typecode

Specified by:
create_wstring_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_sequence_tc

public org.omg.CORBA.TypeCode create_sequence_tc(int bound,
                                                 org.omg.CORBA.TypeCode element_type)
Create a sequence typecode

Specified by:
create_sequence_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_recursive_sequence_tc

public org.omg.CORBA.TypeCode create_recursive_sequence_tc(int bound,
                                                           int offset)
Deprecated. 

Create a recursive sequence typecode

Specified by:
create_recursive_sequence_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_recursive_tc

public org.omg.CORBA.TypeCode create_recursive_tc(java.lang.String id)
Create a recursive typecode

Specified by:
create_recursive_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_array_tc

public org.omg.CORBA.TypeCode create_array_tc(int length,
                                              org.omg.CORBA.TypeCode element_type)
Create an array typecode

Specified by:
create_array_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_fixed_tc

public org.omg.CORBA.TypeCode create_fixed_tc(short digits,
                                              short scale)
Create a fixed typecode

Specified by:
create_fixed_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_value_tc

public org.omg.CORBA.TypeCode create_value_tc(java.lang.String id,
                                              java.lang.String name,
                                              short type_modifier,
                                              org.omg.CORBA.TypeCode concrete_base,
                                              org.omg.CORBA.ValueMember[] members)
Create a valuetype typecode

Specified by:
create_value_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_value_box_tc

public org.omg.CORBA.TypeCode create_value_box_tc(java.lang.String id,
                                                  java.lang.String name,
                                                  org.omg.CORBA.TypeCode boxed_type)
Create a value box typecode

Specified by:
create_value_box_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_abstract_interface_tc

public org.omg.CORBA.TypeCode create_abstract_interface_tc(java.lang.String id,
                                                           java.lang.String name)
Create an abstract interface typecode

Specified by:
create_abstract_interface_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_local_interface_tc

public org.omg.CORBA.TypeCode create_local_interface_tc(java.lang.String id,
                                                        java.lang.String name)
Create a local interface typecode. Currently this returns an ordinary interface typecode.

Specified by:
create_local_interface_tc in interface org.omg.CORBA.TypeCodeFactoryOperations

create_home_tc

public org.omg.CORBA.TypeCode create_home_tc(java.lang.String id,
                                             java.lang.String name)
Create a component home typecode.

Specified by:
create_home_tc in interface org.omg.CORBA.TypeCodeFactoryOperations
Since:
CORBA 3.0

create_component_tc

public org.omg.CORBA.TypeCode create_component_tc(java.lang.String id,
                                                  java.lang.String name)
Create a component typecode.

Specified by:
create_component_tc in interface org.omg.CORBA.TypeCodeFactoryOperations
Since:
CORBA 3.0

get_primitive_tc

public org.omg.CORBA.TypeCode get_primitive_tc(org.omg.CORBA.TCKind tcKind)
This operation returns a primitive typecode from the corresponding TC kind. Note this is not a member of the TypeCodeFactory interface, but is put here for convienience.