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