01: package org.omg.CORBA.ORBPackage;
02:
03: public final class ObjectIdHelper {
04: private static org.omg.CORBA.TypeCode _type = org.omg.CORBA.ORB
05: .init().create_alias_tc(
06: org.omg.CORBA.ORBPackage.ObjectIdHelper.id(),
07: "ObjectId",
08: org.omg.CORBA.ORB.init().create_string_tc(0));
09:
10: public static void insert(org.omg.CORBA.Any any, java.lang.String s) {
11: any.type(type());
12: write(any.create_output_stream(), s);
13: }
14:
15: public static java.lang.String extract(final org.omg.CORBA.Any any) {
16: return read(any.create_input_stream());
17: }
18:
19: public static org.omg.CORBA.TypeCode type() {
20: return _type;
21: }
22:
23: public static String id() {
24: return "IDL:omg.org/CORBA/ORB/ObjectId:1.0";
25: }
26:
27: public static java.lang.String read(
28: final org.omg.CORBA.portable.InputStream _in) {
29: java.lang.String _result;
30: _result = _in.read_string();
31: return _result;
32: }
33:
34: public static void write(
35: final org.omg.CORBA.portable.OutputStream _out,
36: java.lang.String _s) {
37: _out.write_string(_s);
38: }
39: }
|