org.omg.IOP

Class ServiceContextListHelper

public abstract class ServiceContextListHelper extends Object

The helper operations for the CORBA object {@link ServiceContext}[].
Method Summary
static ServiceContext[]extract(Any any)
Extract the ServiceContext[] from given Any.
static Stringid()
Get the ServiceContext[] repository id.
static voidinsert(Any any, ServiceContext[] that)
Insert the ServiceContext[] into the given Any.
static ServiceContext[]read(InputStream input)
Read the ServiceContext[] from the CDR intput stream as a flexible lenth sequence.
static TypeCodetype()
Get the type code of the {@link ServiceContext}[].
static voidwrite(OutputStream output, ServiceContext[] value)
Write the ServiceContext[] to the CDR output stream as a flexible length sequence.

Method Detail

extract

public static ServiceContext[] extract(Any any)
Extract the ServiceContext[] from given Any.

Throws: BAD_OPERATION if the passed Any does not contain ServiceContext[].

id

public static String id()
Get the ServiceContext[] repository id.

Returns: "IDL:omg.org/IOP/ServiceContextList:1.0", always.

insert

public static void insert(Any any, ServiceContext[] that)
Insert the ServiceContext[] into the given Any.

Parameters: any the Any to insert into. that the ServiceContext[] to insert.

read

public static ServiceContext[] read(InputStream input)
Read the ServiceContext[] from the CDR intput stream as a flexible lenth sequence.

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

type

public static TypeCode type()
Get the type code of the {@link ServiceContext}[].

write

public static void write(OutputStream output, ServiceContext[] value)
Write the ServiceContext[] to the CDR output stream as a flexible length sequence.

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