1 package org.omg.PortableServer; 2 public class ServantLocatorHelper 3 { 4 public ServantLocatorHelper() 5 { 6 } 7 public static void insert(org.omg.CORBA.Any any, org.omg.PortableServer.ServantLocator s) 8 { 9 any.insert_Object(s); 10 } 11 public static org.omg.PortableServer.ServantLocator extract(org.omg.CORBA.Any any) 12 { 13 return narrow(any.extract_Object()); 14 } 15 public static org.omg.CORBA.TypeCode type() 16 { 17 return org.omg.CORBA.ORB.init().create_interface_tc( "IDL:omg.org/PortableServer/ServantLocator:1.0", "ServantLocator"); 18 } 19 public static String id() 20 { 21 return "IDL:omg.org/PortableServer/ServantLocator:1.0"; 22 } 23 public static ServantLocator read(org.omg.CORBA.portable.InputStream in) 24 { 25 return narrow( in.read_Object()); 26 } 27 public static void write(org.omg.CORBA.portable.OutputStream _out, org.omg.PortableServer.ServantLocator s) 28 { 29 _out.write_Object(s); 30 } 31 public static org.omg.PortableServer.ServantLocator narrow(org.omg.CORBA.Object obj) 32 { 33 try 34 { 35 return (org.omg.PortableServer.ServantLocator )obj; 36 } 37 catch( ClassCastException c ) 38 { 39 if( obj._is_a("IDL:omg.org/PortableServer/ServantLocator:1.0")) 40 { 41 org.omg.PortableServer._ServantLocatorStub stub; 42 stub = new org.omg.PortableServer._ServantLocatorStub (); 43 stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl )obj)._get_delegate()); 44 return stub; 45 } 46 } 47 return null; 48 } 49 public void write_Object(org.omg.CORBA.portable.OutputStream _out, java.lang.Object obj) 50 { 51 throw new RuntimeException (" not implemented"); 52 } 53 public java.lang.Object read_Object(org.omg.CORBA.portable.InputStream in) 54 { 55 throw new RuntimeException (" not implemented"); 56 } 57 public String get_id() 58 { 59 return id(); 60 } 61 public org.omg.CORBA.TypeCode get_type() 62 { 63 return type(); 64 } 65 } 66 | Popular Tags |