1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class OperationClassPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.OperationClassOperations, 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_operation", new java.lang.Integer (0)); 23 _methods.put ("_get_all_of_class_operation", new java.lang.Integer (1)); 24 _methods.put ("create_operation", new java.lang.Integer (2)); 25 _methods.put ("_get_all_of_type_behavioral_feature", new java.lang.Integer (3)); 26 _methods.put ("_get_all_of_type_namespace", new java.lang.Integer (4)); 27 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (5)); 28 _methods.put ("ref_is_instance_of", new java.lang.Integer (6)); 29 _methods.put ("ref_create_instance", new java.lang.Integer (7)); 30 _methods.put ("ref_all_objects", new java.lang.Integer (8)); 31 _methods.put ("ref_set_value", new java.lang.Integer (9)); 32 _methods.put ("ref_value", new java.lang.Integer (10)); 33 _methods.put ("ref_unset_value", new java.lang.Integer (11)); 34 _methods.put ("ref_add_value", new java.lang.Integer (12)); 35 _methods.put ("ref_add_value_before", new java.lang.Integer (13)); 36 _methods.put ("ref_add_value_at", new java.lang.Integer (14)); 37 _methods.put ("ref_modify_value", new java.lang.Integer (15)); 38 _methods.put ("ref_modify_value_at", new java.lang.Integer (16)); 39 _methods.put ("ref_remove_value", new java.lang.Integer (17)); 40 _methods.put ("ref_remove_value_at", new java.lang.Integer (18)); 41 _methods.put ("ref_immediate_composite", new java.lang.Integer (19)); 42 _methods.put ("ref_outermost_composite", new java.lang.Integer (20)); 43 _methods.put ("ref_invoke_operation", new java.lang.Integer (21)); 44 _methods.put ("ref_mof_id", new java.lang.Integer (22)); 45 _methods.put ("ref_meta_object", new java.lang.Integer (23)); 46 _methods.put ("ref_itself", new java.lang.Integer (24)); 47 _methods.put ("ref_immediate_package", new java.lang.Integer (25)); 48 _methods.put ("ref_outermost_package", new java.lang.Integer (26)); 49 _methods.put ("ref_delete", new java.lang.Integer (27)); 50 _methods.put ("_get_all_of_type_feature", new java.lang.Integer (28)); 51 } 52 53 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 54 org.omg.CORBA.portable.InputStream in, 55 org.omg.CORBA.portable.ResponseHandler $rh) 56 { 57 org.omg.CORBA.portable.OutputStream out = null; 58 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 59 if (__method == null) 60 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 61 62 switch (__method.intValue ()) 63 { 64 case 0: { 66 org.omg.mof.Model.Operation $result[] = null; 67 $result = this.all_of_type_operation (); 68 out = $rh.createReply(); 69 org.omg.mof.Model.OperationSetHelper.write (out, $result); 70 break; 71 } 72 73 case 1: { 75 org.omg.mof.Model.Operation $result[] = null; 76 $result = this.all_of_class_operation (); 77 out = $rh.createReply(); 78 org.omg.mof.Model.OperationSetHelper.write (out, $result); 79 break; 80 } 81 82 case 2: { 84 try { 85 String name = in.read_string (); 86 String annotation = in.read_string (); 87 org.omg.mof.Model.VisibilityKind visibility = org.omg.mof.Model.VisibilityKindHelper.read (in); 88 org.omg.mof.Model.ScopeKind scope = org.omg.mof.Model.ScopeKindHelper.read (in); 89 boolean is_query = in.read_boolean (); 90 org.omg.mof.Model.Operation $result = null; 91 $result = this.create_operation (name, annotation, visibility, scope, is_query); 92 out = $rh.createReply(); 93 org.omg.mof.Model.OperationHelper.write (out, $result); 94 } catch (org.omg.mof.Reflective.MofError $ex) { 95 out = $rh.createExceptionReply (); 96 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 97 } 98 break; 99 } 100 101 case 3: { 103 org.omg.mof.Model.BehavioralFeature $result[] = null; 104 $result = this.all_of_type_behavioral_feature (); 105 out = $rh.createReply(); 106 org.omg.mof.Model.BehavioralFeatureSetHelper.write (out, $result); 107 break; 108 } 109 110 case 4: { 112 org.omg.mof.Model.Namespace $result[] = null; 113 $result = this.all_of_type_namespace (); 114 out = $rh.createReply(); 115 org.omg.mof.Model.NamespaceSetHelper.write (out, $result); 116 break; 117 } 118 119 case 5: { 121 org.omg.mof.Model.ModelElement $result[] = null; 122 $result = this.all_of_type_model_element (); 123 out = $rh.createReply(); 124 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 125 break; 126 } 127 128 case 6: { 130 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 131 boolean consider_subtypes = in.read_boolean (); 132 boolean $result = false; 133 $result = this.ref_is_instance_of (some_class, consider_subtypes); 134 out = $rh.createReply(); 135 out.write_boolean ($result); 136 break; 137 } 138 139 case 7: { 141 try { 142 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 143 org.omg.mof.Reflective.RefObject $result = null; 144 $result = this.ref_create_instance (args); 145 out = $rh.createReply(); 146 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 147 } catch (org.omg.mof.Reflective.MofError $ex) { 148 out = $rh.createExceptionReply (); 149 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 150 } 151 break; 152 } 153 154 case 8: { 156 boolean include_subtypes = in.read_boolean (); 157 org.omg.mof.Reflective.RefObject $result[] = null; 158 $result = this.ref_all_objects (include_subtypes); 159 out = $rh.createReply(); 160 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 161 break; 162 } 163 164 case 9: { 166 try { 167 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 168 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 169 this.ref_set_value (feature, new_value); 170 out = $rh.createReply(); 171 } catch (org.omg.mof.Reflective.MofError $ex) { 172 out = $rh.createExceptionReply (); 173 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 174 } 175 break; 176 } 177 178 case 10: { 180 try { 181 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 182 org.omg.CORBA.Any $result = null; 183 $result = this.ref_value (feature); 184 out = $rh.createReply(); 185 out.write_any ($result); 186 } catch (org.omg.mof.Reflective.NotSet $ex) { 187 out = $rh.createExceptionReply (); 188 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 189 } catch (org.omg.mof.Reflective.MofError $ex) { 190 out = $rh.createExceptionReply (); 191 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 192 } 193 break; 194 } 195 196 case 11: { 198 try { 199 this.ref_unset_value (); 200 out = $rh.createReply(); 201 } catch (org.omg.mof.Reflective.MofError $ex) { 202 out = $rh.createExceptionReply (); 203 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 204 } 205 break; 206 } 207 208 case 12: { 210 try { 211 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 212 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 213 this.ref_add_value (feature, new_element); 214 out = $rh.createReply(); 215 } catch (org.omg.mof.Reflective.MofError $ex) { 216 out = $rh.createExceptionReply (); 217 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 218 } 219 break; 220 } 221 222 case 13: { 224 try { 225 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 226 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 227 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 228 this.ref_add_value_before (feature, new_element, before_element); 229 out = $rh.createReply(); 230 } catch (org.omg.mof.Reflective.NotFound $ex) { 231 out = $rh.createExceptionReply (); 232 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 233 } catch (org.omg.mof.Reflective.MofError $ex) { 234 out = $rh.createExceptionReply (); 235 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 236 } 237 break; 238 } 239 240 case 14: { 242 try { 243 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 244 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 245 int position = in.read_ulong (); 246 this.ref_add_value_at (feature, new_element, position); 247 out = $rh.createReply(); 248 } catch (org.omg.mof.Reflective.BadPosition $ex) { 249 out = $rh.createExceptionReply (); 250 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 251 } catch (org.omg.mof.Reflective.MofError $ex) { 252 out = $rh.createExceptionReply (); 253 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 254 } 255 break; 256 } 257 258 case 15: { 260 try { 261 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 262 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 263 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 264 this.ref_modify_value (feature, old_element, new_element); 265 out = $rh.createReply(); 266 } catch (org.omg.mof.Reflective.NotFound $ex) { 267 out = $rh.createExceptionReply (); 268 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 269 } catch (org.omg.mof.Reflective.MofError $ex) { 270 out = $rh.createExceptionReply (); 271 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 272 } 273 break; 274 } 275 276 case 16: { 278 try { 279 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 280 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 281 int position = in.read_ulong (); 282 this.ref_modify_value_at (feature, new_element, position); 283 out = $rh.createReply(); 284 } catch (org.omg.mof.Reflective.BadPosition $ex) { 285 out = $rh.createExceptionReply (); 286 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 287 } catch (org.omg.mof.Reflective.MofError $ex) { 288 out = $rh.createExceptionReply (); 289 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 290 } 291 break; 292 } 293 294 case 17: { 296 try { 297 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 298 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 299 this.ref_remove_value (feature, existing_element); 300 out = $rh.createReply(); 301 } catch (org.omg.mof.Reflective.NotFound $ex) { 302 out = $rh.createExceptionReply (); 303 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 304 } catch (org.omg.mof.Reflective.MofError $ex) { 305 out = $rh.createExceptionReply (); 306 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 307 } 308 break; 309 } 310 311 case 18: { 313 try { 314 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 315 int position = in.read_ulong (); 316 this.ref_remove_value_at (feature, position); 317 out = $rh.createReply(); 318 } catch (org.omg.mof.Reflective.BadPosition $ex) { 319 out = $rh.createExceptionReply (); 320 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 321 } catch (org.omg.mof.Reflective.MofError $ex) { 322 out = $rh.createExceptionReply (); 323 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 324 } 325 break; 326 } 327 328 case 19: { 330 org.omg.mof.Reflective.RefObject $result = null; 331 $result = this.ref_immediate_composite (); 332 out = $rh.createReply(); 333 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 334 break; 335 } 336 337 case 20: { 339 org.omg.mof.Reflective.RefObject $result = null; 340 $result = this.ref_outermost_composite (); 341 out = $rh.createReply(); 342 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 343 break; 344 } 345 346 case 21: { 348 try { 349 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 350 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 351 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 352 org.omg.CORBA.Any $result = null; 353 $result = this.ref_invoke_operation (requested_operation, args); 354 out = $rh.createReply(); 355 out.write_any ($result); 356 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 357 } catch (org.omg.mof.Reflective.OtherException $ex) { 358 out = $rh.createExceptionReply (); 359 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 360 } catch (org.omg.mof.Reflective.MofError $ex) { 361 out = $rh.createExceptionReply (); 362 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 363 } 364 break; 365 } 366 367 case 22: { 369 String $result = null; 370 $result = this.ref_mof_id (); 371 out = $rh.createReply(); 372 out.write_string ($result); 373 break; 374 } 375 376 case 23: { 378 org.omg.mof.Reflective.RefObject $result = null; 379 $result = this.ref_meta_object (); 380 out = $rh.createReply(); 381 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 382 break; 383 } 384 385 case 24: { 387 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 388 boolean $result = false; 389 $result = this.ref_itself (other_object); 390 out = $rh.createReply(); 391 out.write_boolean ($result); 392 break; 393 } 394 395 case 25: { 397 org.omg.mof.Reflective._RefPackage $result = null; 398 $result = this.ref_immediate_package (); 399 out = $rh.createReply(); 400 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 401 break; 402 } 403 404 case 26: { 406 org.omg.mof.Reflective._RefPackage $result = null; 407 $result = this.ref_outermost_package (); 408 out = $rh.createReply(); 409 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 410 break; 411 } 412 413 case 27: { 415 try { 416 this.ref_delete (); 417 out = $rh.createReply(); 418 } catch (org.omg.mof.Reflective.MofError $ex) { 419 out = $rh.createExceptionReply (); 420 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 421 } 422 break; 423 } 424 425 case 28: { 427 org.omg.mof.Model.Feature $result[] = null; 428 $result = this.all_of_type_feature (); 429 out = $rh.createReply(); 430 org.omg.mof.Model.FeatureSetHelper.write (out, $result); 431 break; 432 } 433 434 default: 435 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 436 } 437 438 return out; 439 } 441 private static String [] __ids = { 443 "IDL:org/omg/mof/Model/OperationClass:1.0", 444 "IDL:org/omg/mof/Model/BehavioralFeatureClass:1.0", 445 "IDL:org/omg/mof/Model/NamespaceClass:1.0", 446 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 447 "IDL:org/omg/mof/Reflective/RefObject:1.0", 448 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 449 "IDL:org/omg/mof/Model/FeatureClass:1.0"}; 450 451 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 452 { 453 return (String [])__ids.clone (); 454 } 455 456 public OperationClass _this() 457 { 458 return OperationClassHelper.narrow( 459 super._this_object()); 460 } 461 462 public OperationClass _this(org.omg.CORBA.ORB orb) 463 { 464 return OperationClassHelper.narrow( 465 super._this_object(orb)); 466 } 467 468 469 } | Popular Tags |