tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r662395 [2/3] - in /incubator/tuscany/java/sca/modules/binding-corba/src/test/java: ./ org/ org/apache/ org/apache/tuscany/ org/apache/tuscany/sca/ org/apache/tuscany/sca/binding/ org/apache/tuscany/sca/binding/corba/ org/apache/tuscany/sca...
Date Mon, 02 Jun 2008 11:17:35 GMT
Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_ArraysSetterStub.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_ArraysSetterStub.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_ArraysSetterStub.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_ArraysSetterStub.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,340 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/_ArraysSetterStub.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public class _ArraysSetterStub extends org.omg.CORBA.portable.ObjectImpl implements org.apache.tuscany.sca.binding.corba.testing.generated.ArraysSetter
+{
+
+  public boolean[] setBoolean (boolean[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setBoolean", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.boolean_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                boolean $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.boolean_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setBoolean (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setBoolean
+
+  public char[] setChar (char[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setChar", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.char_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                char $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.char_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setChar (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setChar
+
+  public char[] setWchar (char[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setWchar", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.wchar_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                char $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.wchar_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setWchar (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setWchar
+
+  public byte[] setOctet (byte[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setOctet", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.octet_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                byte $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.octet_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setOctet (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setOctet
+
+  public short[] setShort (short[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setShort", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.short_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                short $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.short_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setShort (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setShort
+
+  public short[] setUnsignedShort (short[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setUnsignedShort", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.unsigned_short_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                short $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.unsigned_short_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setUnsignedShort (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setUnsignedShort
+
+  public int[] setLong (int[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setLong", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.long_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                int $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.long_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setLong (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setLong
+
+  public int[] setUnsignedLong (int[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setUnsignedLong", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.unsigned_long_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                int $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.unsigned_long_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setUnsignedLong (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setUnsignedLong
+
+  public long[] setLongLong (long[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setLongLong", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.long_long_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                long $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.long_long_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setLongLong (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setLongLong
+
+  public long[] setUnsignedLongLong (long[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setUnsignedLongLong", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.unsigned_long_long_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                long $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.unsigned_long_long_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setUnsignedLongLong (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setUnsignedLongLong
+
+  public float[] setFloat (float[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setFloat", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.float_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                float $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.float_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setFloat (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setFloat
+
+  public double[] setDouble (double[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setDouble", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.double_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                double $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.double_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setDouble (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setDouble
+
+  public String[] setString (String[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setString", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.string_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                String $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.string_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setString (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setString
+
+  public String[] setWstring (String[] arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setWstring", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.wstring_listHelper.write ($out, arg);
+                $in = _invoke ($out);
+                String $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.wstring_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setWstring (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setWstring
+
+  public org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObject[] setRemoteObject (org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObject[] obj)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setRemoteObject", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.remote_object_listHelper.write ($out, obj);
+                $in = _invoke ($out);
+                org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObject $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.remote_object_listHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setRemoteObject (obj        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setRemoteObject
+
+  // Type-specific CORBA::Object operations
+  private static String[] __ids = {
+    "IDL:Tester/ArraysSetter:1.0"};
+
+  public String[] _ids ()
+  {
+    return (String[])__ids.clone ();
+  }
+
+  private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
+  {
+     String str = s.readUTF ();
+     String[] args = null;
+     java.util.Properties props = null;
+     org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
+     org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
+     _set_delegate (delegate);
+  }
+
+  private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
+  {
+     String[] args = null;
+     java.util.Properties props = null;
+     String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
+     s.writeUTF (str);
+  }
+} // class _ArraysSetterStub

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterImplBase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterImplBase.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterImplBase.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterImplBase.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,218 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/_PrimitivesSetterImplBase.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public abstract class _PrimitivesSetterImplBase extends org.omg.CORBA.portable.ObjectImpl
+                implements org.apache.tuscany.sca.binding.corba.testing.generated.PrimitivesSetter, org.omg.CORBA.portable.InvokeHandler
+{
+
+  // Constructors
+  public _PrimitivesSetterImplBase ()
+  {
+  }
+
+  private static java.util.Hashtable _methods = new java.util.Hashtable ();
+  static
+  {
+    _methods.put ("setBoolean", new java.lang.Integer (0));
+    _methods.put ("setChar", new java.lang.Integer (1));
+    _methods.put ("setWchar", new java.lang.Integer (2));
+    _methods.put ("setOctet", new java.lang.Integer (3));
+    _methods.put ("setShort", new java.lang.Integer (4));
+    _methods.put ("setUnsignedShort", new java.lang.Integer (5));
+    _methods.put ("setLong", new java.lang.Integer (6));
+    _methods.put ("setUnsignedLong", new java.lang.Integer (7));
+    _methods.put ("setLongLong", new java.lang.Integer (8));
+    _methods.put ("setUnsignedLongLong", new java.lang.Integer (9));
+    _methods.put ("setFloat", new java.lang.Integer (10));
+    _methods.put ("setDouble", new java.lang.Integer (11));
+    _methods.put ("setString", new java.lang.Integer (12));
+    _methods.put ("setWstring", new java.lang.Integer (13));
+    _methods.put ("setRemoteObject", new java.lang.Integer (14));
+  }
+
+  public org.omg.CORBA.portable.OutputStream _invoke (String $method,
+                                org.omg.CORBA.portable.InputStream in,
+                                org.omg.CORBA.portable.ResponseHandler $rh)
+  {
+    org.omg.CORBA.portable.OutputStream out = null;
+    java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
+    if (__method == null)
+      throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+
+    switch (__method.intValue ())
+    {
+       case 0:  // Tester/PrimitivesSetter/setBoolean
+       {
+         boolean arg = in.read_boolean ();
+         boolean $result = false;
+         $result = this.setBoolean (arg);
+         out = $rh.createReply();
+         out.write_boolean ($result);
+         break;
+       }
+
+       case 1:  // Tester/PrimitivesSetter/setChar
+       {
+         char arg = in.read_char ();
+         char $result = (char)0;
+         $result = this.setChar (arg);
+         out = $rh.createReply();
+         out.write_char ($result);
+         break;
+       }
+
+       case 2:  // Tester/PrimitivesSetter/setWchar
+       {
+         char arg = in.read_wchar ();
+         char $result = (char)0;
+         $result = this.setWchar (arg);
+         out = $rh.createReply();
+         out.write_wchar ($result);
+         break;
+       }
+
+       case 3:  // Tester/PrimitivesSetter/setOctet
+       {
+         byte arg = in.read_octet ();
+         byte $result = (byte)0;
+         $result = this.setOctet (arg);
+         out = $rh.createReply();
+         out.write_octet ($result);
+         break;
+       }
+
+       case 4:  // Tester/PrimitivesSetter/setShort
+       {
+         short arg = in.read_short ();
+         short $result = (short)0;
+         $result = this.setShort (arg);
+         out = $rh.createReply();
+         out.write_short ($result);
+         break;
+       }
+
+       case 5:  // Tester/PrimitivesSetter/setUnsignedShort
+       {
+         short arg = in.read_ushort ();
+         short $result = (short)0;
+         $result = this.setUnsignedShort (arg);
+         out = $rh.createReply();
+         out.write_ushort ($result);
+         break;
+       }
+
+       case 6:  // Tester/PrimitivesSetter/setLong
+       {
+         int arg = in.read_long ();
+         int $result = (int)0;
+         $result = this.setLong (arg);
+         out = $rh.createReply();
+         out.write_long ($result);
+         break;
+       }
+
+       case 7:  // Tester/PrimitivesSetter/setUnsignedLong
+       {
+         int arg = in.read_ulong ();
+         int $result = (int)0;
+         $result = this.setUnsignedLong (arg);
+         out = $rh.createReply();
+         out.write_ulong ($result);
+         break;
+       }
+
+       case 8:  // Tester/PrimitivesSetter/setLongLong
+       {
+         long arg = in.read_longlong ();
+         long $result = (long)0;
+         $result = this.setLongLong (arg);
+         out = $rh.createReply();
+         out.write_longlong ($result);
+         break;
+       }
+
+       case 9:  // Tester/PrimitivesSetter/setUnsignedLongLong
+       {
+         long arg = in.read_ulonglong ();
+         long $result = (long)0;
+         $result = this.setUnsignedLongLong (arg);
+         out = $rh.createReply();
+         out.write_ulonglong ($result);
+         break;
+       }
+
+       case 10:  // Tester/PrimitivesSetter/setFloat
+       {
+         float arg = in.read_float ();
+         float $result = (float)0;
+         $result = this.setFloat (arg);
+         out = $rh.createReply();
+         out.write_float ($result);
+         break;
+       }
+
+       case 11:  // Tester/PrimitivesSetter/setDouble
+       {
+         double arg = in.read_double ();
+         double $result = (double)0;
+         $result = this.setDouble (arg);
+         out = $rh.createReply();
+         out.write_double ($result);
+         break;
+       }
+
+       case 12:  // Tester/PrimitivesSetter/setString
+       {
+         String arg = in.read_string ();
+         String $result = null;
+         $result = this.setString (arg);
+         out = $rh.createReply();
+         out.write_string ($result);
+         break;
+       }
+
+       case 13:  // Tester/PrimitivesSetter/setWstring
+       {
+         String arg = in.read_wstring ();
+         String $result = null;
+         $result = this.setWstring (arg);
+         out = $rh.createReply();
+         out.write_wstring ($result);
+         break;
+       }
+
+       case 14:  // Tester/PrimitivesSetter/setRemoteObject
+       {
+         org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObject obj = org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObjectHelper.read (in);
+         org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObject $result = null;
+         $result = this.setRemoteObject (obj);
+         out = $rh.createReply();
+         org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObjectHelper.write (out, $result);
+         break;
+       }
+
+       default:
+         throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+    }
+
+    return out;
+  } // _invoke
+
+  // Type-specific CORBA::Object operations
+  private static String[] __ids = {
+    "IDL:Tester/PrimitivesSetter:1.0"};
+
+  public String[] _ids ()
+  {
+    return (String[])__ids.clone ();
+  }
+
+
+} // class _PrimitivesSetterImplBase

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterStub.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterStub.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterStub.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_PrimitivesSetterStub.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,340 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/_PrimitivesSetterStub.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public class _PrimitivesSetterStub extends org.omg.CORBA.portable.ObjectImpl implements org.apache.tuscany.sca.binding.corba.testing.generated.PrimitivesSetter
+{
+
+  public boolean setBoolean (boolean arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setBoolean", true);
+                $out.write_boolean (arg);
+                $in = _invoke ($out);
+                boolean $result = $in.read_boolean ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setBoolean (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setBoolean
+
+  public char setChar (char arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setChar", true);
+                $out.write_char (arg);
+                $in = _invoke ($out);
+                char $result = $in.read_char ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setChar (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setChar
+
+  public char setWchar (char arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setWchar", true);
+                $out.write_wchar (arg);
+                $in = _invoke ($out);
+                char $result = $in.read_wchar ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setWchar (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setWchar
+
+  public byte setOctet (byte arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setOctet", true);
+                $out.write_octet (arg);
+                $in = _invoke ($out);
+                byte $result = $in.read_octet ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setOctet (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setOctet
+
+  public short setShort (short arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setShort", true);
+                $out.write_short (arg);
+                $in = _invoke ($out);
+                short $result = $in.read_short ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setShort (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setShort
+
+  public short setUnsignedShort (short arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setUnsignedShort", true);
+                $out.write_ushort (arg);
+                $in = _invoke ($out);
+                short $result = $in.read_ushort ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setUnsignedShort (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setUnsignedShort
+
+  public int setLong (int arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setLong", true);
+                $out.write_long (arg);
+                $in = _invoke ($out);
+                int $result = $in.read_long ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setLong (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setLong
+
+  public int setUnsignedLong (int arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setUnsignedLong", true);
+                $out.write_ulong (arg);
+                $in = _invoke ($out);
+                int $result = $in.read_ulong ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setUnsignedLong (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setUnsignedLong
+
+  public long setLongLong (long arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setLongLong", true);
+                $out.write_longlong (arg);
+                $in = _invoke ($out);
+                long $result = $in.read_longlong ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setLongLong (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setLongLong
+
+  public long setUnsignedLongLong (long arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setUnsignedLongLong", true);
+                $out.write_ulonglong (arg);
+                $in = _invoke ($out);
+                long $result = $in.read_ulonglong ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setUnsignedLongLong (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setUnsignedLongLong
+
+  public float setFloat (float arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setFloat", true);
+                $out.write_float (arg);
+                $in = _invoke ($out);
+                float $result = $in.read_float ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setFloat (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setFloat
+
+  public double setDouble (double arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setDouble", true);
+                $out.write_double (arg);
+                $in = _invoke ($out);
+                double $result = $in.read_double ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setDouble (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setDouble
+
+  public String setString (String arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setString", true);
+                $out.write_string (arg);
+                $in = _invoke ($out);
+                String $result = $in.read_string ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setString (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setString
+
+  public String setWstring (String arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setWstring", true);
+                $out.write_wstring (arg);
+                $in = _invoke ($out);
+                String $result = $in.read_wstring ();
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setWstring (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setWstring
+
+  public org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObject setRemoteObject (org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObject obj)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setRemoteObject", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObjectHelper.write ($out, obj);
+                $in = _invoke ($out);
+                org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObject $result = org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObjectHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setRemoteObject (obj        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setRemoteObject
+
+  // Type-specific CORBA::Object operations
+  private static String[] __ids = {
+    "IDL:Tester/PrimitivesSetter:1.0"};
+
+  public String[] _ids ()
+  {
+    return (String[])__ids.clone ();
+  }
+
+  private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
+  {
+     String str = s.readUTF ();
+     String[] args = null;
+     java.util.Properties props = null;
+     org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
+     org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
+     _set_delegate (delegate);
+  }
+
+  private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
+  {
+     String[] args = null;
+     java.util.Properties props = null;
+     String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
+     s.writeUTF (str);
+  }
+} // class _PrimitivesSetterStub

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectImplBase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectImplBase.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectImplBase.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectImplBase.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,47 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/_RemoteObjectImplBase.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public abstract class _RemoteObjectImplBase extends org.omg.CORBA.portable.ObjectImpl
+                implements org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObject, org.omg.CORBA.portable.InvokeHandler
+{
+
+  // Constructors
+  public _RemoteObjectImplBase ()
+  {
+  }
+
+  private static java.util.Hashtable _methods = new java.util.Hashtable ();
+  static
+  {
+  }
+
+  public org.omg.CORBA.portable.OutputStream _invoke (String $method,
+                                org.omg.CORBA.portable.InputStream in,
+                                org.omg.CORBA.portable.ResponseHandler $rh)
+  {
+    org.omg.CORBA.portable.OutputStream out = null;
+    java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
+    if (__method == null)
+      throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+
+    return out;
+  } // _invoke
+
+  // Type-specific CORBA::Object operations
+  private static String[] __ids = {
+    "IDL:Tester/RemoteObject:1.0"};
+
+  public String[] _ids ()
+  {
+    return (String[])__ids.clone ();
+  }
+
+
+} // class _RemoteObjectImplBase

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectStub.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectStub.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectStub.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_RemoteObjectStub.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,40 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/_RemoteObjectStub.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public class _RemoteObjectStub extends org.omg.CORBA.portable.ObjectImpl implements org.apache.tuscany.sca.binding.corba.testing.generated.RemoteObject
+{
+
+  // Type-specific CORBA::Object operations
+  private static String[] __ids = {
+    "IDL:Tester/RemoteObject:1.0"};
+
+  public String[] _ids ()
+  {
+    return (String[])__ids.clone ();
+  }
+
+  private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
+  {
+     String str = s.readUTF ();
+     String[] args = null;
+     java.util.Properties props = null;
+     org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
+     org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
+     _set_delegate (delegate);
+  }
+
+  private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
+  {
+     String[] args = null;
+     java.util.Properties props = null;
+     String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
+     s.writeUTF (str);
+  }
+} // class _RemoteObjectStub

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectImplBase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectImplBase.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectImplBase.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectImplBase.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,138 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/_TestObjectImplBase.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public abstract class _TestObjectImplBase extends org.omg.CORBA.portable.ObjectImpl
+                implements org.apache.tuscany.sca.binding.corba.testing.generated.TestObject, org.omg.CORBA.portable.InvokeHandler
+{
+
+  // Constructors
+  public _TestObjectImplBase ()
+  {
+  }
+
+  private static java.util.Hashtable _methods = new java.util.Hashtable ();
+  static
+  {
+    _methods.put ("pickStructFromArgs", new java.lang.Integer (0));
+    _methods.put ("setStruct", new java.lang.Integer (1));
+    _methods.put ("setSimpleStruct", new java.lang.Integer (2));
+    _methods.put ("setLongSeq1", new java.lang.Integer (3));
+    _methods.put ("setLongSeq2", new java.lang.Integer (4));
+    _methods.put ("setLongSeq3", new java.lang.Integer (5));
+  }
+
+  public org.omg.CORBA.portable.OutputStream _invoke (String $method,
+                                org.omg.CORBA.portable.InputStream in,
+                                org.omg.CORBA.portable.ResponseHandler $rh)
+  {
+    org.omg.CORBA.portable.OutputStream out = null;
+    java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
+    if (__method == null)
+      throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+
+    switch (__method.intValue ())
+    {
+       case 0:  // Tester/TestObject/pickStructFromArgs
+       {
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder arg1 = new org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder ();
+         arg1.value = org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.read (in);
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder arg2 = new org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder ();
+         arg2.value = org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.read (in);
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder arg3 = new org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder ();
+         arg3.value = org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.read (in);
+         int structNumber = in.read_long ();
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStruct $result = null;
+         $result = this.pickStructFromArgs (arg1, arg2, arg3, structNumber);
+         out = $rh.createReply();
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.write (out, $result);
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.write (out, arg1.value);
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.write (out, arg2.value);
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.write (out, arg3.value);
+         break;
+       }
+
+       case 1:  // Tester/TestObject/setStruct
+       {
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder arg = new org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder ();
+         arg.value = org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.read (in);
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStruct $result = null;
+         $result = this.setStruct (arg);
+         out = $rh.createReply();
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.write (out, $result);
+         org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.write (out, arg.value);
+         break;
+       }
+
+       case 2:  // Tester/TestObject/setSimpleStruct
+       {
+         org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStructHolder arg = new org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStructHolder ();
+         arg.value = org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStructHelper.read (in);
+         org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStruct $result = null;
+         $result = this.setSimpleStruct (arg);
+         out = $rh.createReply();
+         org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStructHelper.write (out, $result);
+         org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStructHelper.write (out, arg.value);
+         break;
+       }
+
+       case 3:  // Tester/TestObject/setLongSeq1
+       {
+         org.apache.tuscany.sca.binding.corba.testing.generated.long_seq1Holder arg = new org.apache.tuscany.sca.binding.corba.testing.generated.long_seq1Holder ();
+         arg.value = org.apache.tuscany.sca.binding.corba.testing.generated.long_seq1Helper.read (in);
+         int $result[] = null;
+         $result = this.setLongSeq1 (arg);
+         out = $rh.createReply();
+         org.apache.tuscany.sca.binding.corba.testing.generated.long_seq1Helper.write (out, $result);
+         org.apache.tuscany.sca.binding.corba.testing.generated.long_seq1Helper.write (out, arg.value);
+         break;
+       }
+
+       case 4:  // Tester/TestObject/setLongSeq2
+       {
+         org.apache.tuscany.sca.binding.corba.testing.generated.long_seq2Holder arg = new org.apache.tuscany.sca.binding.corba.testing.generated.long_seq2Holder ();
+         arg.value = org.apache.tuscany.sca.binding.corba.testing.generated.long_seq2Helper.read (in);
+         int $result[][] = null;
+         $result = this.setLongSeq2 (arg);
+         out = $rh.createReply();
+         org.apache.tuscany.sca.binding.corba.testing.generated.long_seq2Helper.write (out, $result);
+         org.apache.tuscany.sca.binding.corba.testing.generated.long_seq2Helper.write (out, arg.value);
+         break;
+       }
+
+       case 5:  // Tester/TestObject/setLongSeq3
+       {
+         org.apache.tuscany.sca.binding.corba.testing.generated.long_seq3Holder arg = new org.apache.tuscany.sca.binding.corba.testing.generated.long_seq3Holder ();
+         arg.value = org.apache.tuscany.sca.binding.corba.testing.generated.long_seq3Helper.read (in);
+         int $result[][][] = null;
+         $result = this.setLongSeq3 (arg);
+         out = $rh.createReply();
+         org.apache.tuscany.sca.binding.corba.testing.generated.long_seq3Helper.write (out, $result);
+         org.apache.tuscany.sca.binding.corba.testing.generated.long_seq3Helper.write (out, arg.value);
+         break;
+       }
+
+       default:
+         throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
+    }
+
+    return out;
+  } // _invoke
+
+  // Type-specific CORBA::Object operations
+  private static String[] __ids = {
+    "IDL:Tester/TestObject:1.0"};
+
+  public String[] _ids ()
+  {
+    return (String[])__ids.clone ();
+  }
+
+
+} // class _TestObjectImplBase

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectStub.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectStub.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectStub.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/_TestObjectStub.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,171 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/_TestObjectStub.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public class _TestObjectStub extends org.omg.CORBA.portable.ObjectImpl implements org.apache.tuscany.sca.binding.corba.testing.generated.TestObject
+{
+
+  public org.apache.tuscany.sca.binding.corba.testing.generated.SomeStruct pickStructFromArgs (org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder arg1, org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder arg2, org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder arg3, int structNumber)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("pickStructFromArgs", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.write ($out, arg1.value);
+                org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.write ($out, arg2.value);
+                org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.write ($out, arg3.value);
+                $out.write_long (structNumber);
+                $in = _invoke ($out);
+                org.apache.tuscany.sca.binding.corba.testing.generated.SomeStruct $result = org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.read ($in);
+                arg1.value = org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.read ($in);
+                arg2.value = org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.read ($in);
+                arg3.value = org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return pickStructFromArgs (arg1, arg2, arg3, structNumber        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // pickStructFromArgs
+
+  public org.apache.tuscany.sca.binding.corba.testing.generated.SomeStruct setStruct (org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHolder arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setStruct", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.write ($out, arg.value);
+                $in = _invoke ($out);
+                org.apache.tuscany.sca.binding.corba.testing.generated.SomeStruct $result = org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.read ($in);
+                arg.value = org.apache.tuscany.sca.binding.corba.testing.generated.SomeStructHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setStruct (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setStruct
+
+  public org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStruct setSimpleStruct (org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStructHolder arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setSimpleStruct", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStructHelper.write ($out, arg.value);
+                $in = _invoke ($out);
+                org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStruct $result = org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStructHelper.read ($in);
+                arg.value = org.apache.tuscany.sca.binding.corba.testing.generated.SimpleStructHelper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setSimpleStruct (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setSimpleStruct
+
+  public int[] setLongSeq1 (org.apache.tuscany.sca.binding.corba.testing.generated.long_seq1Holder arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setLongSeq1", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.long_seq1Helper.write ($out, arg.value);
+                $in = _invoke ($out);
+                int $result[] = org.apache.tuscany.sca.binding.corba.testing.generated.long_seq1Helper.read ($in);
+                arg.value = org.apache.tuscany.sca.binding.corba.testing.generated.long_seq1Helper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setLongSeq1 (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setLongSeq1
+
+  public int[][] setLongSeq2 (org.apache.tuscany.sca.binding.corba.testing.generated.long_seq2Holder arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setLongSeq2", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.long_seq2Helper.write ($out, arg.value);
+                $in = _invoke ($out);
+                int $result[][] = org.apache.tuscany.sca.binding.corba.testing.generated.long_seq2Helper.read ($in);
+                arg.value = org.apache.tuscany.sca.binding.corba.testing.generated.long_seq2Helper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setLongSeq2 (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setLongSeq2
+
+  public int[][][] setLongSeq3 (org.apache.tuscany.sca.binding.corba.testing.generated.long_seq3Holder arg)
+  {
+            org.omg.CORBA.portable.InputStream $in = null;
+            try {
+                org.omg.CORBA.portable.OutputStream $out = _request ("setLongSeq3", true);
+                org.apache.tuscany.sca.binding.corba.testing.generated.long_seq3Helper.write ($out, arg.value);
+                $in = _invoke ($out);
+                int $result[][][] = org.apache.tuscany.sca.binding.corba.testing.generated.long_seq3Helper.read ($in);
+                arg.value = org.apache.tuscany.sca.binding.corba.testing.generated.long_seq3Helper.read ($in);
+                return $result;
+            } catch (org.omg.CORBA.portable.ApplicationException $ex) {
+                $in = $ex.getInputStream ();
+                String _id = $ex.getId ();
+                throw new org.omg.CORBA.MARSHAL (_id);
+            } catch (org.omg.CORBA.portable.RemarshalException $rm) {
+                return setLongSeq3 (arg        );
+            } finally {
+                _releaseReply ($in);
+            }
+  } // setLongSeq3
+
+  // Type-specific CORBA::Object operations
+  private static String[] __ids = {
+    "IDL:Tester/TestObject:1.0"};
+
+  public String[] _ids ()
+  {
+    return (String[])__ids.clone ();
+  }
+
+  private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
+  {
+     String str = s.readUTF ();
+     String[] args = null;
+     java.util.Properties props = null;
+     org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
+     org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
+     _set_delegate (delegate);
+  }
+
+  private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
+  {
+     String[] args = null;
+     java.util.Properties props = null;
+     String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
+     s.writeUTF (str);
+  }
+} // class _TestObjectStub

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHelper.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHelper.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHelper.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHelper.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,60 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/boolean_listHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+abstract public class boolean_listHelper
+{
+  private static String  _id = "IDL:Tester/boolean_list:1.0";
+
+  public static void insert (org.omg.CORBA.Any a, boolean[] that)
+  {
+    org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+    a.type (type ());
+    write (out, that);
+    a.read_value (out.create_input_stream (), type ());
+  }
+
+  public static boolean[] extract (org.omg.CORBA.Any a)
+  {
+    return read (a.create_input_stream ());
+  }
+
+  private static org.omg.CORBA.TypeCode __typeCode = null;
+  synchronized public static org.omg.CORBA.TypeCode type ()
+  {
+    if (__typeCode == null)
+    {
+      __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
+      __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
+      __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.binding.corba.testing.generated.boolean_listHelper.id (), "boolean_list", __typeCode);
+    }
+    return __typeCode;
+  }
+
+  public static String id ()
+  {
+    return _id;
+  }
+
+  public static boolean[] read (org.omg.CORBA.portable.InputStream istream)
+  {
+    boolean value[] = null;
+    int _len0 = istream.read_long ();
+    value = new boolean[_len0];
+    istream.read_boolean_array (value, 0, _len0);
+    return value;
+  }
+
+  public static void write (org.omg.CORBA.portable.OutputStream ostream, boolean[] value)
+  {
+    ostream.write_long (value.length);
+    ostream.write_boolean_array (value, 0, value.length);
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHolder.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHolder.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHolder.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/boolean_listHolder.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,39 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/boolean_listHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public final class boolean_listHolder implements org.omg.CORBA.portable.Streamable
+{
+  public boolean value[] = null;
+
+  public boolean_listHolder ()
+  {
+  }
+
+  public boolean_listHolder (boolean[] initialValue)
+  {
+    value = initialValue;
+  }
+
+  public void _read (org.omg.CORBA.portable.InputStream i)
+  {
+    value = org.apache.tuscany.sca.binding.corba.testing.generated.boolean_listHelper.read (i);
+  }
+
+  public void _write (org.omg.CORBA.portable.OutputStream o)
+  {
+    org.apache.tuscany.sca.binding.corba.testing.generated.boolean_listHelper.write (o, value);
+  }
+
+  public org.omg.CORBA.TypeCode _type ()
+  {
+    return org.apache.tuscany.sca.binding.corba.testing.generated.boolean_listHelper.type ();
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHelper.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHelper.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHelper.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHelper.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,60 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/char_listHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+abstract public class char_listHelper
+{
+  private static String  _id = "IDL:Tester/char_list:1.0";
+
+  public static void insert (org.omg.CORBA.Any a, char[] that)
+  {
+    org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+    a.type (type ());
+    write (out, that);
+    a.read_value (out.create_input_stream (), type ());
+  }
+
+  public static char[] extract (org.omg.CORBA.Any a)
+  {
+    return read (a.create_input_stream ());
+  }
+
+  private static org.omg.CORBA.TypeCode __typeCode = null;
+  synchronized public static org.omg.CORBA.TypeCode type ()
+  {
+    if (__typeCode == null)
+    {
+      __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_char);
+      __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
+      __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.binding.corba.testing.generated.char_listHelper.id (), "char_list", __typeCode);
+    }
+    return __typeCode;
+  }
+
+  public static String id ()
+  {
+    return _id;
+  }
+
+  public static char[] read (org.omg.CORBA.portable.InputStream istream)
+  {
+    char value[] = null;
+    int _len0 = istream.read_long ();
+    value = new char[_len0];
+    istream.read_char_array (value, 0, _len0);
+    return value;
+  }
+
+  public static void write (org.omg.CORBA.portable.OutputStream ostream, char[] value)
+  {
+    ostream.write_long (value.length);
+    ostream.write_char_array (value, 0, value.length);
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHolder.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHolder.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHolder.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/char_listHolder.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,39 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/char_listHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public final class char_listHolder implements org.omg.CORBA.portable.Streamable
+{
+  public char value[] = null;
+
+  public char_listHolder ()
+  {
+  }
+
+  public char_listHolder (char[] initialValue)
+  {
+    value = initialValue;
+  }
+
+  public void _read (org.omg.CORBA.portable.InputStream i)
+  {
+    value = org.apache.tuscany.sca.binding.corba.testing.generated.char_listHelper.read (i);
+  }
+
+  public void _write (org.omg.CORBA.portable.OutputStream o)
+  {
+    org.apache.tuscany.sca.binding.corba.testing.generated.char_listHelper.write (o, value);
+  }
+
+  public org.omg.CORBA.TypeCode _type ()
+  {
+    return org.apache.tuscany.sca.binding.corba.testing.generated.char_listHelper.type ();
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHelper.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHelper.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHelper.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHelper.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,60 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/double_listHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+abstract public class double_listHelper
+{
+  private static String  _id = "IDL:Tester/double_list:1.0";
+
+  public static void insert (org.omg.CORBA.Any a, double[] that)
+  {
+    org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+    a.type (type ());
+    write (out, that);
+    a.read_value (out.create_input_stream (), type ());
+  }
+
+  public static double[] extract (org.omg.CORBA.Any a)
+  {
+    return read (a.create_input_stream ());
+  }
+
+  private static org.omg.CORBA.TypeCode __typeCode = null;
+  synchronized public static org.omg.CORBA.TypeCode type ()
+  {
+    if (__typeCode == null)
+    {
+      __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_double);
+      __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
+      __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.binding.corba.testing.generated.double_listHelper.id (), "double_list", __typeCode);
+    }
+    return __typeCode;
+  }
+
+  public static String id ()
+  {
+    return _id;
+  }
+
+  public static double[] read (org.omg.CORBA.portable.InputStream istream)
+  {
+    double value[] = null;
+    int _len0 = istream.read_long ();
+    value = new double[_len0];
+    istream.read_double_array (value, 0, _len0);
+    return value;
+  }
+
+  public static void write (org.omg.CORBA.portable.OutputStream ostream, double[] value)
+  {
+    ostream.write_long (value.length);
+    ostream.write_double_array (value, 0, value.length);
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHolder.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHolder.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHolder.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/double_listHolder.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,39 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/double_listHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public final class double_listHolder implements org.omg.CORBA.portable.Streamable
+{
+  public double value[] = null;
+
+  public double_listHolder ()
+  {
+  }
+
+  public double_listHolder (double[] initialValue)
+  {
+    value = initialValue;
+  }
+
+  public void _read (org.omg.CORBA.portable.InputStream i)
+  {
+    value = org.apache.tuscany.sca.binding.corba.testing.generated.double_listHelper.read (i);
+  }
+
+  public void _write (org.omg.CORBA.portable.OutputStream o)
+  {
+    org.apache.tuscany.sca.binding.corba.testing.generated.double_listHelper.write (o, value);
+  }
+
+  public org.omg.CORBA.TypeCode _type ()
+  {
+    return org.apache.tuscany.sca.binding.corba.testing.generated.double_listHelper.type ();
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHelper.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHelper.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHelper.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHelper.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,60 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/float_listHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+abstract public class float_listHelper
+{
+  private static String  _id = "IDL:Tester/float_list:1.0";
+
+  public static void insert (org.omg.CORBA.Any a, float[] that)
+  {
+    org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+    a.type (type ());
+    write (out, that);
+    a.read_value (out.create_input_stream (), type ());
+  }
+
+  public static float[] extract (org.omg.CORBA.Any a)
+  {
+    return read (a.create_input_stream ());
+  }
+
+  private static org.omg.CORBA.TypeCode __typeCode = null;
+  synchronized public static org.omg.CORBA.TypeCode type ()
+  {
+    if (__typeCode == null)
+    {
+      __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_float);
+      __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
+      __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.binding.corba.testing.generated.float_listHelper.id (), "float_list", __typeCode);
+    }
+    return __typeCode;
+  }
+
+  public static String id ()
+  {
+    return _id;
+  }
+
+  public static float[] read (org.omg.CORBA.portable.InputStream istream)
+  {
+    float value[] = null;
+    int _len0 = istream.read_long ();
+    value = new float[_len0];
+    istream.read_float_array (value, 0, _len0);
+    return value;
+  }
+
+  public static void write (org.omg.CORBA.portable.OutputStream ostream, float[] value)
+  {
+    ostream.write_long (value.length);
+    ostream.write_float_array (value, 0, value.length);
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHolder.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHolder.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHolder.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/float_listHolder.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,39 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/float_listHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public final class float_listHolder implements org.omg.CORBA.portable.Streamable
+{
+  public float value[] = null;
+
+  public float_listHolder ()
+  {
+  }
+
+  public float_listHolder (float[] initialValue)
+  {
+    value = initialValue;
+  }
+
+  public void _read (org.omg.CORBA.portable.InputStream i)
+  {
+    value = org.apache.tuscany.sca.binding.corba.testing.generated.float_listHelper.read (i);
+  }
+
+  public void _write (org.omg.CORBA.portable.OutputStream o)
+  {
+    org.apache.tuscany.sca.binding.corba.testing.generated.float_listHelper.write (o, value);
+  }
+
+  public org.omg.CORBA.TypeCode _type ()
+  {
+    return org.apache.tuscany.sca.binding.corba.testing.generated.float_listHelper.type ();
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHelper.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHelper.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHelper.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHelper.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,60 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/long_listHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+abstract public class long_listHelper
+{
+  private static String  _id = "IDL:Tester/long_list:1.0";
+
+  public static void insert (org.omg.CORBA.Any a, int[] that)
+  {
+    org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+    a.type (type ());
+    write (out, that);
+    a.read_value (out.create_input_stream (), type ());
+  }
+
+  public static int[] extract (org.omg.CORBA.Any a)
+  {
+    return read (a.create_input_stream ());
+  }
+
+  private static org.omg.CORBA.TypeCode __typeCode = null;
+  synchronized public static org.omg.CORBA.TypeCode type ()
+  {
+    if (__typeCode == null)
+    {
+      __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_long);
+      __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
+      __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.binding.corba.testing.generated.long_listHelper.id (), "long_list", __typeCode);
+    }
+    return __typeCode;
+  }
+
+  public static String id ()
+  {
+    return _id;
+  }
+
+  public static int[] read (org.omg.CORBA.portable.InputStream istream)
+  {
+    int value[] = null;
+    int _len0 = istream.read_long ();
+    value = new int[_len0];
+    istream.read_long_array (value, 0, _len0);
+    return value;
+  }
+
+  public static void write (org.omg.CORBA.portable.OutputStream ostream, int[] value)
+  {
+    ostream.write_long (value.length);
+    ostream.write_long_array (value, 0, value.length);
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHolder.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHolder.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHolder.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_listHolder.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,39 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/long_listHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public final class long_listHolder implements org.omg.CORBA.portable.Streamable
+{
+  public int value[] = null;
+
+  public long_listHolder ()
+  {
+  }
+
+  public long_listHolder (int[] initialValue)
+  {
+    value = initialValue;
+  }
+
+  public void _read (org.omg.CORBA.portable.InputStream i)
+  {
+    value = org.apache.tuscany.sca.binding.corba.testing.generated.long_listHelper.read (i);
+  }
+
+  public void _write (org.omg.CORBA.portable.OutputStream o)
+  {
+    org.apache.tuscany.sca.binding.corba.testing.generated.long_listHelper.write (o, value);
+  }
+
+  public org.omg.CORBA.TypeCode _type ()
+  {
+    return org.apache.tuscany.sca.binding.corba.testing.generated.long_listHelper.type ();
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHelper.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHelper.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHelper.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHelper.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,60 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/long_long_listHelper.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+abstract public class long_long_listHelper
+{
+  private static String  _id = "IDL:Tester/long_long_list:1.0";
+
+  public static void insert (org.omg.CORBA.Any a, long[] that)
+  {
+    org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
+    a.type (type ());
+    write (out, that);
+    a.read_value (out.create_input_stream (), type ());
+  }
+
+  public static long[] extract (org.omg.CORBA.Any a)
+  {
+    return read (a.create_input_stream ());
+  }
+
+  private static org.omg.CORBA.TypeCode __typeCode = null;
+  synchronized public static org.omg.CORBA.TypeCode type ()
+  {
+    if (__typeCode == null)
+    {
+      __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_longlong);
+      __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
+      __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.apache.tuscany.sca.binding.corba.testing.generated.long_long_listHelper.id (), "long_long_list", __typeCode);
+    }
+    return __typeCode;
+  }
+
+  public static String id ()
+  {
+    return _id;
+  }
+
+  public static long[] read (org.omg.CORBA.portable.InputStream istream)
+  {
+    long value[] = null;
+    int _len0 = istream.read_long ();
+    value = new long[_len0];
+    istream.read_longlong_array (value, 0, _len0);
+    return value;
+  }
+
+  public static void write (org.omg.CORBA.portable.OutputStream ostream, long[] value)
+  {
+    ostream.write_long (value.length);
+    ostream.write_longlong_array (value, 0, value.length);
+  }
+
+}

Added: incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHolder.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHolder.java?rev=662395&view=auto
==============================================================================
--- incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHolder.java (added)
+++ incubator/tuscany/java/sca/modules/binding-corba/src/test/java/org/apache/tuscany/sca/binding/corba/testing/generated/long_long_listHolder.java Mon Jun  2 04:17:33 2008
@@ -0,0 +1,39 @@
+package org.apache.tuscany.sca.binding.corba.testing.generated;
+
+
+/**
+* Tester/long_long_listHolder.java .
+* Generated by the IDL-to-Java compiler (portable), version "3.2"
+* from tester.idl
+* pi±tek, 30 maj 2008 17:04:42 CEST
+*/
+
+public final class long_long_listHolder implements org.omg.CORBA.portable.Streamable
+{
+  public long value[] = null;
+
+  public long_long_listHolder ()
+  {
+  }
+
+  public long_long_listHolder (long[] initialValue)
+  {
+    value = initialValue;
+  }
+
+  public void _read (org.omg.CORBA.portable.InputStream i)
+  {
+    value = org.apache.tuscany.sca.binding.corba.testing.generated.long_long_listHelper.read (i);
+  }
+
+  public void _write (org.omg.CORBA.portable.OutputStream o)
+  {
+    org.apache.tuscany.sca.binding.corba.testing.generated.long_long_listHelper.write (o, value);
+  }
+
+  public org.omg.CORBA.TypeCode _type ()
+  {
+    return org.apache.tuscany.sca.binding.corba.testing.generated.long_long_listHelper.type ();
+  }
+
+}



Mime
View raw message