KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > mof > Model > _ModelPackageFactoryStub


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/_ModelPackageFactoryStub.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.1"
7 * from mof1.idl
8 * lundi 17 mars 2003 15 h 01 CET
9 */

10
11
12 // end of interface Exposes
13
public class _ModelPackageFactoryStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.mof.Model.ModelPackageFactory
14 {
15
16   public org.omg.mof.Model._ModelPackage create_model_package () throws org.omg.mof.Reflective.MofError
17   {
18     org.omg.CORBA.portable.InputStream JavaDoc $in = null;
19     try {
20        org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("create_model_package", true);
21        $in = _invoke ($out);
22        org.omg.mof.Model._ModelPackage $result = org.omg.mof.Model._ModelPackageHelper.read ($in);
23        return $result;
24     } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
25        $in = $ex.getInputStream ();
26        String JavaDoc _id = $ex.getId ();
27        if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0"))
28           throw org.omg.mof.Reflective.MofErrorHelper.read ($in);
29        else
30             throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
31     } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
32        return create_model_package ();
33     } finally {
34         _releaseReply ($in);
35     }
36   } // create_model_package
37

38   // Type-specific CORBA::Object operations
39
private static String JavaDoc[] __ids = {
40     "IDL:org/omg/mof/Model/ModelPackageFactory:1.0"};
41
42   public String JavaDoc[] _ids ()
43   {
44     return (String JavaDoc[])__ids.clone ();
45   }
46
47   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
48   {
49      String JavaDoc str = s.readUTF ();
50      String JavaDoc[] args = null;
51      java.util.Properties JavaDoc props = null;
52      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
53      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
54      _set_delegate (delegate);
55   }
56
57   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
58   {
59      String JavaDoc[] args = null;
60      java.util.Properties JavaDoc props = null;
61      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
62      s.writeUTF (str);
63   }
64 } // class _ModelPackageFactoryStub
65
Popular Tags