studies/corba/Corba-Code1/client/CosTime/_UTOStub.java
⇒
download file
1 package CosTime;
2
3
4
5
6 public class _UTOStub extends org.omg.CORBA.portable.ObjectImpl implements CosTime.UTO
{
7
8 public long time ()
9 {
10 org.omg.CORBA.portable.InputStream ===>$<===in = null;
11 try {
12 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("_get_time", true);
13 ===>$<===in = _invoke (===>$<===out);
14 long ===>$<===result = TimeBase.TimeTHelper.read (===>$<===in);
15 return ===>$<===result;
16 } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
17 ===>$<===in = ===>$<===ex.getInputStream ();
18 String _id = ===>$<===ex.getId ();
19 throw new org.omg.CORBA.MARSHAL (_id);
20 } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
21 return time ( );
22 } finally {
23 _releaseReply (===>$<===in);
24 }
25 }
26
27 public long inaccuracy ()
28 {
29 org.omg.CORBA.portable.InputStream ===>$<===in = null;
30 try {
31 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("_get_inaccuracy", true);
32 ===>$<===in = _invoke (===>$<===out);
33 long ===>$<===result = TimeBase.InaccuracyTHelper.read (===>$<===in);
34 return ===>$<===result;
35 } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
36 ===>$<===in = ===>$<===ex.getInputStream ();
37 String _id = ===>$<===ex.getId ();
38 throw new org.omg.CORBA.MARSHAL (_id);
39 } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
40 return inaccuracy ( );
41 } finally {
42 _releaseReply (===>$<===in);
43 }
44 }
45
46 public TimeBase.UtcT utc_time ()
47 {
48 org.omg.CORBA.portable.InputStream ===>$<===in = null;
49 try {
50 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("_get_utc_time", true);
51 ===>$<===in = _invoke (===>$<===out);
52 TimeBase.UtcT ===>$<===result = TimeBase.UtcTHelper.read (===>$<===in);
53 return ===>$<===result;
54 } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
55 ===>$<===in = ===>$<===ex.getInputStream ();
56 String _id = ===>$<===ex.getId ();
57 throw new org.omg.CORBA.MARSHAL (_id);
58 } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
59 return utc_time ( );
60 } finally {
61 _releaseReply (===>$<===in);
62 }
63 }
64
65 public CosTime.UTO absolute_time ()
66 {
67 org.omg.CORBA.portable.InputStream ===>$<===in = null;
68 try {
69 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("absolute_time", true);
70 ===>$<===in = _invoke (===>$<===out);
71 CosTime.UTO ===>$<===result = CosTime.UTOHelper.read (===>$<===in);
72 return ===>$<===result;
73 } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
74 ===>$<===in = ===>$<===ex.getInputStream ();
75 String _id = ===>$<===ex.getId ();
76 throw new org.omg.CORBA.MARSHAL (_id);
77 } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
78 return absolute_time ( );
79 } finally {
80 _releaseReply (===>$<===in);
81 }
82 }
83
84 public CosTime.TimeComparison compare_time (CosTime.ComparisonType comparison_type, CosTime.UTO uto)
85 {
86 org.omg.CORBA.portable.InputStream ===>$<===in = null;
87 try {
88 org.omg.CORBA.portable.OutputStream ===>$<===out = _request ("compare_time", true);
89 CosTime.ComparisonTypeHelper.write (===>$<===out, comparison_type);
90 CosTime.UTOHelper.write (===>$<===out, uto);
91 ===>$<===in = _invoke (===>$<===out);
92 CosTime.TimeComparison ===>$<===result = CosTime.TimeComparisonHelper.read (===>$<===in);
93 return ===>$<===result;
94 } catch (org.omg.CORBA.portable.ApplicationException ===>$<===ex) {
95 ===>$<===in = ===>$<===ex.getInputStream ();
96 String _id = ===>$<===ex.getId ();
97 throw new org.omg.CORBA.MARSHAL (_id);
98 } catch (org.omg.CORBA.portable.RemarshalException ===>$<===rm) {
99 return compare_time (comparison_type, uto );
100 } finally {
101 _releaseReply (===>$<===in);
102 }
103 }
104
105
106 private static String[] __ids = {
107 "IDL:hpi.uni-potsdam.de/CosTime/UTO:1.0"};
108
109 public String[] _ids ()
110 {
111 return (String[])__ids.clone ();
112 }
113
114 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
{
115 String str = s.readUTF ();
116 String[] args = null;
117 java.util.Properties props = null;
118 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
119 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
120 _set_delegate (delegate);
121 }
122
123 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
{
124 String[] args = null;
125 java.util.Properties props = null;
126 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
127 s.writeUTF (str);
128 }
129 }
130
131