org.omg.PortableInterceptor.ORBInitInfoPackage
Class ObjectIdHelper

java.lang.Object
  extended by org.omg.PortableInterceptor.ORBInitInfoPackage.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.


Constructor Summary
ObjectIdHelper()
           
 
Method Summary
static String extract(Any a)
          Extract the Object Id from Any (uses Any.extract_string()).
static String id()
          Return the Object Id repository id.
static void insert(Any a, String that)
          Insert the Object Id into Any (uses Any.insert_string(String)).
static String read(InputStream input)
          Calls InputStream.read_string().
static TypeCode type()
          Return an alias typecode.
static void write(OutputStream output, String value)
          Calls OutputStream.write_string(String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIdHelper

public ObjectIdHelper()
Method Detail

insert

public static void insert(Any a,
                          String that)
Insert the Object Id into Any (uses Any.insert_string(String)).

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

extract

public static String extract(Any a)
Extract the Object Id from Any (uses Any.extract_string()).

Parameters:
a - the Any to extract from.

type

public static TypeCode type()
Return an alias typecode.


id

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

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

read

public static String read(InputStream input)
Calls InputStream.read_string().

Parameters:
input - the stream to read from.

write

public static void write(OutputStream output,
                         String value)
Calls OutputStream.write_string(String).

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