1 package org.omg.PortableInterceptor; 2 3 4 10 11 12 19 abstract public class ObjectReferenceTemplateHelper 20 { 21 private static String _id = "IDL:omg.org/PortableInterceptor/ObjectReferenceTemplate:1.0"; 22 23 24 public static void insert (org.omg.CORBA.Any a, org.omg.PortableInterceptor.ObjectReferenceTemplate that) 25 { 26 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 27 a.type (type ()); 28 write (out, that); 29 a.read_value (out.create_input_stream (), type ()); 30 } 31 32 public static org.omg.PortableInterceptor.ObjectReferenceTemplate extract (org.omg.CORBA.Any a) 33 { 34 return read (a.create_input_stream ()); 35 } 36 37 private static org.omg.CORBA.TypeCode __typeCode = null; 38 private static boolean __active = false; 39 synchronized public static org.omg.CORBA.TypeCode type () 40 { 41 if (__typeCode == null) 42 { 43 synchronized (org.omg.CORBA.TypeCode .class) 44 { 45 if (__typeCode == null) 46 { 47 if (__active) 48 { 49 return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); 50 } 51 __active = true; 52 org.omg.CORBA.ValueMember [] _members0 = new org.omg.CORBA.ValueMember [0]; 53 org.omg.CORBA.TypeCode _tcOf_members0 = null; 54 __typeCode = org.omg.CORBA.ORB.init ().create_value_tc (_id, "ObjectReferenceTemplate", org.omg.CORBA.VM_ABSTRACT.value, null, _members0); 55 __active = false; 56 } 57 } 58 } 59 return __typeCode; 60 } 61 62 public static String id () 63 { 64 return _id; 65 } 66 67 public static org.omg.PortableInterceptor.ObjectReferenceTemplate read (org.omg.CORBA.portable.InputStream istream) 68 { 69 return (org.omg.PortableInterceptor.ObjectReferenceTemplate )((org.omg.CORBA_2_3.portable.InputStream ) istream).read_value (id ()); 70 } 71 72 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.PortableInterceptor.ObjectReferenceTemplate value) 73 { 74 ((org.omg.CORBA_2_3.portable.OutputStream ) ostream).write_value (value, id ()); 75 } 76 77 78 } 79 | Popular Tags |