1 package CosTime;
2
3
4 /**
* CosTime/OverlapTypeHelper.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 OverlapTypeHelper
7 {
8 private static String _id = "IDL:hpi.uni-potsdam.de/CosTime/OverlapType:1.0";
9
10 public static void insert (org.omg.CORBA.Any a, CosTime.OverlapType 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.OverlapType 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 synchronized public static org.omg.CORBA.TypeCode type ()
25 {
26 if (__typeCode == null)
27 {
28 __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (CosTime.OverlapTypeHelper.id (), "OverlapType", new String[] { "OTContainer", "OTContained", "OTOverlap", "OTNoOverlap"} );
29 }
30 return __typeCode;
31 }
32
33 public static String id ()
34 {
35 return _id;
36 }
37
38 public static CosTime.OverlapType read (org.omg.CORBA.portable.InputStream istream)
39 {
40 return CosTime.OverlapType.from_int (istream.read_long ());
41 }
42
43 public static void write (org.omg.CORBA.portable.OutputStream ostream, CosTime.OverlapType value)
44 {
45 ostream.write_long (value.value ());
46 }
47
48 }
49