sources:


website:
more info here
studies/corba/Corba-Code1/client/CosTime/OverlapTypeHelper.java
download file

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