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