< prev index next >

src/java.corba/share/classes/org/omg/CORBA/_IDLTypeStub.java

Print this page




   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package org.omg.CORBA;
  26 
  27 
  28 /**
  29 * The Stub for <tt>IDLType</tt>.  For more information on
  30 * Stub files, see <a href="doc-files/generatedfiles.html#stub">
  31 * "Generated Files: Stubs"</a>.<P>
  32 * org/omg/CORBA/_IDLTypeStub.java
  33 * Generated by the IDL-to-Java compiler (portable), version "3.0"
  34 * from ir.idl.
  35 * 03 June 1999 11:33:44 o'clock GMT+00:00
  36 */
  37 
  38 public class _IDLTypeStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.IDLType
  39 {
  40   /**
  41    * Constructs a default <code>_IDLTypeStub</code> object.
  42    * NOTE:  If the default constructor is used, the
  43    *        object is useless until the method <code>_set_delegate</code>
  44    *        has been called.
  45    */
  46   // NOTE: This constructor is not required according to the spec. Only JCK expects it now.
  47   public _IDLTypeStub ()
  48   {
  49     super ();
  50   }
  51 
  52   /**
  53    * Constructs an <code>_IDLTypeStub</code> object initialized
  54    * with the given <code>Delegate</code> object.
  55    *
  56    * @param delegate a Delegate object
  57    */
  58   // NOTE: This constructor is not required according to the spec. We keep it as a convenience method.
  59   public _IDLTypeStub (org.omg.CORBA.portable.Delegate delegate)
  60   {
  61     super ();
  62     _set_delegate (delegate);
  63   }
  64 
  65   public org.omg.CORBA.TypeCode type ()
  66   {
  67     org.omg.CORBA.portable.InputStream _in = null;
  68     try {
  69        org.omg.CORBA.portable.OutputStream _out = _request ("_get_type", true);
  70        _in = _invoke (_out);
  71        org.omg.CORBA.TypeCode __result = _in.read_TypeCode ();
  72        return __result;
  73     } catch (org.omg.CORBA.portable.ApplicationException _ex) {
  74        _in = _ex.getInputStream ();




   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package org.omg.CORBA;
  26 
  27 
  28 /**
  29 * The Stub for {@code IDLType}.  For more information on
  30 * Stub files, see <a href="doc-files/generatedfiles.html#stub">
  31 * "Generated Files: Stubs"</a>.<P>
  32 * org/omg/CORBA/_IDLTypeStub.java
  33 * Generated by the IDL-to-Java compiler (portable), version "3.0"
  34 * from ir.idl.
  35 * 03 June 1999 11:33:44 o'clock GMT+00:00
  36 */
  37 
  38 public class _IDLTypeStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.IDLType
  39 {
  40   /**
  41    * Constructs a default {@code _IDLTypeStub} object.
  42    * NOTE:  If the default constructor is used, the
  43    *        object is useless until the method {@code _set_delegate}
  44    *        has been called.
  45    */
  46   // NOTE: This constructor is not required according to the spec. Only JCK expects it now.
  47   public _IDLTypeStub ()
  48   {
  49     super ();
  50   }
  51 
  52   /**
  53    * Constructs an {@code _IDLTypeStub} object initialized
  54    * with the given {@code Delegate} object.
  55    *
  56    * @param delegate a Delegate object
  57    */
  58   // NOTE: This constructor is not required according to the spec. We keep it as a convenience method.
  59   public _IDLTypeStub (org.omg.CORBA.portable.Delegate delegate)
  60   {
  61     super ();
  62     _set_delegate (delegate);
  63   }
  64 
  65   public org.omg.CORBA.TypeCode type ()
  66   {
  67     org.omg.CORBA.portable.InputStream _in = null;
  68     try {
  69        org.omg.CORBA.portable.OutputStream _out = _request ("_get_type", true);
  70        _in = _invoke (_out);
  71        org.omg.CORBA.TypeCode __result = _in.read_TypeCode ();
  72        return __result;
  73     } catch (org.omg.CORBA.portable.ApplicationException _ex) {
  74        _in = _ex.getInputStream ();


< prev index next >