org.omg.PortableInterceptor

Class AdapterStateHelper

public abstract class AdapterStateHelper extends Object

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

Since: 1.5

Method Summary
static shortextract(Any any)
Extract the short from given Any.
static Stringid()
Get the adapter state repository id.
static voidinsert(Any any, short that)
Insert the short into the given Any.
static shortread(InputStream input)
Read the short (adapter state) from the CDR intput stream.
static TypeCodetype()
Create the AdapterState typecode (alias of short, named "AdapterState").
static voidwrite(OutputStream output, short value)
Write the short (adapter state) to the CDR output stream.

Method Detail

extract

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

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

id

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

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

insert

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

read

public static short read(InputStream input)
Read the short (adapter state) from the CDR intput stream.

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

type

public static TypeCode type()
Create the AdapterState typecode (alias of short, named "AdapterState").

write

public static void write(OutputStream output, short value)
Write the short (adapter state) to the CDR output stream.

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