public class ExactTimeHelper
1: /*
2: * File: ./REMOTETIME/EXACTTIMEHELPER.JAVA
3: * From: .\C15\CORBA\EXACTTIME.IDL
4: * Date: Wed Jun 13 14:04:30 2001
5: * By: C:\PROGTO~1\JAVA\BIN\IDLTOJ~1.EXE Java IDL 1.2 Aug 18 1998 16:25:34
6: */
8: package remotetime;
9: public class ExactTimeHelper {
10: // It is useless to have instances of this class
11: private ExactTimeHelper() { }
13: public static void write(org.omg.CORBA.portable.OutputStream out, remotetime.ExactTime that) {
14: out.write_Object(that);
15: }
16: public static remotetime.ExactTime read(org.omg.CORBA.portable.InputStream in) {
17: return remotetime.ExactTimeHelper.narrow(in.read_Object());
18: }
19: public static remotetime.ExactTime extract(org.omg.CORBA.Any a) {
20: org.omg.CORBA.portable.InputStream in = a.create_input_stream();
21: return read(in);
22: }
23: public static void insert(org.omg.CORBA.Any a, remotetime.ExactTime that) {
24: org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
25: write(out, that);
26: a.read_value(out.create_input_stream(), type());
27: }
28: private static org.omg.CORBA.TypeCode _tc;
29: synchronized public static org.omg.CORBA.TypeCode type() {
30: if (_tc == null)
31: _tc = org.omg.CORBA.ORB.init().create_interface_tc(id(), "ExactTime");
32: return _tc;
33: }
34: public static String id() {
35: return "IDL:remotetime/ExactTime:1.0";
36: }
37: public static remotetime.ExactTime narrow(org.omg.CORBA.Object that)
38: throws org.omg.CORBA.BAD_PARAM {
39: if (that == null)
40: return null;
41: if (that instanceof remotetime.ExactTime)
42: return (remotetime.ExactTime) that;
43: if (!that._is_a(id())) {
44: throw new org.omg.CORBA.BAD_PARAM();
45: }
46: org.omg.CORBA.portable.Delegate dup = ((org.omg.CORBA.portable.ObjectImpl)that)._get_delegate();
47: remotetime.ExactTime result = new remotetime._ExactTimeStub(dup);
48: return result;
49: }
50: }