00001 package Sct.Corba;
00002
00003
00012
00013 abstract public class UPIDHelper
00014 {
00015 private static String _id = "IDL:Sct/Corba/UPID:1.0";
00016
00017 public static void insert (org.omg.CORBA.Any a, Sct.Corba.UniquePartitionIdentifier that)
00018 {
00019 org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
00020 a.type (type ());
00021 write (out, that);
00022 a.read_value (out.create_input_stream (), type ());
00023 }
00024
00025 public static Sct.Corba.UniquePartitionIdentifier extract (org.omg.CORBA.Any a)
00026 {
00027 return read (a.create_input_stream ());
00028 }
00029
00030 private static org.omg.CORBA.TypeCode __typeCode = null;
00031 synchronized public static org.omg.CORBA.TypeCode type ()
00032 {
00033 if (__typeCode == null)
00034 {
00035 __typeCode = Sct.Corba.UniquePartitionIdentifierHelper.type ();
00036 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (Sct.Corba.UPIDHelper.id (), "UPID", __typeCode);
00037 }
00038 return __typeCode;
00039 }
00040
00041 public static String id ()
00042 {
00043 return _id;
00044 }
00045
00046 public static Sct.Corba.UniquePartitionIdentifier read (org.omg.CORBA.portable.InputStream istream)
00047 {
00048 Sct.Corba.UniquePartitionIdentifier value = null;
00049 value = Sct.Corba.UniquePartitionIdentifierHelper.read (istream);
00050 return value;
00051 }
00052
00053 public static void write (org.omg.CORBA.portable.OutputStream ostream, Sct.Corba.UniquePartitionIdentifier value)
00054 {
00055 Sct.Corba.UniquePartitionIdentifierHelper.write (ostream, value);
00056 }
00057
00058 }