1 package CosTime;
2
3
4 /**
* CosTime/TimeUnavailableHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from time.idl
* Freitag, 18. April 2003 11.06 Uhr CEST
*/
5
6 abstract public class TimeUnavailableHelper
7 {
8 private static String _id = "IDL:hpi.uni-potsdam.de/CosTime/TimeUnavailable:1.0";
9
10 public static void insert (org.omg.CORBA.Any a, CosTime.TimeUnavailable that)
11 {
12 org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
13 a.type (type ());
14 write (out, that);
15 a.read_value (out.create_input_stream (), type ());
16 }
17
18 public static CosTime.TimeUnavailable extract (org.omg.CORBA.Any a)
19 {
20 return read (a.create_input_stream ());
21 }
22
23 private static org.omg.CORBA.TypeCode __typeCode = null;
24 private static boolean __active = false;
25 synchronized public static org.omg.CORBA.TypeCode type ()
26 {
27 if (__typeCode == null)
28 {
29 synchronized (org.omg.CORBA.TypeCode.class)
30 {
31 if (__typeCode == null)
32 {
33 if (__active)
34 {
35 return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
36 }
37 __active = true;
38 org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
39 org.omg.CORBA.TypeCode _tcOf_members0 = null;
40 __typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (CosTime.TimeUnavailableHelper.id (), "TimeUnavailable", _members0);
41 __active = false;
42 }
43 }
44 }
45 return __typeCode;
46 }
47
48 public static String id ()
49 {
50 return _id;
51 }
52
53 public static CosTime.TimeUnavailable read (org.omg.CORBA.portable.InputStream istream)
54 {
55 CosTime.TimeUnavailable value = new CosTime.TimeUnavailable ();
56 // read and discard the repository ID
57 istream.read_string ();
58 return value;
59 }
60
61 public static void write (org.omg.CORBA.portable.OutputStream ostream, CosTime.TimeUnavailable value)
62 {
63 // write the repository ID
64 ostream.write_string (id ());
65 }
66
67 }
68