1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _ModelElementStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.ModelElement 14 { 15 16 17 public String name () throws org.omg.mof.Reflective.MofError 19 { 20 org.omg.CORBA.portable.InputStream $in = null; 21 try { 22 org.omg.CORBA.portable.OutputStream $out = _request ("name", true); 23 $in = _invoke ($out); 24 String $result = $in.read_string (); 25 return $result; 26 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 27 $in = $ex.getInputStream (); 28 String _id = $ex.getId (); 29 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 30 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 31 else 32 throw new org.omg.CORBA.MARSHAL (_id); 33 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 34 return name (); 35 } finally { 36 _releaseReply ($in); 37 } 38 } 40 public void set_name (String new_value) throws org.omg.mof.Reflective.MofError 41 { 42 org.omg.CORBA.portable.InputStream $in = null; 43 try { 44 org.omg.CORBA.portable.OutputStream $out = _request ("set_name", true); 45 $out.write_string (new_value); 46 $in = _invoke ($out); 47 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 48 $in = $ex.getInputStream (); 49 String _id = $ex.getId (); 50 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 51 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 52 else 53 throw new org.omg.CORBA.MARSHAL (_id); 54 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 55 set_name (new_value); 56 } finally { 57 _releaseReply ($in); 58 } 59 } 61 62 public String annotation () throws org.omg.mof.Reflective.MofError 64 { 65 org.omg.CORBA.portable.InputStream $in = null; 66 try { 67 org.omg.CORBA.portable.OutputStream $out = _request ("annotation", true); 68 $in = _invoke ($out); 69 String $result = $in.read_string (); 70 return $result; 71 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 72 $in = $ex.getInputStream (); 73 String _id = $ex.getId (); 74 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 75 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 76 else 77 throw new org.omg.CORBA.MARSHAL (_id); 78 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 79 return annotation (); 80 } finally { 81 _releaseReply ($in); 82 } 83 } 85 public void set_annotation (String new_value) throws org.omg.mof.Reflective.MofError 86 { 87 org.omg.CORBA.portable.InputStream $in = null; 88 try { 89 org.omg.CORBA.portable.OutputStream $out = _request ("set_annotation", true); 90 $out.write_string (new_value); 91 $in = _invoke ($out); 92 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 93 $in = $ex.getInputStream (); 94 String _id = $ex.getId (); 95 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 96 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 97 else 98 throw new org.omg.CORBA.MARSHAL (_id); 99 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 100 set_annotation (new_value); 101 } finally { 102 _releaseReply ($in); 103 } 104 } 106 107 public String [] qualified_name () throws org.omg.mof.Reflective.MofError 109 { 110 org.omg.CORBA.portable.InputStream $in = null; 111 try { 112 org.omg.CORBA.portable.OutputStream $out = _request ("qualified_name", true); 113 $in = _invoke ($out); 114 String $result[] = org.omg.mof.Model.StringListHelper.read ($in); 115 return $result; 116 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 117 $in = $ex.getInputStream (); 118 String _id = $ex.getId (); 119 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 120 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 121 else 122 throw new org.omg.CORBA.MARSHAL (_id); 123 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 124 return qualified_name (); 125 } finally { 126 _releaseReply ($in); 127 } 128 } 130 131 public org.omg.mof.Model.Namespace container () throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 133 { 134 org.omg.CORBA.portable.InputStream $in = null; 135 try { 136 org.omg.CORBA.portable.OutputStream $out = _request ("container", true); 137 $in = _invoke ($out); 138 org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.read ($in); 139 return $result; 140 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 141 $in = $ex.getInputStream (); 142 String _id = $ex.getId (); 143 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 144 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 145 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 146 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 147 else 148 throw new org.omg.CORBA.MARSHAL (_id); 149 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 150 return container (); 151 } finally { 152 _releaseReply ($in); 153 } 154 } 156 public void set_container (org.omg.mof.Model.Namespace new_value) throws org.omg.mof.Reflective.MofError 157 { 158 org.omg.CORBA.portable.InputStream $in = null; 159 try { 160 org.omg.CORBA.portable.OutputStream $out = _request ("set_container", true); 161 org.omg.mof.Model.NamespaceHelper.write ($out, new_value); 162 $in = _invoke ($out); 163 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 164 $in = $ex.getInputStream (); 165 String _id = $ex.getId (); 166 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 167 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 168 else 169 throw new org.omg.CORBA.MARSHAL (_id); 170 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 171 set_container (new_value); 172 } finally { 173 _releaseReply ($in); 174 } 175 } 177 public void unset_container () throws org.omg.mof.Reflective.MofError 178 { 179 org.omg.CORBA.portable.InputStream $in = null; 180 try { 181 org.omg.CORBA.portable.OutputStream $out = _request ("unset_container", true); 182 $in = _invoke ($out); 183 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 184 $in = $ex.getInputStream (); 185 String _id = $ex.getId (); 186 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 187 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 188 else 189 throw new org.omg.CORBA.MARSHAL (_id); 190 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 191 unset_container (); 192 } finally { 193 _releaseReply ($in); 194 } 195 } 197 198 public org.omg.mof.Model.ModelElement[] required_elements () throws org.omg.mof.Reflective.MofError 200 { 201 org.omg.CORBA.portable.InputStream $in = null; 202 try { 203 org.omg.CORBA.portable.OutputStream $out = _request ("required_elements", true); 204 $in = _invoke ($out); 205 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementBagHelper.read ($in); 206 return $result; 207 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 208 $in = $ex.getInputStream (); 209 String _id = $ex.getId (); 210 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 211 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 212 else 213 throw new org.omg.CORBA.MARSHAL (_id); 214 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 215 return required_elements (); 216 } finally { 217 _releaseReply ($in); 218 } 219 } 221 public void set_required_elements (org.omg.mof.Model.ModelElement[] new_value) throws org.omg.mof.Reflective.MofError 222 { 223 org.omg.CORBA.portable.InputStream $in = null; 224 try { 225 org.omg.CORBA.portable.OutputStream $out = _request ("set_required_elements", true); 226 org.omg.mof.Model.ModelElementBagHelper.write ($out, new_value); 227 $in = _invoke ($out); 228 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 229 $in = $ex.getInputStream (); 230 String _id = $ex.getId (); 231 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 232 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 233 else 234 throw new org.omg.CORBA.MARSHAL (_id); 235 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 236 set_required_elements (new_value); 237 } finally { 238 _releaseReply ($in); 239 } 240 } 242 public void add_required_elements (org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.MofError 243 { 244 org.omg.CORBA.portable.InputStream $in = null; 245 try { 246 org.omg.CORBA.portable.OutputStream $out = _request ("add_required_elements", true); 247 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 248 $in = _invoke ($out); 249 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 250 $in = $ex.getInputStream (); 251 String _id = $ex.getId (); 252 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 253 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 254 else 255 throw new org.omg.CORBA.MARSHAL (_id); 256 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 257 add_required_elements (new_element); 258 } finally { 259 _releaseReply ($in); 260 } 261 } 263 public void modify_required_elements (org.omg.mof.Model.ModelElement old_element, org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 264 { 265 org.omg.CORBA.portable.InputStream $in = null; 266 try { 267 org.omg.CORBA.portable.OutputStream $out = _request ("modify_required_elements", true); 268 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 269 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 270 $in = _invoke ($out); 271 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 272 $in = $ex.getInputStream (); 273 String _id = $ex.getId (); 274 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 275 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 276 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 277 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 278 else 279 throw new org.omg.CORBA.MARSHAL (_id); 280 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 281 modify_required_elements (old_element, new_element); 282 } finally { 283 _releaseReply ($in); 284 } 285 } 287 public void remove_required_elements (org.omg.mof.Model.ModelElement old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 288 { 289 org.omg.CORBA.portable.InputStream $in = null; 290 try { 291 org.omg.CORBA.portable.OutputStream $out = _request ("remove_required_elements", true); 292 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 293 $in = _invoke ($out); 294 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 295 $in = $ex.getInputStream (); 296 String _id = $ex.getId (); 297 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 298 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 299 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 300 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 301 else 302 throw new org.omg.CORBA.MARSHAL (_id); 303 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 304 remove_required_elements (old_element); 305 } finally { 306 _releaseReply ($in); 307 } 308 } 310 311 public org.omg.mof.Model.Constraint[] constraints () throws org.omg.mof.Reflective.MofError 313 { 314 org.omg.CORBA.portable.InputStream $in = null; 315 try { 316 org.omg.CORBA.portable.OutputStream $out = _request ("constraints", true); 317 $in = _invoke ($out); 318 org.omg.mof.Model.Constraint $result[] = org.omg.mof.Model.ConstraintBagHelper.read ($in); 319 return $result; 320 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 321 $in = $ex.getInputStream (); 322 String _id = $ex.getId (); 323 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 324 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 325 else 326 throw new org.omg.CORBA.MARSHAL (_id); 327 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 328 return constraints (); 329 } finally { 330 _releaseReply ($in); 331 } 332 } 334 public void set_constraints (org.omg.mof.Model.Constraint[] new_value) throws org.omg.mof.Reflective.MofError 335 { 336 org.omg.CORBA.portable.InputStream $in = null; 337 try { 338 org.omg.CORBA.portable.OutputStream $out = _request ("set_constraints", true); 339 org.omg.mof.Model.ConstraintBagHelper.write ($out, new_value); 340 $in = _invoke ($out); 341 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 342 $in = $ex.getInputStream (); 343 String _id = $ex.getId (); 344 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 345 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 346 else 347 throw new org.omg.CORBA.MARSHAL (_id); 348 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 349 set_constraints (new_value); 350 } finally { 351 _releaseReply ($in); 352 } 353 } 355 public void add_constraints (org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.MofError 356 { 357 org.omg.CORBA.portable.InputStream $in = null; 358 try { 359 org.omg.CORBA.portable.OutputStream $out = _request ("add_constraints", true); 360 org.omg.mof.Model.ConstraintHelper.write ($out, new_element); 361 $in = _invoke ($out); 362 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 363 $in = $ex.getInputStream (); 364 String _id = $ex.getId (); 365 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 366 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 367 else 368 throw new org.omg.CORBA.MARSHAL (_id); 369 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 370 add_constraints (new_element); 371 } finally { 372 _releaseReply ($in); 373 } 374 } 376 public void modify_constraints (org.omg.mof.Model.Constraint old_element, org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 377 { 378 org.omg.CORBA.portable.InputStream $in = null; 379 try { 380 org.omg.CORBA.portable.OutputStream $out = _request ("modify_constraints", true); 381 org.omg.mof.Model.ConstraintHelper.write ($out, old_element); 382 org.omg.mof.Model.ConstraintHelper.write ($out, new_element); 383 $in = _invoke ($out); 384 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 385 $in = $ex.getInputStream (); 386 String _id = $ex.getId (); 387 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 388 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 389 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 390 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 391 else 392 throw new org.omg.CORBA.MARSHAL (_id); 393 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 394 modify_constraints (old_element, new_element); 395 } finally { 396 _releaseReply ($in); 397 } 398 } 400 public void remove_constraints (org.omg.mof.Model.Constraint old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 401 { 402 org.omg.CORBA.portable.InputStream $in = null; 403 try { 404 org.omg.CORBA.portable.OutputStream $out = _request ("remove_constraints", true); 405 org.omg.mof.Model.ConstraintHelper.write ($out, old_element); 406 $in = _invoke ($out); 407 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 408 $in = $ex.getInputStream (); 409 String _id = $ex.getId (); 410 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 411 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 412 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 413 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 414 else 415 throw new org.omg.CORBA.MARSHAL (_id); 416 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 417 remove_constraints (old_element); 418 } finally { 419 _releaseReply ($in); 420 } 421 } 423 public org.omg.mof.Model.ModelElement[] all_of_type_model_element () 424 { 425 org.omg.CORBA.portable.InputStream $in = null; 426 try { 427 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_model_element", true); 428 $in = _invoke ($out); 429 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in); 430 return $result; 431 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 432 $in = $ex.getInputStream (); 433 String _id = $ex.getId (); 434 throw new org.omg.CORBA.MARSHAL (_id); 435 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 436 return all_of_type_model_element (); 437 } finally { 438 _releaseReply ($in); 439 } 440 } 442 public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes) 443 { 444 org.omg.CORBA.portable.InputStream $in = null; 445 try { 446 org.omg.CORBA.portable.OutputStream $out = _request ("ref_is_instance_of", true); 447 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class); 448 $out.write_boolean (consider_subtypes); 449 $in = _invoke ($out); 450 boolean $result = $in.read_boolean (); 451 return $result; 452 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 453 $in = $ex.getInputStream (); 454 String _id = $ex.getId (); 455 throw new org.omg.CORBA.MARSHAL (_id); 456 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 457 return ref_is_instance_of (some_class, consider_subtypes); 458 } finally { 459 _releaseReply ($in); 460 } 461 } 463 public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any [] args) throws org.omg.mof.Reflective.MofError 464 { 465 org.omg.CORBA.portable.InputStream $in = null; 466 try { 467 org.omg.CORBA.portable.OutputStream $out = _request ("ref_create_instance", true); 468 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args); 469 $in = _invoke ($out); 470 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 471 return $result; 472 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 473 $in = $ex.getInputStream (); 474 String _id = $ex.getId (); 475 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 476 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 477 else 478 throw new org.omg.CORBA.MARSHAL (_id); 479 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 480 return ref_create_instance (args); 481 } finally { 482 _releaseReply ($in); 483 } 484 } 486 public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes) 487 { 488 org.omg.CORBA.portable.InputStream $in = null; 489 try { 490 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_objects", true); 491 $out.write_boolean (include_subtypes); 492 $in = _invoke ($out); 493 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in); 494 return $result; 495 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 496 $in = $ex.getInputStream (); 497 String _id = $ex.getId (); 498 throw new org.omg.CORBA.MARSHAL (_id); 499 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 500 return ref_all_objects (include_subtypes); 501 } finally { 502 _releaseReply ($in); 503 } 504 } 506 public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_value) throws org.omg.mof.Reflective.MofError 507 { 508 org.omg.CORBA.portable.InputStream $in = null; 509 try { 510 org.omg.CORBA.portable.OutputStream $out = _request ("ref_set_value", true); 511 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 512 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value); 513 $in = _invoke ($out); 514 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 515 $in = $ex.getInputStream (); 516 String _id = $ex.getId (); 517 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 518 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 519 else 520 throw new org.omg.CORBA.MARSHAL (_id); 521 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 522 ref_set_value (feature, new_value); 523 } finally { 524 _releaseReply ($in); 525 } 526 } 528 public org.omg.CORBA.Any ref_value (org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 529 { 530 org.omg.CORBA.portable.InputStream $in = null; 531 try { 532 org.omg.CORBA.portable.OutputStream $out = _request ("ref_value", true); 533 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 534 $in = _invoke ($out); 535 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 536 return $result; 537 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 538 $in = $ex.getInputStream (); 539 String _id = $ex.getId (); 540 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 541 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 542 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 543 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 544 else 545 throw new org.omg.CORBA.MARSHAL (_id); 546 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 547 return ref_value (feature); 548 } finally { 549 _releaseReply ($in); 550 } 551 } 553 public void ref_unset_value () throws org.omg.mof.Reflective.MofError 554 { 555 org.omg.CORBA.portable.InputStream $in = null; 556 try { 557 org.omg.CORBA.portable.OutputStream $out = _request ("ref_unset_value", true); 558 $in = _invoke ($out); 559 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 560 $in = $ex.getInputStream (); 561 String _id = $ex.getId (); 562 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 563 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 564 else 565 throw new org.omg.CORBA.MARSHAL (_id); 566 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 567 ref_unset_value (); 568 } finally { 569 _releaseReply ($in); 570 } 571 } 573 public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError 574 { 575 org.omg.CORBA.portable.InputStream $in = null; 576 try { 577 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value", true); 578 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 579 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 580 $in = _invoke ($out); 581 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 582 $in = $ex.getInputStream (); 583 String _id = $ex.getId (); 584 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 585 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 586 else 587 throw new org.omg.CORBA.MARSHAL (_id); 588 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 589 ref_add_value (feature, new_element); 590 } finally { 591 _releaseReply ($in); 592 } 593 } 595 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 596 { 597 org.omg.CORBA.portable.InputStream $in = null; 598 try { 599 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_before", true); 600 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 601 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 602 org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element); 603 $in = _invoke ($out); 604 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 605 $in = $ex.getInputStream (); 606 String _id = $ex.getId (); 607 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 608 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 609 else 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_add_value_before (feature, new_element, before_element); 615 } finally { 616 _releaseReply ($in); 617 } 618 } 620 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 621 { 622 org.omg.CORBA.portable.InputStream $in = null; 623 try { 624 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_at", true); 625 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 626 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 627 $out.write_ulong (position); 628 $in = _invoke ($out); 629 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 630 $in = $ex.getInputStream (); 631 String _id = $ex.getId (); 632 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 633 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 634 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 635 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 636 else 637 throw new org.omg.CORBA.MARSHAL (_id); 638 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 639 ref_add_value_at (feature, new_element, position); 640 } finally { 641 _releaseReply ($in); 642 } 643 } 645 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 646 { 647 org.omg.CORBA.portable.InputStream $in = null; 648 try { 649 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value", true); 650 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 651 org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element); 652 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 653 $in = _invoke ($out); 654 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 655 $in = $ex.getInputStream (); 656 String _id = $ex.getId (); 657 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 658 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 659 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 660 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 661 else 662 throw new org.omg.CORBA.MARSHAL (_id); 663 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 664 ref_modify_value (feature, old_element, new_element); 665 } finally { 666 _releaseReply ($in); 667 } 668 } 670 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 671 { 672 org.omg.CORBA.portable.InputStream $in = null; 673 try { 674 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value_at", true); 675 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 676 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 677 $out.write_ulong (position); 678 $in = _invoke ($out); 679 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 680 $in = $ex.getInputStream (); 681 String _id = $ex.getId (); 682 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 683 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 684 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 685 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 686 else 687 throw new org.omg.CORBA.MARSHAL (_id); 688 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 689 ref_modify_value_at (feature, new_element, position); 690 } finally { 691 _releaseReply ($in); 692 } 693 } 695 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 696 { 697 org.omg.CORBA.portable.InputStream $in = null; 698 try { 699 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value", true); 700 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 701 org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element); 702 $in = _invoke ($out); 703 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 704 $in = $ex.getInputStream (); 705 String _id = $ex.getId (); 706 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 707 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 708 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 709 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 710 else 711 throw new org.omg.CORBA.MARSHAL (_id); 712 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 713 ref_remove_value (feature, existing_element); 714 } finally { 715 _releaseReply ($in); 716 } 717 } 719 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 720 { 721 org.omg.CORBA.portable.InputStream $in = null; 722 try { 723 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value_at", true); 724 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 725 $out.write_ulong (position); 726 $in = _invoke ($out); 727 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 728 $in = $ex.getInputStream (); 729 String _id = $ex.getId (); 730 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 731 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 732 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 733 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 734 else 735 throw new org.omg.CORBA.MARSHAL (_id); 736 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 737 ref_remove_value_at (feature, position); 738 } finally { 739 _releaseReply ($in); 740 } 741 } 743 public org.omg.mof.Reflective.RefObject ref_immediate_composite () 744 { 745 org.omg.CORBA.portable.InputStream $in = null; 746 try { 747 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_composite", true); 748 $in = _invoke ($out); 749 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 750 return $result; 751 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 752 $in = $ex.getInputStream (); 753 String _id = $ex.getId (); 754 throw new org.omg.CORBA.MARSHAL (_id); 755 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 756 return ref_immediate_composite (); 757 } finally { 758 _releaseReply ($in); 759 } 760 } 762 public org.omg.mof.Reflective.RefObject ref_outermost_composite () 763 { 764 org.omg.CORBA.portable.InputStream $in = null; 765 try { 766 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_composite", true); 767 $in = _invoke ($out); 768 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 769 return $result; 770 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 771 $in = $ex.getInputStream (); 772 String _id = $ex.getId (); 773 throw new org.omg.CORBA.MARSHAL (_id); 774 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 775 return ref_outermost_composite (); 776 } finally { 777 _releaseReply ($in); 778 } 779 } 781 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 782 { 783 org.omg.CORBA.portable.InputStream $in = null; 784 try { 785 org.omg.CORBA.portable.OutputStream $out = _request ("ref_invoke_operation", true); 786 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation); 787 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value); 788 $in = _invoke ($out); 789 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 790 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in); 791 return $result; 792 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 793 $in = $ex.getInputStream (); 794 String _id = $ex.getId (); 795 if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0")) 796 throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in); 797 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 798 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 799 else 800 throw new org.omg.CORBA.MARSHAL (_id); 801 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 802 return ref_invoke_operation (requested_operation, args); 803 } finally { 804 _releaseReply ($in); 805 } 806 } 808 public String ref_mof_id () 809 { 810 org.omg.CORBA.portable.InputStream $in = null; 811 try { 812 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 813 $in = _invoke ($out); 814 String $result = $in.read_string (); 815 return $result; 816 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 817 $in = $ex.getInputStream (); 818 String _id = $ex.getId (); 819 throw new org.omg.CORBA.MARSHAL (_id); 820 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 821 return ref_mof_id (); 822 } finally { 823 _releaseReply ($in); 824 } 825 } 827 public org.omg.mof.Reflective.RefObject ref_meta_object () 828 { 829 org.omg.CORBA.portable.InputStream $in = null; 830 try { 831 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 832 $in = _invoke ($out); 833 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 834 return $result; 835 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 836 $in = $ex.getInputStream (); 837 String _id = $ex.getId (); 838 throw new org.omg.CORBA.MARSHAL (_id); 839 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 840 return ref_meta_object (); 841 } finally { 842 _releaseReply ($in); 843 } 844 } 846 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 847 { 848 org.omg.CORBA.portable.InputStream $in = null; 849 try { 850 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 851 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 852 $in = _invoke ($out); 853 boolean $result = $in.read_boolean (); 854 return $result; 855 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 856 $in = $ex.getInputStream (); 857 String _id = $ex.getId (); 858 throw new org.omg.CORBA.MARSHAL (_id); 859 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 860 return ref_itself (other_object); 861 } finally { 862 _releaseReply ($in); 863 } 864 } 866 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 867 { 868 org.omg.CORBA.portable.InputStream $in = null; 869 try { 870 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 871 $in = _invoke ($out); 872 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 873 return $result; 874 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 875 $in = $ex.getInputStream (); 876 String _id = $ex.getId (); 877 throw new org.omg.CORBA.MARSHAL (_id); 878 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 879 return ref_immediate_package (); 880 } finally { 881 _releaseReply ($in); 882 } 883 } 885 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 886 { 887 org.omg.CORBA.portable.InputStream $in = null; 888 try { 889 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 890 $in = _invoke ($out); 891 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 892 return $result; 893 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 894 $in = $ex.getInputStream (); 895 String _id = $ex.getId (); 896 throw new org.omg.CORBA.MARSHAL (_id); 897 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 898 return ref_outermost_package (); 899 } finally { 900 _releaseReply ($in); 901 } 902 } 904 public void ref_delete () throws org.omg.mof.Reflective.MofError 905 { 906 org.omg.CORBA.portable.InputStream $in = null; 907 try { 908 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 909 $in = _invoke ($out); 910 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 911 $in = $ex.getInputStream (); 912 String _id = $ex.getId (); 913 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 914 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 915 else 916 throw new org.omg.CORBA.MARSHAL (_id); 917 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 918 ref_delete (); 919 } finally { 920 _releaseReply ($in); 921 } 922 } 924 private static String [] __ids = { 926 "IDL:org/omg/mof/Model/ModelElement:1.0", 927 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 928 "IDL:org/omg/mof/Reflective/RefObject:1.0", 929 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 930 931 public String [] _ids () 932 { 933 return (String [])__ids.clone (); 934 } 935 936 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 937 { 938 String str = s.readUTF (); 939 String [] args = null; 940 java.util.Properties props = null; 941 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 942 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 943 _set_delegate (delegate); 944 } 945 946 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 947 { 948 String [] args = null; 949 java.util.Properties props = null; 950 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 951 s.writeUTF (str); 952 } 953 } | Popular Tags |