00001 package Sct_CalibrationController; 00002 00003 00016 abstract public class SequenceRequestHelper 00017 { 00018 private static String _id = "IDL:Sct_CalibrationController/SequenceRequest:1.0"; 00019 00020 public static void insert (org.omg.CORBA.Any a, Sct_CalibrationController.SequenceRequest that) 00021 { 00022 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 00023 a.type (type ()); 00024 write (out, that); 00025 a.read_value (out.create_input_stream (), type ()); 00026 } 00027 00028 public static Sct_CalibrationController.SequenceRequest extract (org.omg.CORBA.Any a) 00029 { 00030 return read (a.create_input_stream ()); 00031 } 00032 00033 private static org.omg.CORBA.TypeCode __typeCode = null; 00034 synchronized public static org.omg.CORBA.TypeCode type () 00035 { 00036 if (__typeCode == null) 00037 { 00038 __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (Sct_CalibrationController.SequenceRequestHelper.id (), "SequenceRequest"); 00039 } 00040 return __typeCode; 00041 } 00042 00043 public static String id () 00044 { 00045 return _id; 00046 } 00047 00048 public static Sct_CalibrationController.SequenceRequest read (org.omg.CORBA.portable.InputStream istream) 00049 { 00050 return narrow (istream.read_Object (_SequenceRequestStub.class)); 00051 } 00052 00053 public static void write (org.omg.CORBA.portable.OutputStream ostream, Sct_CalibrationController.SequenceRequest value) 00054 { 00055 ostream.write_Object ((org.omg.CORBA.Object) value); 00056 } 00057 00058 public static Sct_CalibrationController.SequenceRequest narrow (org.omg.CORBA.Object obj) 00059 { 00060 if (obj == null) 00061 return null; 00062 else if (obj instanceof Sct_CalibrationController.SequenceRequest) 00063 return (Sct_CalibrationController.SequenceRequest)obj; 00064 else if (!obj._is_a (id ())) 00065 throw new org.omg.CORBA.BAD_PARAM (); 00066 else 00067 { 00068 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); 00069 Sct_CalibrationController._SequenceRequestStub stub = new Sct_CalibrationController._SequenceRequestStub (); 00070 stub._set_delegate(delegate); 00071 return stub; 00072 } 00073 } 00074 00075 }