org.omg.CORBA
Class IDLTypeHelper

java.lang.Object
  extended by org.omg.CORBA.IDLTypeHelper

public abstract class IDLTypeHelper
extends Object

A helper operations for the IDL type.


Constructor Summary
IDLTypeHelper()
           
 
Method Summary
static IDLType extract(Any a)
          Extract the IDL type from the given Any.
static String id()
          Return the IDLType repository id.
static void insert(Any a, IDLType that)
          Insert the IDL type into the given Any.
static IDLType narrow(Object obj)
          Narrows the CORBA object into the IDL type.
static IDLType read(InputStream istream)
          Read the IDL type from the given input stream.
static TypeCode type()
          Get the typecode of the IDL type (the interface typecode, name "IDLType").
static void write(OutputStream ostream, IDLType value)
          Write the IDL type to the output stream (as CORBA object).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDLTypeHelper

public IDLTypeHelper()
Method Detail

insert

public static void insert(Any a,
                          IDLType that)
Insert the IDL type into the given Any.


extract

public static IDLType extract(Any a)
Extract the IDL type from the given Any.


type

public static TypeCode type()
Get the typecode of the IDL type (the interface typecode, name "IDLType").


id

public static String id()
Return the IDLType repository id.

Returns:
"IDL:omg.org/CORBA/IDLType:1.0", always.

read

public static IDLType read(InputStream istream)
Read the IDL type from the given input stream. The method reads an object and narrows into IDL type using this helper.


write

public static void write(OutputStream ostream,
                         IDLType value)
Write the IDL type to the output stream (as CORBA object).


narrow

public static IDLType narrow(Object obj)
Narrows the CORBA object into the IDL type.