1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class ModelElementClassPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.ModelElementClassOperations, org.omg.CORBA.portable.InvokeHandler 15 { 16 17 19 private static java.util.Hashtable _methods = new java.util.Hashtable (); 20 static 21 { 22 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (0)); 23 _methods.put ("ref_is_instance_of", new java.lang.Integer (1)); 24 _methods.put ("ref_create_instance", new java.lang.Integer (2)); 25 _methods.put ("ref_all_objects", new java.lang.Integer (3)); 26 _methods.put ("ref_set_value", new java.lang.Integer (4)); 27 _methods.put ("ref_value", new java.lang.Integer (5)); 28 _methods.put ("ref_unset_value", new java.lang.Integer (6)); 29 _methods.put ("ref_add_value", new java.lang.Integer (7)); 30 _methods.put ("ref_add_value_before", new java.lang.Integer (8)); 31 _methods.put ("ref_add_value_at", new java.lang.Integer (9)); 32 _methods.put ("ref_modify_value", new java.lang.Integer (10)); 33 _methods.put ("ref_modify_value_at", new java.lang.Integer (11)); 34 _methods.put ("ref_remove_value", new java.lang.Integer (12)); 35 _methods.put ("ref_remove_value_at", new java.lang.Integer (13)); 36 _methods.put ("ref_immediate_composite", new java.lang.Integer (14)); 37 _methods.put ("ref_outermost_composite", new java.lang.Integer (15)); 38 _methods.put ("ref_invoke_operation", new java.lang.Integer (16)); 39 _methods.put ("ref_mof_id", new java.lang.Integer (17)); 40 _methods.put ("ref_meta_object", new java.lang.Integer (18)); 41 _methods.put ("ref_itself", new java.lang.Integer (19)); 42 _methods.put ("ref_immediate_package", new java.lang.Integer (20)); 43 _methods.put ("ref_outermost_package", new java.lang.Integer (21)); 44 _methods.put ("ref_delete", new java.lang.Integer (22)); 45 } 46 47 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 48 org.omg.CORBA.portable.InputStream in, 49 org.omg.CORBA.portable.ResponseHandler $rh) 50 { 51 org.omg.CORBA.portable.OutputStream out = null; 52 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 53 if (__method == null) 54 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 55 56 switch (__method.intValue ()) 57 { 58 case 0: { 60 org.omg.mof.Model.ModelElement $result[] = null; 61 $result = this.all_of_type_model_element (); 62 out = $rh.createReply(); 63 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 64 break; 65 } 66 67 case 1: { 69 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 70 boolean consider_subtypes = in.read_boolean (); 71 boolean $result = false; 72 $result = this.ref_is_instance_of (some_class, consider_subtypes); 73 out = $rh.createReply(); 74 out.write_boolean ($result); 75 break; 76 } 77 78 case 2: { 80 try { 81 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 82 org.omg.mof.Reflective.RefObject $result = null; 83 $result = this.ref_create_instance (args); 84 out = $rh.createReply(); 85 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 86 } catch (org.omg.mof.Reflective.MofError $ex) { 87 out = $rh.createExceptionReply (); 88 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 89 } 90 break; 91 } 92 93 case 3: { 95 boolean include_subtypes = in.read_boolean (); 96 org.omg.mof.Reflective.RefObject $result[] = null; 97 $result = this.ref_all_objects (include_subtypes); 98 out = $rh.createReply(); 99 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 100 break; 101 } 102 103 case 4: { 105 try { 106 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 107 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 108 this.ref_set_value (feature, new_value); 109 out = $rh.createReply(); 110 } catch (org.omg.mof.Reflective.MofError $ex) { 111 out = $rh.createExceptionReply (); 112 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 113 } 114 break; 115 } 116 117 case 5: { 119 try { 120 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 121 org.omg.CORBA.Any $result = null; 122 $result = this.ref_value (feature); 123 out = $rh.createReply(); 124 out.write_any ($result); 125 } catch (org.omg.mof.Reflective.NotSet $ex) { 126 out = $rh.createExceptionReply (); 127 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 128 } catch (org.omg.mof.Reflective.MofError $ex) { 129 out = $rh.createExceptionReply (); 130 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 131 } 132 break; 133 } 134 135 case 6: { 137 try { 138 this.ref_unset_value (); 139 out = $rh.createReply(); 140 } catch (org.omg.mof.Reflective.MofError $ex) { 141 out = $rh.createExceptionReply (); 142 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 143 } 144 break; 145 } 146 147 case 7: { 149 try { 150 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 151 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 152 this.ref_add_value (feature, new_element); 153 out = $rh.createReply(); 154 } catch (org.omg.mof.Reflective.MofError $ex) { 155 out = $rh.createExceptionReply (); 156 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 157 } 158 break; 159 } 160 161 case 8: { 163 try { 164 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 165 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 166 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 167 this.ref_add_value_before (feature, new_element, before_element); 168 out = $rh.createReply(); 169 } catch (org.omg.mof.Reflective.NotFound $ex) { 170 out = $rh.createExceptionReply (); 171 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 172 } catch (org.omg.mof.Reflective.MofError $ex) { 173 out = $rh.createExceptionReply (); 174 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 175 } 176 break; 177 } 178 179 case 9: { 181 try { 182 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 183 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 184 int position = in.read_ulong (); 185 this.ref_add_value_at (feature, new_element, position); 186 out = $rh.createReply(); 187 } catch (org.omg.mof.Reflective.BadPosition $ex) { 188 out = $rh.createExceptionReply (); 189 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 190 } catch (org.omg.mof.Reflective.MofError $ex) { 191 out = $rh.createExceptionReply (); 192 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 193 } 194 break; 195 } 196 197 case 10: { 199 try { 200 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 201 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 202 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 203 this.ref_modify_value (feature, old_element, new_element); 204 out = $rh.createReply(); 205 } catch (org.omg.mof.Reflective.NotFound $ex) { 206 out = $rh.createExceptionReply (); 207 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 208 } catch (org.omg.mof.Reflective.MofError $ex) { 209 out = $rh.createExceptionReply (); 210 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 211 } 212 break; 213 } 214 215 case 11: { 217 try { 218 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 219 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 220 int position = in.read_ulong (); 221 this.ref_modify_value_at (feature, new_element, position); 222 out = $rh.createReply(); 223 } catch (org.omg.mof.Reflective.BadPosition $ex) { 224 out = $rh.createExceptionReply (); 225 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 226 } catch (org.omg.mof.Reflective.MofError $ex) { 227 out = $rh.createExceptionReply (); 228 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 229 } 230 break; 231 } 232 233 case 12: { 235 try { 236 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 237 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 238 this.ref_remove_value (feature, existing_element); 239 out = $rh.createReply(); 240 } catch (org.omg.mof.Reflective.NotFound $ex) { 241 out = $rh.createExceptionReply (); 242 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 243 } catch (org.omg.mof.Reflective.MofError $ex) { 244 out = $rh.createExceptionReply (); 245 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 246 } 247 break; 248 } 249 250 case 13: { 252 try { 253 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 254 int position = in.read_ulong (); 255 this.ref_remove_value_at (feature, position); 256 out = $rh.createReply(); 257 } catch (org.omg.mof.Reflective.BadPosition $ex) { 258 out = $rh.createExceptionReply (); 259 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 260 } catch (org.omg.mof.Reflective.MofError $ex) { 261 out = $rh.createExceptionReply (); 262 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 263 } 264 break; 265 } 266 267 case 14: { 269 org.omg.mof.Reflective.RefObject $result = null; 270 $result = this.ref_immediate_composite (); 271 out = $rh.createReply(); 272 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 273 break; 274 } 275 276 case 15: { 278 org.omg.mof.Reflective.RefObject $result = null; 279 $result = this.ref_outermost_composite (); 280 out = $rh.createReply(); 281 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 282 break; 283 } 284 285 case 16: { 287 try { 288 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 289 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 290 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 291 org.omg.CORBA.Any $result = null; 292 $result = this.ref_invoke_operation (requested_operation, args); 293 out = $rh.createReply(); 294 out.write_any ($result); 295 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 296 } catch (org.omg.mof.Reflective.OtherException $ex) { 297 out = $rh.createExceptionReply (); 298 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 299 } catch (org.omg.mof.Reflective.MofError $ex) { 300 out = $rh.createExceptionReply (); 301 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 302 } 303 break; 304 } 305 306 case 17: { 308 String $result = null; 309 $result = this.ref_mof_id (); 310 out = $rh.createReply(); 311 out.write_string ($result); 312 break; 313 } 314 315 case 18: { 317 org.omg.mof.Reflective.RefObject $result = null; 318 $result = this.ref_meta_object (); 319 out = $rh.createReply(); 320 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 321 break; 322 } 323 324 case 19: { 326 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 327 boolean $result = false; 328 $result = this.ref_itself (other_object); 329 out = $rh.createReply(); 330 out.write_boolean ($result); 331 break; 332 } 333 334 case 20: { 336 org.omg.mof.Reflective._RefPackage $result = null; 337 $result = this.ref_immediate_package (); 338 out = $rh.createReply(); 339 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 340 break; 341 } 342 343 case 21: { 345 org.omg.mof.Reflective._RefPackage $result = null; 346 $result = this.ref_outermost_package (); 347 out = $rh.createReply(); 348 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 349 break; 350 } 351 352 case 22: { 354 try { 355 this.ref_delete (); 356 out = $rh.createReply(); 357 } catch (org.omg.mof.Reflective.MofError $ex) { 358 out = $rh.createExceptionReply (); 359 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 360 } 361 break; 362 } 363 364 default: 365 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 366 } 367 368 return out; 369 } 371 private static String [] __ids = { 373 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 374 "IDL:org/omg/mof/Reflective/RefObject:1.0", 375 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 376 377 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 378 { 379 return (String [])__ids.clone (); 380 } 381 382 public ModelElementClass _this() 383 { 384 return ModelElementClassHelper.narrow( 385 super._this_object()); 386 } 387 388 public ModelElementClass _this(org.omg.CORBA.ORB orb) 389 { 390 return ModelElementClassHelper.narrow( 391 super._this_object(orb)); 392 } 393 394 395 } | Popular Tags |