1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _OperationClassStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.OperationClass 14 { 15 16 public org.omg.mof.Model.Operation[] all_of_type_operation () 17 { 18 org.omg.CORBA.portable.InputStream $in = null; 19 try { 20 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_operation", true); 21 $in = _invoke ($out); 22 org.omg.mof.Model.Operation $result[] = org.omg.mof.Model.OperationSetHelper.read ($in); 23 return $result; 24 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 25 $in = $ex.getInputStream (); 26 String _id = $ex.getId (); 27 throw new org.omg.CORBA.MARSHAL (_id); 28 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 29 return all_of_type_operation (); 30 } finally { 31 _releaseReply ($in); 32 } 33 } 35 public org.omg.mof.Model.Operation[] all_of_class_operation () 36 { 37 org.omg.CORBA.portable.InputStream $in = null; 38 try { 39 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_class_operation", true); 40 $in = _invoke ($out); 41 org.omg.mof.Model.Operation $result[] = org.omg.mof.Model.OperationSetHelper.read ($in); 42 return $result; 43 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 44 $in = $ex.getInputStream (); 45 String _id = $ex.getId (); 46 throw new org.omg.CORBA.MARSHAL (_id); 47 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 48 return all_of_class_operation (); 49 } finally { 50 _releaseReply ($in); 51 } 52 } 54 public org.omg.mof.Model.Operation create_operation (String name, String annotation, org.omg.mof.Model.VisibilityKind visibility, org.omg.mof.Model.ScopeKind scope, boolean is_query) throws org.omg.mof.Reflective.MofError 55 { 56 org.omg.CORBA.portable.InputStream $in = null; 57 try { 58 org.omg.CORBA.portable.OutputStream $out = _request ("create_operation", true); 59 $out.write_string (name); 60 $out.write_string (annotation); 61 org.omg.mof.Model.VisibilityKindHelper.write ($out, visibility); 62 org.omg.mof.Model.ScopeKindHelper.write ($out, scope); 63 $out.write_boolean (is_query); 64 $in = _invoke ($out); 65 org.omg.mof.Model.Operation $result = org.omg.mof.Model.OperationHelper.read ($in); 66 return $result; 67 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 68 $in = $ex.getInputStream (); 69 String _id = $ex.getId (); 70 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 71 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 72 else 73 throw new org.omg.CORBA.MARSHAL (_id); 74 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 75 return create_operation (name, annotation, visibility, scope, is_query); 76 } finally { 77 _releaseReply ($in); 78 } 79 } 81 public org.omg.mof.Model.BehavioralFeature[] all_of_type_behavioral_feature () 82 { 83 org.omg.CORBA.portable.InputStream $in = null; 84 try { 85 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_behavioral_feature", true); 86 $in = _invoke ($out); 87 org.omg.mof.Model.BehavioralFeature $result[] = org.omg.mof.Model.BehavioralFeatureSetHelper.read ($in); 88 return $result; 89 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 90 $in = $ex.getInputStream (); 91 String _id = $ex.getId (); 92 throw new org.omg.CORBA.MARSHAL (_id); 93 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 94 return all_of_type_behavioral_feature (); 95 } finally { 96 _releaseReply ($in); 97 } 98 } 100 public org.omg.mof.Model.Namespace[] all_of_type_namespace () 101 { 102 org.omg.CORBA.portable.InputStream $in = null; 103 try { 104 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_namespace", true); 105 $in = _invoke ($out); 106 org.omg.mof.Model.Namespace $result[] = org.omg.mof.Model.NamespaceSetHelper.read ($in); 107 return $result; 108 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 109 $in = $ex.getInputStream (); 110 String _id = $ex.getId (); 111 throw new org.omg.CORBA.MARSHAL (_id); 112 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 113 return all_of_type_namespace (); 114 } finally { 115 _releaseReply ($in); 116 } 117 } 119 public org.omg.mof.Model.ModelElement[] all_of_type_model_element () 120 { 121 org.omg.CORBA.portable.InputStream $in = null; 122 try { 123 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_model_element", true); 124 $in = _invoke ($out); 125 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in); 126 return $result; 127 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 128 $in = $ex.getInputStream (); 129 String _id = $ex.getId (); 130 throw new org.omg.CORBA.MARSHAL (_id); 131 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 132 return all_of_type_model_element (); 133 } finally { 134 _releaseReply ($in); 135 } 136 } 138 public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes) 139 { 140 org.omg.CORBA.portable.InputStream $in = null; 141 try { 142 org.omg.CORBA.portable.OutputStream $out = _request ("ref_is_instance_of", true); 143 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class); 144 $out.write_boolean (consider_subtypes); 145 $in = _invoke ($out); 146 boolean $result = $in.read_boolean (); 147 return $result; 148 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 149 $in = $ex.getInputStream (); 150 String _id = $ex.getId (); 151 throw new org.omg.CORBA.MARSHAL (_id); 152 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 153 return ref_is_instance_of (some_class, consider_subtypes); 154 } finally { 155 _releaseReply ($in); 156 } 157 } 159 public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any [] args) throws org.omg.mof.Reflective.MofError 160 { 161 org.omg.CORBA.portable.InputStream $in = null; 162 try { 163 org.omg.CORBA.portable.OutputStream $out = _request ("ref_create_instance", true); 164 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args); 165 $in = _invoke ($out); 166 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 167 return $result; 168 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 169 $in = $ex.getInputStream (); 170 String _id = $ex.getId (); 171 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 172 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 173 else 174 throw new org.omg.CORBA.MARSHAL (_id); 175 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 176 return ref_create_instance (args); 177 } finally { 178 _releaseReply ($in); 179 } 180 } 182 public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes) 183 { 184 org.omg.CORBA.portable.InputStream $in = null; 185 try { 186 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_objects", true); 187 $out.write_boolean (include_subtypes); 188 $in = _invoke ($out); 189 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in); 190 return $result; 191 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 192 $in = $ex.getInputStream (); 193 String _id = $ex.getId (); 194 throw new org.omg.CORBA.MARSHAL (_id); 195 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 196 return ref_all_objects (include_subtypes); 197 } finally { 198 _releaseReply ($in); 199 } 200 } 202 public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_value) throws org.omg.mof.Reflective.MofError 203 { 204 org.omg.CORBA.portable.InputStream $in = null; 205 try { 206 org.omg.CORBA.portable.OutputStream $out = _request ("ref_set_value", true); 207 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 208 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value); 209 $in = _invoke ($out); 210 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 211 $in = $ex.getInputStream (); 212 String _id = $ex.getId (); 213 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 214 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 215 else 216 throw new org.omg.CORBA.MARSHAL (_id); 217 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 218 ref_set_value (feature, new_value); 219 } finally { 220 _releaseReply ($in); 221 } 222 } 224 public org.omg.CORBA.Any ref_value (org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 225 { 226 org.omg.CORBA.portable.InputStream $in = null; 227 try { 228 org.omg.CORBA.portable.OutputStream $out = _request ("ref_value", true); 229 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 230 $in = _invoke ($out); 231 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 232 return $result; 233 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 234 $in = $ex.getInputStream (); 235 String _id = $ex.getId (); 236 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 237 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 238 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 239 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 240 else 241 throw new org.omg.CORBA.MARSHAL (_id); 242 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 243 return ref_value (feature); 244 } finally { 245 _releaseReply ($in); 246 } 247 } 249 public void ref_unset_value () throws org.omg.mof.Reflective.MofError 250 { 251 org.omg.CORBA.portable.InputStream $in = null; 252 try { 253 org.omg.CORBA.portable.OutputStream $out = _request ("ref_unset_value", true); 254 $in = _invoke ($out); 255 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 256 $in = $ex.getInputStream (); 257 String _id = $ex.getId (); 258 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 259 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 260 else 261 throw new org.omg.CORBA.MARSHAL (_id); 262 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 263 ref_unset_value (); 264 } finally { 265 _releaseReply ($in); 266 } 267 } 269 public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError 270 { 271 org.omg.CORBA.portable.InputStream $in = null; 272 try { 273 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value", true); 274 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 275 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 276 $in = _invoke ($out); 277 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 278 $in = $ex.getInputStream (); 279 String _id = $ex.getId (); 280 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 281 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 282 else 283 throw new org.omg.CORBA.MARSHAL (_id); 284 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 285 ref_add_value (feature, new_element); 286 } finally { 287 _releaseReply ($in); 288 } 289 } 291 public void ref_add_value_before (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element, org.omg.CORBA.Any before_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 292 { 293 org.omg.CORBA.portable.InputStream $in = null; 294 try { 295 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_before", true); 296 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 297 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 298 org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element); 299 $in = _invoke ($out); 300 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 301 $in = $ex.getInputStream (); 302 String _id = $ex.getId (); 303 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 304 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 305 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 306 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 307 else 308 throw new org.omg.CORBA.MARSHAL (_id); 309 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 310 ref_add_value_before (feature, new_element, before_element); 311 } finally { 312 _releaseReply ($in); 313 } 314 } 316 public void ref_add_value_at (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element, int position) throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError 317 { 318 org.omg.CORBA.portable.InputStream $in = null; 319 try { 320 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_at", true); 321 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 322 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 323 $out.write_ulong (position); 324 $in = _invoke ($out); 325 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 326 $in = $ex.getInputStream (); 327 String _id = $ex.getId (); 328 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 329 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 330 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 331 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 332 else 333 throw new org.omg.CORBA.MARSHAL (_id); 334 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 335 ref_add_value_at (feature, new_element, position); 336 } finally { 337 _releaseReply ($in); 338 } 339 } 341 public void ref_modify_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any old_element, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 342 { 343 org.omg.CORBA.portable.InputStream $in = null; 344 try { 345 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value", true); 346 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 347 org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element); 348 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 349 $in = _invoke ($out); 350 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 351 $in = $ex.getInputStream (); 352 String _id = $ex.getId (); 353 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 354 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 355 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 356 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 357 else 358 throw new org.omg.CORBA.MARSHAL (_id); 359 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 360 ref_modify_value (feature, old_element, new_element); 361 } finally { 362 _releaseReply ($in); 363 } 364 } 366 public void ref_modify_value_at (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element, int position) throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError 367 { 368 org.omg.CORBA.portable.InputStream $in = null; 369 try { 370 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value_at", true); 371 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 372 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 373 $out.write_ulong (position); 374 $in = _invoke ($out); 375 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 376 $in = $ex.getInputStream (); 377 String _id = $ex.getId (); 378 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 379 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 380 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 381 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 382 else 383 throw new org.omg.CORBA.MARSHAL (_id); 384 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 385 ref_modify_value_at (feature, new_element, position); 386 } finally { 387 _releaseReply ($in); 388 } 389 } 391 public void ref_remove_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any existing_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 392 { 393 org.omg.CORBA.portable.InputStream $in = null; 394 try { 395 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value", true); 396 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 397 org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element); 398 $in = _invoke ($out); 399 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 400 $in = $ex.getInputStream (); 401 String _id = $ex.getId (); 402 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 403 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 404 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 405 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 406 else 407 throw new org.omg.CORBA.MARSHAL (_id); 408 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 409 ref_remove_value (feature, existing_element); 410 } finally { 411 _releaseReply ($in); 412 } 413 } 415 public void ref_remove_value_at (org.omg.mof.Reflective.RefObject feature, int position) throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError 416 { 417 org.omg.CORBA.portable.InputStream $in = null; 418 try { 419 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value_at", true); 420 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 421 $out.write_ulong (position); 422 $in = _invoke ($out); 423 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 424 $in = $ex.getInputStream (); 425 String _id = $ex.getId (); 426 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 427 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 428 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 429 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 430 else 431 throw new org.omg.CORBA.MARSHAL (_id); 432 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 433 ref_remove_value_at (feature, position); 434 } finally { 435 _releaseReply ($in); 436 } 437 } 439 public org.omg.mof.Reflective.RefObject ref_immediate_composite () 440 { 441 org.omg.CORBA.portable.InputStream $in = null; 442 try { 443 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_composite", true); 444 $in = _invoke ($out); 445 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 446 return $result; 447 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 448 $in = $ex.getInputStream (); 449 String _id = $ex.getId (); 450 throw new org.omg.CORBA.MARSHAL (_id); 451 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 452 return ref_immediate_composite (); 453 } finally { 454 _releaseReply ($in); 455 } 456 } 458 public org.omg.mof.Reflective.RefObject ref_outermost_composite () 459 { 460 org.omg.CORBA.portable.InputStream $in = null; 461 try { 462 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_composite", true); 463 $in = _invoke ($out); 464 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 465 return $result; 466 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 467 $in = $ex.getInputStream (); 468 String _id = $ex.getId (); 469 throw new org.omg.CORBA.MARSHAL (_id); 470 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 471 return ref_outermost_composite (); 472 } finally { 473 _releaseReply ($in); 474 } 475 } 477 public org.omg.CORBA.Any ref_invoke_operation (org.omg.mof.Reflective.RefObject requested_operation, org.omg.mof.Reflective.ValueTypeListHolder args) throws org.omg.mof.Reflective.OtherException, org.omg.mof.Reflective.MofError 478 { 479 org.omg.CORBA.portable.InputStream $in = null; 480 try { 481 org.omg.CORBA.portable.OutputStream $out = _request ("ref_invoke_operation", true); 482 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation); 483 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value); 484 $in = _invoke ($out); 485 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 486 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in); 487 return $result; 488 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 489 $in = $ex.getInputStream (); 490 String _id = $ex.getId (); 491 if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0")) 492 throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in); 493 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 494 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 495 else 496 throw new org.omg.CORBA.MARSHAL (_id); 497 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 498 return ref_invoke_operation (requested_operation, args); 499 } finally { 500 _releaseReply ($in); 501 } 502 } 504 public String ref_mof_id () 505 { 506 org.omg.CORBA.portable.InputStream $in = null; 507 try { 508 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 509 $in = _invoke ($out); 510 String $result = $in.read_string (); 511 return $result; 512 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 513 $in = $ex.getInputStream (); 514 String _id = $ex.getId (); 515 throw new org.omg.CORBA.MARSHAL (_id); 516 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 517 return ref_mof_id (); 518 } finally { 519 _releaseReply ($in); 520 } 521 } 523 public org.omg.mof.Reflective.RefObject ref_meta_object () 524 { 525 org.omg.CORBA.portable.InputStream $in = null; 526 try { 527 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 528 $in = _invoke ($out); 529 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 530 return $result; 531 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 532 $in = $ex.getInputStream (); 533 String _id = $ex.getId (); 534 throw new org.omg.CORBA.MARSHAL (_id); 535 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 536 return ref_meta_object (); 537 } finally { 538 _releaseReply ($in); 539 } 540 } 542 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 543 { 544 org.omg.CORBA.portable.InputStream $in = null; 545 try { 546 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 547 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 548 $in = _invoke ($out); 549 boolean $result = $in.read_boolean (); 550 return $result; 551 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 552 $in = $ex.getInputStream (); 553 String _id = $ex.getId (); 554 throw new org.omg.CORBA.MARSHAL (_id); 555 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 556 return ref_itself (other_object); 557 } finally { 558 _releaseReply ($in); 559 } 560 } 562 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 563 { 564 org.omg.CORBA.portable.InputStream $in = null; 565 try { 566 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 567 $in = _invoke ($out); 568 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 569 return $result; 570 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 571 $in = $ex.getInputStream (); 572 String _id = $ex.getId (); 573 throw new org.omg.CORBA.MARSHAL (_id); 574 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 575 return ref_immediate_package (); 576 } finally { 577 _releaseReply ($in); 578 } 579 } 581 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 582 { 583 org.omg.CORBA.portable.InputStream $in = null; 584 try { 585 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 586 $in = _invoke ($out); 587 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 588 return $result; 589 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 590 $in = $ex.getInputStream (); 591 String _id = $ex.getId (); 592 throw new org.omg.CORBA.MARSHAL (_id); 593 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 594 return ref_outermost_package (); 595 } finally { 596 _releaseReply ($in); 597 } 598 } 600 public void ref_delete () throws org.omg.mof.Reflective.MofError 601 { 602 org.omg.CORBA.portable.InputStream $in = null; 603 try { 604 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 605 $in = _invoke ($out); 606 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 607 $in = $ex.getInputStream (); 608 String _id = $ex.getId (); 609 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 610 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 611 else 612 throw new org.omg.CORBA.MARSHAL (_id); 613 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 614 ref_delete (); 615 } finally { 616 _releaseReply ($in); 617 } 618 } 620 public org.omg.mof.Model.Feature[] all_of_type_feature () 621 { 622 org.omg.CORBA.portable.InputStream $in = null; 623 try { 624 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_feature", true); 625 $in = _invoke ($out); 626 org.omg.mof.Model.Feature $result[] = org.omg.mof.Model.FeatureSetHelper.read ($in); 627 return $result; 628 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 629 $in = $ex.getInputStream (); 630 String _id = $ex.getId (); 631 throw new org.omg.CORBA.MARSHAL (_id); 632 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 633 return all_of_type_feature (); 634 } finally { 635 _releaseReply ($in); 636 } 637 } 639 private static String [] __ids = { 641 "IDL:org/omg/mof/Model/OperationClass:1.0", 642 "IDL:org/omg/mof/Model/BehavioralFeatureClass:1.0", 643 "IDL:org/omg/mof/Model/NamespaceClass:1.0", 644 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 645 "IDL:org/omg/mof/Reflective/RefObject:1.0", 646 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 647 "IDL:org/omg/mof/Model/FeatureClass:1.0"}; 648 649 public String [] _ids () 650 { 651 return (String [])__ids.clone (); 652 } 653 654 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 655 { 656 String str = s.readUTF (); 657 String [] args = null; 658 java.util.Properties props = null; 659 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 660 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 661 _set_delegate (delegate); 662 } 663 664 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 665 { 666 String [] args = null; 667 java.util.Properties props = null; 668 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 669 s.writeUTF (str); 670 } 671 } | Popular Tags |