1 package org.omg.mof.Reflective; 2 3 4 10 11 public abstract class RefBaseObjectPOA extends org.omg.PortableServer.Servant 12 implements org.omg.mof.Reflective.RefBaseObjectOperations, org.omg.CORBA.portable.InvokeHandler 13 { 14 15 17 private static java.util.Hashtable _methods = new java.util.Hashtable (); 18 static 19 { 20 _methods.put ("ref_mof_id", new java.lang.Integer (0)); 21 _methods.put ("ref_meta_object", new java.lang.Integer (1)); 22 _methods.put ("ref_itself", new java.lang.Integer (2)); 23 _methods.put ("ref_immediate_package", new java.lang.Integer (3)); 24 _methods.put ("ref_outermost_package", new java.lang.Integer (4)); 25 _methods.put ("ref_delete", new java.lang.Integer (5)); 26 } 27 28 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 29 org.omg.CORBA.portable.InputStream in, 30 org.omg.CORBA.portable.ResponseHandler $rh) 31 { 32 org.omg.CORBA.portable.OutputStream out = null; 33 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 34 if (__method == null) 35 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 36 37 switch (__method.intValue ()) 38 { 39 case 0: { 41 String $result = null; 42 $result = this.ref_mof_id (); 43 out = $rh.createReply(); 44 out.write_string ($result); 45 break; 46 } 47 48 case 1: { 50 org.omg.mof.Reflective.RefObject $result = null; 51 $result = this.ref_meta_object (); 52 out = $rh.createReply(); 53 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 54 break; 55 } 56 57 case 2: { 59 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 60 boolean $result = false; 61 $result = this.ref_itself (other_object); 62 out = $rh.createReply(); 63 out.write_boolean ($result); 64 break; 65 } 66 67 case 3: { 69 org.omg.mof.Reflective._RefPackage $result = null; 70 $result = this.ref_immediate_package (); 71 out = $rh.createReply(); 72 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 73 break; 74 } 75 76 case 4: { 78 org.omg.mof.Reflective._RefPackage $result = null; 79 $result = this.ref_outermost_package (); 80 out = $rh.createReply(); 81 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 82 break; 83 } 84 85 case 5: { 87 try { 88 this.ref_delete (); 89 out = $rh.createReply(); 90 } catch (org.omg.mof.Reflective.MofError $ex) { 91 out = $rh.createExceptionReply (); 92 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 93 } 94 break; 95 } 96 97 default: 98 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 99 } 100 101 return out; 102 } 104 private static String [] __ids = { 106 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 107 108 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 109 { 110 return (String [])__ids.clone (); 111 } 112 113 public RefBaseObject _this() 114 { 115 return RefBaseObjectHelper.narrow( 116 super._this_object()); 117 } 118 119 public RefBaseObject _this(org.omg.CORBA.ORB orb) 120 { 121 return RefBaseObjectHelper.narrow( 122 super._this_object(orb)); 123 } 124 125 126 } | Popular Tags |