org.omg.CORBA

Class IDLTypeHelper

public abstract class IDLTypeHelper extends Object

A helper operations for the IDL type.
Method Summary
static IDLTypeextract(Any a)
Extract the IDL type from the given Any.
static Stringid()
Return the IDLType repository id.
static voidinsert(Any a, IDLType that)
Insert the IDL type into the given Any.
static IDLTypenarrow(Object obj)
Narrows the CORBA object into the IDL type.
static IDLTyperead(InputStream istream)
Read the IDL type from the given input stream.
static TypeCodetype()
Get the typecode of the IDL type (the interface typecode, name "IDLType").
static voidwrite(OutputStream ostream, IDLType value)
Write the IDL type to the output stream (as CORBA object).

Method Detail

extract

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

id

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

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

insert

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

narrow

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

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.

type

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

write

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