org.omg.CORBA
Class DefinitionKindHelper

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

public abstract class DefinitionKindHelper
extends Object

A helper operations for the definition kind.


Constructor Summary
DefinitionKindHelper()
           
 
Method Summary
static DefinitionKind extract(Any a)
          Extract the definition kind from the given Any.
static String id()
          Get the definition kind repository id.
static void insert(Any a, DefinitionKind that)
          Insert the definition kind into the given Any.
static DefinitionKind read(InputStream istream)
          Read the definitin kind (as int) from the CDR intput stream.
static TypeCode type()
          Get the definition kind typecode (enumeration, named "DefinitionKind").
static void write(OutputStream ostream, DefinitionKind value)
          Write the definition kind (as int) to the CDR output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefinitionKindHelper

public DefinitionKindHelper()
Method Detail

insert

public static void insert(Any a,
                          DefinitionKind that)
Insert the definition kind into the given Any.


extract

public static DefinitionKind extract(Any a)
Extract the definition kind from the given Any.


type

public static TypeCode type()
Get the definition kind typecode (enumeration, named "DefinitionKind"). The member names are listed as defined by java 1.4 specification. The names, defined in OMG specification only (like dk_Home or dk_Event) are not listed.


id

public static String id()
Get the definition kind repository id.

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

read

public static DefinitionKind read(InputStream istream)
Read the definitin kind (as int) from the CDR intput stream.

Parameters:
istream - a stream to read from.

write

public static void write(OutputStream ostream,
                         DefinitionKind value)
Write the definition kind (as int) to the CDR output stream.

Parameters:
ostream - a stream to write into.
value - a value to write.