1 package org.omg.PortableInterceptor; 2 3 4 10 11 12 29 abstract public class CurrentHelper 30 { 31 private static String _id = "IDL:omg.org/PortableInterceptor/Current:1.0"; 32 33 public static void insert (org.omg.CORBA.Any a, org.omg.PortableInterceptor.Current 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.PortableInterceptor.Current 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.PortableInterceptor.CurrentHelper.id (), "Current"); 52 } 53 return __typeCode; 54 } 55 56 public static String id () 57 { 58 return _id; 59 } 60 61 public static org.omg.PortableInterceptor.Current read (org.omg.CORBA.portable.InputStream istream) 62 { 63 throw new org.omg.CORBA.MARSHAL (); 64 } 65 66 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableInterceptor.Current value) 67 { 68 throw new org.omg.CORBA.MARSHAL (); 69 } 70 71 public static org.omg.PortableInterceptor.Current narrow (org.omg.CORBA.Object obj) 72 { 73 if (obj == null) 74 return null; 75 else if (obj instanceof org.omg.PortableInterceptor.Current ) 76 return (org.omg.PortableInterceptor.Current )obj; 77 else 78 throw new org.omg.CORBA.BAD_PARAM (); 79 } 80 81 public static org.omg.PortableInterceptor.Current unchecked_narrow (org.omg.CORBA.Object obj) 82 { 83 if (obj == null) 84 return null; 85 else if (obj instanceof org.omg.PortableInterceptor.Current ) 86 return (org.omg.PortableInterceptor.Current )obj; 87 else 88 throw new org.omg.CORBA.BAD_PARAM (); 89 } 90 91 } 92
| Popular Tags
|