org.omg.IOP
Class ServiceContextListHelper

java.lang.Object
  extended by org.omg.IOP.ServiceContextListHelper

public abstract class ServiceContextListHelper
extends Object

The helper operations for the CORBA object ServiceContext[].


Constructor Summary
ServiceContextListHelper()
           
 
Method Summary
static ServiceContext[] extract(Any any)
          Extract the ServiceContext[] from given Any.
static String id()
          Get the ServiceContext[] repository id.
static void insert(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 TypeCode type()
          Get the type code of the ServiceContext[].
static void write(OutputStream output, ServiceContext[] value)
          Write the ServiceContext[] to the CDR output stream as a flexible length sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceContextListHelper

public ServiceContextListHelper()
Method Detail

type

public static TypeCode type()
Get the type code of the ServiceContext[].


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.

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.

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.

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.