4 * Generated by the IDL-to-Java compiler (portable), version "3.2"
6 * domingo 8 de junio de 2008 13H38' CEST
9 abstract public class ejemploHelper
11 private static String _id = "IDL:ejemplo:1.0";
13 public static void insert (org.omg.CORBA.Any a, ejemplo that)
15 org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
18 a.read_value (out.create_input_stream (), type ());
21 public static ejemplo extract (org.omg.CORBA.Any a)
23 return read (a.create_input_stream ());
26 private static org.omg.CORBA.TypeCode __typeCode = null;
27 synchronized public static org.omg.CORBA.TypeCode type ()
29 if (__typeCode == null)
31 __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (ejemploHelper.id (), "ejemplo");
36 public static String id ()
41 public static ejemplo read (org.omg.CORBA.portable.InputStream istream)
43 return narrow (istream.read_Object (_ejemploStub.class));
46 public static void write (org.omg.CORBA.portable.OutputStream ostream, ejemplo value)
48 ostream.write_Object ((org.omg.CORBA.Object) value);
51 public static ejemplo narrow (org.omg.CORBA.Object obj)
55 else if (obj instanceof ejemplo)
57 else if (!obj._is_a (id ()))
58 throw new org.omg.CORBA.BAD_PARAM ();
61 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
62 _ejemploStub stub = new _ejemploStub ();
63 stub._set_delegate(delegate);
68 public static ejemplo unchecked_narrow (org.omg.CORBA.Object obj)
72 else if (obj instanceof ejemplo)
76 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
77 _ejemploStub stub = new _ejemploStub ();
78 stub._set_delegate(delegate);