org.omg.PortableInterceptor.ORBInitInfoPackage

Class ObjectIdHelper

public abstract class ObjectIdHelper extends Object

The Object Id is defined in OMG specification just as a narrow (not wide) string. As such, the Object Id needs no helper, but one is included in the API anyway.
Method Summary
static Stringextract(Any a)
Extract the Object Id from Any (uses {@link Any#extract_string()}).
static Stringid()
Return the Object Id repository id.
static voidinsert(Any a, String that)
Insert the Object Id into Any (uses {@link Any#insert_string(String)}).
static Stringread(InputStream input)
Calls {@link InputStream#read_string()}.
static TypeCodetype()
Return an alias typecode.
static voidwrite(OutputStream output, String value)
Calls {@link OutputStream#write_string(String)}.

Method Detail

extract

public static String extract(Any a)
Extract the Object Id from Any (uses {@link Any#extract_string()}).

Parameters: a the Any to extract from.

id

public static String id()
Return the Object Id repository id.

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

insert

public static void insert(Any a, String that)
Insert the Object Id into Any (uses {@link Any#insert_string(String)}).

Parameters: a the Any to insert into. that the string to insert.

read

public static String read(InputStream input)
Calls {@link InputStream#read_string()}.

Parameters: input the stream to read from.

type

public static TypeCode type()
Return an alias typecode.

write

public static void write(OutputStream output, String value)
Calls {@link OutputStream#write_string(String)}.

Parameters: output the stream to write into. value the string (Object Id) value to write.