1 7 8 package org.omg.PortableServer; 9 10 11 17 18 19 37 abstract public class CurrentHelper 38 { 39 private static String _id = "IDL:omg.org/PortableServer/Current:2.3"; 40 41 public static void insert (org.omg.CORBA.Any a, 42 org.omg.PortableServer.Current that) 43 { 44 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 45 a.type (type ()); 46 write (out, that); 47 a.read_value (out.create_input_stream (), type ()); 48 } 49 50 public static org.omg.PortableServer.Current extract (org.omg.CORBA.Any a) 51 { 52 return read (a.create_input_stream ()); 53 } 54 55 private static org.omg.CORBA.TypeCode __typeCode = null; 56 synchronized public static org.omg.CORBA.TypeCode type () 57 { 58 if (__typeCode == null) 59 { 60 __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc ( 61 org.omg.PortableServer.CurrentHelper.id (), "Current"); 62 } 63 return __typeCode; 64 } 65 66 public static String id () 67 { 68 return _id; 69 } 70 71 public static org.omg.PortableServer.Current read ( 72 org.omg.CORBA.portable.InputStream istream) 73 { 74 throw new org.omg.CORBA.MARSHAL (); 75 } 76 77 public static void write (org.omg.CORBA.portable.OutputStream ostream, 78 org.omg.PortableServer.Current value) 79 { 80 throw new org.omg.CORBA.MARSHAL (); 81 } 82 83 public static org.omg.PortableServer.Current narrow ( 84 org.omg.CORBA.Object obj) 85 { 86 if (obj == null) 87 return null; 88 else if (obj instanceof org.omg.PortableServer.Current ) 89 return (org.omg.PortableServer.Current )obj; 90 else if (!obj._is_a (id ())) 91 throw new org.omg.CORBA.BAD_PARAM (); 92 return null; 93 } 94 95 } 96 | Popular Tags |