org.omg.IOP

Class ProfileIdHelper

public abstract class ProfileIdHelper extends Object

A helper operations for th Profile id. A Profile Id is an integer constant and needs no helper, but the one is included to to facilitate the automated code handling.

UNKNOWN: In this implementation, this class is not in use. Its "logical" place is the read/write methods of the TaggedProfileHelper, to handle the first member (int) of the record of the tagged profile.

Method Summary
static intextract(Any any)
Extract the int from given Any.
static Stringid()
Get the int repository id.
static voidinsert(Any any, int that)
Insert the int into the given Any.
static intread(InputStream input)
Read the ProfileId from the CDR intput stream.
static TypeCodetype()
Create the ProfileId typecode (alias of CORBA ulong, named "ProfileId".
static voidwrite(OutputStream output, int value)
Write the ProfileId to the CDR output stream.

Method Detail

extract

public static int extract(Any any)
Extract the int from given Any. This method uses the ProfileContextHolder.

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

id

public static String id()
Get the int repository id.

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

insert

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

read

public static int read(InputStream input)
Read the ProfileId from the CDR intput stream.

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

type

public static TypeCode type()
Create the ProfileId typecode (alias of CORBA ulong, named "ProfileId".

write

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

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