4 * Generated by the IDL-to-Java compiler (portable), version "3.2"
6 * domingo 8 de junio de 2008 13H38' CEST
9 public class _ejemploStub extends org.omg.CORBA.portable.ObjectImpl implements ejemplo
16 org.omg.CORBA.portable.InputStream $in = null;
18 org.omg.CORBA.portable.OutputStream $out = _request ("_get_entero", true);
20 int $result = $in.read_long ();
22 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
23 $in = $ex.getInputStream ();
24 String _id = $ex.getId ();
25 throw new org.omg.CORBA.MARSHAL (_id);
26 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
33 public String cadena ()
35 org.omg.CORBA.portable.InputStream $in = null;
37 org.omg.CORBA.portable.OutputStream $out = _request ("_get_cadena", true);
39 String $result = $in.read_string ();
41 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
42 $in = $ex.getInputStream ();
43 String _id = $ex.getId ();
44 throw new org.omg.CORBA.MARSHAL (_id);
45 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
52 public void cadena (String newCadena)
54 org.omg.CORBA.portable.InputStream $in = null;
56 org.omg.CORBA.portable.OutputStream $out = _request ("_set_cadena", true);
57 $out.write_string (newCadena);
60 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
61 $in = $ex.getInputStream ();
62 String _id = $ex.getId ();
63 throw new org.omg.CORBA.MARSHAL (_id);
64 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
73 public void operacion1 (int numero)
75 org.omg.CORBA.portable.InputStream $in = null;
77 org.omg.CORBA.portable.OutputStream $out = _request ("operacion1", false);
78 $out.write_long (numero);
81 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
82 $in = $ex.getInputStream ();
83 String _id = $ex.getId ();
84 throw new org.omg.CORBA.MARSHAL (_id);
85 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
92 public String operacion2 (String nombre)
94 org.omg.CORBA.portable.InputStream $in = null;
96 org.omg.CORBA.portable.OutputStream $out = _request ("operacion2", true);
97 $out.write_string (nombre);
99 String $result = $in.read_string ();
101 } catch (org.omg.CORBA.portable.ApplicationException $ex) {
102 $in = $ex.getInputStream ();
103 String _id = $ex.getId ();
104 throw new org.omg.CORBA.MARSHAL (_id);
105 } catch (org.omg.CORBA.portable.RemarshalException $rm) {
106 return operacion2 (nombre );
112 // Type-specific CORBA::Object operations
113 private static String[] __ids = {
116 public String[] _ids ()
118 return (String[])__ids.clone ();
121 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
123 String str = s.readUTF ();
124 String[] args = null;
125 java.util.Properties props = null;
126 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
127 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
128 _set_delegate (delegate);
131 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
133 String[] args = null;
134 java.util.Properties props = null;
135 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
138 } // class _ejemploStub