00001 package Sct.Corba; 00002 00003 00011 abstract public class UCIDsHelper 00012 { 00013 private static String _id = "IDL:Sct/Corba/UCIDs:1.0"; 00014 00015 public static void insert (org.omg.CORBA.Any a, Sct.Corba.UniqueCrateIdentifier[] that) 00016 { 00017 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 00018 a.type (type ()); 00019 write (out, that); 00020 a.read_value (out.create_input_stream (), type ()); 00021 } 00022 00023 public static Sct.Corba.UniqueCrateIdentifier[] extract (org.omg.CORBA.Any a) 00024 { 00025 return read (a.create_input_stream ()); 00026 } 00027 00028 private static org.omg.CORBA.TypeCode __typeCode = null; 00029 synchronized public static org.omg.CORBA.TypeCode type () 00030 { 00031 if (__typeCode == null) 00032 { 00033 __typeCode = Sct.Corba.UniqueCrateIdentifierHelper.type (); 00034 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (Sct.Corba.UCIDHelper.id (), "UCID", __typeCode); 00035 __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); 00036 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (Sct.Corba.UCIDsHelper.id (), "UCIDs", __typeCode); 00037 } 00038 return __typeCode; 00039 } 00040 00041 public static String id () 00042 { 00043 return _id; 00044 } 00045 00046 public static Sct.Corba.UniqueCrateIdentifier[] read (org.omg.CORBA.portable.InputStream istream) 00047 { 00048 Sct.Corba.UniqueCrateIdentifier value[] = null; 00049 int _len0 = istream.read_long (); 00050 value = new Sct.Corba.UniqueCrateIdentifier[_len0]; 00051 for (int _o1 = 0;_o1 < value.length; ++_o1) 00052 value[_o1] = Sct.Corba.UCIDHelper.read (istream); 00053 return value; 00054 } 00055 00056 public static void write (org.omg.CORBA.portable.OutputStream ostream, Sct.Corba.UniqueCrateIdentifier[] value) 00057 { 00058 ostream.write_long (value.length); 00059 for (int _i0 = 0;_i0 < value.length; ++_i0) 00060 Sct.Corba.UCIDHelper.write (ostream, value[_i0]); 00061 } 00062 00063 }