1 package org.omg.mof.Model; 2 3 4 10 11 12 public abstract class ParameterClassPOA extends org.omg.PortableServer.Servant 14 implements org.omg.mof.Model.ParameterClassOperations, 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_parameter", new java.lang.Integer (0)); 23 _methods.put ("_get_all_of_class_parameter", new java.lang.Integer (1)); 24 _methods.put ("create_parameter", new java.lang.Integer (2)); 25 _methods.put ("_get_all_of_type_typed_element", new java.lang.Integer (3)); 26 _methods.put ("_get_all_of_type_model_element", new java.lang.Integer (4)); 27 _methods.put ("ref_is_instance_of", new java.lang.Integer (5)); 28 _methods.put ("ref_create_instance", new java.lang.Integer (6)); 29 _methods.put ("ref_all_objects", new java.lang.Integer (7)); 30 _methods.put ("ref_set_value", new java.lang.Integer (8)); 31 _methods.put ("ref_value", new java.lang.Integer (9)); 32 _methods.put ("ref_unset_value", new java.lang.Integer (10)); 33 _methods.put ("ref_add_value", new java.lang.Integer (11)); 34 _methods.put ("ref_add_value_before", new java.lang.Integer (12)); 35 _methods.put ("ref_add_value_at", new java.lang.Integer (13)); 36 _methods.put ("ref_modify_value", new java.lang.Integer (14)); 37 _methods.put ("ref_modify_value_at", new java.lang.Integer (15)); 38 _methods.put ("ref_remove_value", new java.lang.Integer (16)); 39 _methods.put ("ref_remove_value_at", new java.lang.Integer (17)); 40 _methods.put ("ref_immediate_composite", new java.lang.Integer (18)); 41 _methods.put ("ref_outermost_composite", new java.lang.Integer (19)); 42 _methods.put ("ref_invoke_operation", new java.lang.Integer (20)); 43 _methods.put ("ref_mof_id", new java.lang.Integer (21)); 44 _methods.put ("ref_meta_object", new java.lang.Integer (22)); 45 _methods.put ("ref_itself", new java.lang.Integer (23)); 46 _methods.put ("ref_immediate_package", new java.lang.Integer (24)); 47 _methods.put ("ref_outermost_package", new java.lang.Integer (25)); 48 _methods.put ("ref_delete", new java.lang.Integer (26)); 49 } 50 51 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 52 org.omg.CORBA.portable.InputStream in, 53 org.omg.CORBA.portable.ResponseHandler $rh) 54 { 55 org.omg.CORBA.portable.OutputStream out = null; 56 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 57 if (__method == null) 58 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 59 60 switch (__method.intValue ()) 61 { 62 case 0: { 64 org.omg.mof.Model.Parameter $result[] = null; 65 $result = this.all_of_type_parameter (); 66 out = $rh.createReply(); 67 org.omg.mof.Model.ParameterSetHelper.write (out, $result); 68 break; 69 } 70 71 case 1: { 73 org.omg.mof.Model.Parameter $result[] = null; 74 $result = this.all_of_class_parameter (); 75 out = $rh.createReply(); 76 org.omg.mof.Model.ParameterSetHelper.write (out, $result); 77 break; 78 } 79 80 case 2: { 82 try { 83 String name = in.read_string (); 84 String annotation = in.read_string (); 85 org.omg.mof.Model.MultiplicityType multiplicity = org.omg.mof.Model.MultiplicityTypeHelper.read (in); 86 org.omg.mof.Model.DirectionKind direction = org.omg.mof.Model.DirectionKindHelper.read (in); 87 org.omg.mof.Model.Parameter $result = null; 88 $result = this.create_parameter (name, annotation, multiplicity, direction); 89 out = $rh.createReply(); 90 org.omg.mof.Model.ParameterHelper.write (out, $result); 91 } catch (org.omg.mof.Reflective.MofError $ex) { 92 out = $rh.createExceptionReply (); 93 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 94 } 95 break; 96 } 97 98 case 3: { 100 org.omg.mof.Model.TypedElement $result[] = null; 101 $result = this.all_of_type_typed_element (); 102 out = $rh.createReply(); 103 org.omg.mof.Model.TypedElementSetHelper.write (out, $result); 104 break; 105 } 106 107 case 4: { 109 org.omg.mof.Model.ModelElement $result[] = null; 110 $result = this.all_of_type_model_element (); 111 out = $rh.createReply(); 112 org.omg.mof.Model.ModelElementSetHelper.write (out, $result); 113 break; 114 } 115 116 case 5: { 118 org.omg.mof.Reflective.RefObject some_class = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 119 boolean consider_subtypes = in.read_boolean (); 120 boolean $result = false; 121 $result = this.ref_is_instance_of (some_class, consider_subtypes); 122 out = $rh.createReply(); 123 out.write_boolean ($result); 124 break; 125 } 126 127 case 6: { 129 try { 130 org.omg.CORBA.Any args[] = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 131 org.omg.mof.Reflective.RefObject $result = null; 132 $result = this.ref_create_instance (args); 133 out = $rh.createReply(); 134 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 135 } catch (org.omg.mof.Reflective.MofError $ex) { 136 out = $rh.createExceptionReply (); 137 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 138 } 139 break; 140 } 141 142 case 7: { 144 boolean include_subtypes = in.read_boolean (); 145 org.omg.mof.Reflective.RefObject $result[] = null; 146 $result = this.ref_all_objects (include_subtypes); 147 out = $rh.createReply(); 148 org.omg.mof.Reflective.RefObjectSetHelper.write (out, $result); 149 break; 150 } 151 152 case 8: { 154 try { 155 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 156 org.omg.CORBA.Any new_value = org.omg.mof.Reflective._ValueTypeHelper.read (in); 157 this.ref_set_value (feature, new_value); 158 out = $rh.createReply(); 159 } catch (org.omg.mof.Reflective.MofError $ex) { 160 out = $rh.createExceptionReply (); 161 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 162 } 163 break; 164 } 165 166 case 9: { 168 try { 169 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 170 org.omg.CORBA.Any $result = null; 171 $result = this.ref_value (feature); 172 out = $rh.createReply(); 173 out.write_any ($result); 174 } catch (org.omg.mof.Reflective.NotSet $ex) { 175 out = $rh.createExceptionReply (); 176 org.omg.mof.Reflective.NotSetHelper.write (out, $ex); 177 } catch (org.omg.mof.Reflective.MofError $ex) { 178 out = $rh.createExceptionReply (); 179 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 180 } 181 break; 182 } 183 184 case 10: { 186 try { 187 this.ref_unset_value (); 188 out = $rh.createReply(); 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 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 200 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 201 this.ref_add_value (feature, new_element); 202 out = $rh.createReply(); 203 } catch (org.omg.mof.Reflective.MofError $ex) { 204 out = $rh.createExceptionReply (); 205 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 206 } 207 break; 208 } 209 210 case 12: { 212 try { 213 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 214 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 215 org.omg.CORBA.Any before_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 216 this.ref_add_value_before (feature, new_element, before_element); 217 out = $rh.createReply(); 218 } catch (org.omg.mof.Reflective.NotFound $ex) { 219 out = $rh.createExceptionReply (); 220 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 221 } catch (org.omg.mof.Reflective.MofError $ex) { 222 out = $rh.createExceptionReply (); 223 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 224 } 225 break; 226 } 227 228 case 13: { 230 try { 231 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 232 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 233 int position = in.read_ulong (); 234 this.ref_add_value_at (feature, new_element, position); 235 out = $rh.createReply(); 236 } catch (org.omg.mof.Reflective.BadPosition $ex) { 237 out = $rh.createExceptionReply (); 238 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 239 } catch (org.omg.mof.Reflective.MofError $ex) { 240 out = $rh.createExceptionReply (); 241 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 242 } 243 break; 244 } 245 246 case 14: { 248 try { 249 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 250 org.omg.CORBA.Any old_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 251 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 252 this.ref_modify_value (feature, old_element, new_element); 253 out = $rh.createReply(); 254 } catch (org.omg.mof.Reflective.NotFound $ex) { 255 out = $rh.createExceptionReply (); 256 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 257 } catch (org.omg.mof.Reflective.MofError $ex) { 258 out = $rh.createExceptionReply (); 259 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 260 } 261 break; 262 } 263 264 case 15: { 266 try { 267 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 268 org.omg.CORBA.Any new_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 269 int position = in.read_ulong (); 270 this.ref_modify_value_at (feature, new_element, position); 271 out = $rh.createReply(); 272 } catch (org.omg.mof.Reflective.BadPosition $ex) { 273 out = $rh.createExceptionReply (); 274 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 275 } catch (org.omg.mof.Reflective.MofError $ex) { 276 out = $rh.createExceptionReply (); 277 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 278 } 279 break; 280 } 281 282 case 16: { 284 try { 285 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 286 org.omg.CORBA.Any existing_element = org.omg.mof.Reflective._ValueTypeHelper.read (in); 287 this.ref_remove_value (feature, existing_element); 288 out = $rh.createReply(); 289 } catch (org.omg.mof.Reflective.NotFound $ex) { 290 out = $rh.createExceptionReply (); 291 org.omg.mof.Reflective.NotFoundHelper.write (out, $ex); 292 } catch (org.omg.mof.Reflective.MofError $ex) { 293 out = $rh.createExceptionReply (); 294 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 295 } 296 break; 297 } 298 299 case 17: { 301 try { 302 org.omg.mof.Reflective.RefObject feature = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 303 int position = in.read_ulong (); 304 this.ref_remove_value_at (feature, position); 305 out = $rh.createReply(); 306 } catch (org.omg.mof.Reflective.BadPosition $ex) { 307 out = $rh.createExceptionReply (); 308 org.omg.mof.Reflective.BadPositionHelper.write (out, $ex); 309 } catch (org.omg.mof.Reflective.MofError $ex) { 310 out = $rh.createExceptionReply (); 311 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 312 } 313 break; 314 } 315 316 case 18: { 318 org.omg.mof.Reflective.RefObject $result = null; 319 $result = this.ref_immediate_composite (); 320 out = $rh.createReply(); 321 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 322 break; 323 } 324 325 case 19: { 327 org.omg.mof.Reflective.RefObject $result = null; 328 $result = this.ref_outermost_composite (); 329 out = $rh.createReply(); 330 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 331 break; 332 } 333 334 case 20: { 336 try { 337 org.omg.mof.Reflective.RefObject requested_operation = org.omg.mof.Reflective.DesignatorTypeHelper.read (in); 338 org.omg.mof.Reflective.ValueTypeListHolder args = new org.omg.mof.Reflective.ValueTypeListHolder (); 339 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read (in); 340 org.omg.CORBA.Any $result = null; 341 $result = this.ref_invoke_operation (requested_operation, args); 342 out = $rh.createReply(); 343 out.write_any ($result); 344 org.omg.mof.Reflective.ValueTypeListHelper.write (out, args.value); 345 } catch (org.omg.mof.Reflective.OtherException $ex) { 346 out = $rh.createExceptionReply (); 347 org.omg.mof.Reflective.OtherExceptionHelper.write (out, $ex); 348 } catch (org.omg.mof.Reflective.MofError $ex) { 349 out = $rh.createExceptionReply (); 350 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 351 } 352 break; 353 } 354 355 case 21: { 357 String $result = null; 358 $result = this.ref_mof_id (); 359 out = $rh.createReply(); 360 out.write_string ($result); 361 break; 362 } 363 364 case 22: { 366 org.omg.mof.Reflective.RefObject $result = null; 367 $result = this.ref_meta_object (); 368 out = $rh.createReply(); 369 org.omg.mof.Reflective.RefObjectHelper.write (out, $result); 370 break; 371 } 372 373 case 23: { 375 org.omg.mof.Reflective.RefBaseObject other_object = org.omg.mof.Reflective.RefBaseObjectHelper.read (in); 376 boolean $result = false; 377 $result = this.ref_itself (other_object); 378 out = $rh.createReply(); 379 out.write_boolean ($result); 380 break; 381 } 382 383 case 24: { 385 org.omg.mof.Reflective._RefPackage $result = null; 386 $result = this.ref_immediate_package (); 387 out = $rh.createReply(); 388 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 389 break; 390 } 391 392 case 25: { 394 org.omg.mof.Reflective._RefPackage $result = null; 395 $result = this.ref_outermost_package (); 396 out = $rh.createReply(); 397 org.omg.mof.Reflective._RefPackageHelper.write (out, $result); 398 break; 399 } 400 401 case 26: { 403 try { 404 this.ref_delete (); 405 out = $rh.createReply(); 406 } catch (org.omg.mof.Reflective.MofError $ex) { 407 out = $rh.createExceptionReply (); 408 org.omg.mof.Reflective.MofErrorHelper.write (out, $ex); 409 } 410 break; 411 } 412 413 default: 414 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 415 } 416 417 return out; 418 } 420 private static String [] __ids = { 422 "IDL:org/omg/mof/Model/ParameterClass:1.0", 423 "IDL:org/omg/mof/Model/TypedElementClass:1.0", 424 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 425 "IDL:org/omg/mof/Reflective/RefObject:1.0", 426 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 427 428 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 429 { 430 return (String [])__ids.clone (); 431 } 432 433 public ParameterClass _this() 434 { 435 return ParameterClassHelper.narrow( 436 super._this_object()); 437 } 438 439 public ParameterClass _this(org.omg.CORBA.ORB orb) 440 { 441 return ParameterClassHelper.narrow( 442 super._this_object(orb)); 443 } 444 445 446 } | Popular Tags |