KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/ModelPackageFactoryPOA.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 abstract class ModelPackageFactoryPOA extends org.omg.PortableServer.Servant JavaDoc
14  implements org.omg.mof.Model.ModelPackageFactoryOperations, org.omg.CORBA.portable.InvokeHandler JavaDoc
15 {
16
17   // Constructors
18

19   private static java.util.Hashtable JavaDoc _methods = new java.util.Hashtable JavaDoc ();
20   static
21   {
22     _methods.put ("create_model_package", new java.lang.Integer JavaDoc (0));
23   }
24
25   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
26                                 org.omg.CORBA.portable.InputStream JavaDoc in,
27                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
28   {
29     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
30     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
31     if (__method == null)
32       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
33
34     switch (__method.intValue ())
35     {
36        case 0: // org/omg/mof/Model/ModelPackageFactory/create_model_package
37
{
38          try {
39            org.omg.mof.Model._ModelPackage $result = null;
40            $result = this.create_model_package ();
41            out = $rh.createReply();
42            org.omg.mof.Model._ModelPackageHelper.write (out, $result);
43          } catch (org.omg.mof.Reflective.MofError $ex) {
44            out = $rh.createExceptionReply ();
45            org.omg.mof.Reflective.MofErrorHelper.write (out, $ex);
46          }
47          break;
48        }
49
50        default:
51          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
52     }
53
54     return out;
55   } // _invoke
56

57   // Type-specific CORBA::Object operations
58
private static String JavaDoc[] __ids = {
59     "IDL:org/omg/mof/Model/ModelPackageFactory:1.0"};
60
61   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
62   {
63     return (String JavaDoc[])__ids.clone ();
64   }
65
66   public ModelPackageFactory _this()
67   {
68     return ModelPackageFactoryHelper.narrow(
69     super._this_object());
70   }
71
72   public ModelPackageFactory _this(org.omg.CORBA.ORB JavaDoc orb)
73   {
74     return ModelPackageFactoryHelper.narrow(
75     super._this_object(orb));
76   }
77
78
79 } // class ModelPackageFactoryPOA
80
Popular Tags