org.omg.PortableInterceptor
Class AdapterManagerIdHelper

java.lang.Object
  extended by org.omg.PortableInterceptor.AdapterManagerIdHelper

public abstract class AdapterManagerIdHelper
extends Object

A helper operations for the adapter manager id. An adapter manager id is an integer constant and needs no helper, but the one is included anyway.

Since:
1.5

Constructor Summary
AdapterManagerIdHelper()
           
 
Method Summary
static int extract(Any any)
          Extract the int from given Any.
static String id()
          Get the adapter manager id repository id.
static void insert(Any any, int that)
          Insert the int into the given Any.
static int read(InputStream input)
          Read the int (adapter manager id) from the CDR intput stream.
static TypeCode type()
          Create the AdapterManagerId typecode (alias of CORBA long (java int), named "AdapterManagerId").
static void write(OutputStream output, int value)
          Write the int (adapter manager id) 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

AdapterManagerIdHelper

public AdapterManagerIdHelper()
Method Detail

type

public static TypeCode type()
Create the AdapterManagerId typecode (alias of CORBA long (java int), named "AdapterManagerId").


insert

public static void insert(Any any,
                          int that)
Insert the int into the given Any.


extract

public static int extract(Any any)
Extract the int from given Any.

Throws:
BAD_OPERATION - if the passed Any does not contain int.

id

public static String id()
Get the adapter manager id repository id.

Returns:
"IDL:omg.org/PortableInterceptor/AdapterManagerId:1.0", always.

read

public static int read(InputStream input)
Read the int (adapter manager id) from the CDR intput stream.

Parameters:
input - a org.omg.CORBA.portable stream to read from.

write

public static void write(OutputStream output,
                         int value)
Write the int (adapter manager id) to the CDR output stream.

Parameters:
output - a org.omg.CORBA.portable stream stream to write into.
value - a value to write.