123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- package org.omg.IOP;
- import gnu.CORBA.OrbRestricted;
- import org.omg.CORBA.Any;
- import org.omg.CORBA.BAD_OPERATION;
- import org.omg.CORBA.ORB;
- import org.omg.CORBA.TCKind;
- import org.omg.CORBA.TypeCode;
- import org.omg.CORBA.portable.InputStream;
- import org.omg.CORBA.portable.OutputStream;
- public abstract class ComponentIdHelper
- {
-
- public static TypeCode type()
- {
- ORB orb = OrbRestricted.Singleton;
- return orb.create_alias_tc("IDL:omg.org/IOP/ComponentId:1.0",
- "ComponentId",
- orb.get_primitive_tc(TCKind.tk_ulong));
- }
-
- public static void insert(Any any, int that)
- {
- any.insert_ulong(that);
- }
-
- public static int extract(Any any)
- {
- return any.extract_ulong();
- }
-
- public static String id()
- {
- return "IDL:omg.org/IOP/ComponentId:1.0";
- }
-
- public static int read(InputStream input)
- {
- return input.read_ulong();
- }
-
- public static void write(OutputStream output, int value)
- {
- output.write_ulong(value);
- }
- }
|