1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _AssociationEndStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.AssociationEnd 14 { 15 16 17 public boolean is_navigable () 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 ("is_navigable", true); 23 $in = _invoke ($out); 24 boolean $result = $in.read_boolean (); 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 is_navigable (); 35 } finally { 36 _releaseReply ($in); 37 } 38 } 40 public void set_is_navigable (boolean 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_is_navigable", true); 45 $out.write_boolean (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_is_navigable (new_value); 56 } finally { 57 _releaseReply ($in); 58 } 59 } 61 62 public org.omg.mof.Model.AggregationKind aggregation () 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 ("aggregation", true); 68 $in = _invoke ($out); 69 org.omg.mof.Model.AggregationKind $result = org.omg.mof.Model.AggregationKindHelper.read ($in); 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 aggregation (); 80 } finally { 81 _releaseReply ($in); 82 } 83 } 85 public void set_aggregation (org.omg.mof.Model.AggregationKind 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_aggregation", true); 90 org.omg.mof.Model.AggregationKindHelper.write ($out, 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_aggregation (new_value); 101 } finally { 102 _releaseReply ($in); 103 } 104 } 106 107 public org.omg.mof.Model.MultiplicityType multiplicity () 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 ("multiplicity", true); 113 $in = _invoke ($out); 114 org.omg.mof.Model.MultiplicityType $result = org.omg.mof.Model.MultiplicityTypeHelper.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 multiplicity (); 125 } finally { 126 _releaseReply ($in); 127 } 128 } 130 public void set_multiplicity (org.omg.mof.Model.MultiplicityType new_value) throws org.omg.mof.Reflective.MofError 131 { 132 org.omg.CORBA.portable.InputStream $in = null; 133 try { 134 org.omg.CORBA.portable.OutputStream $out = _request ("set_multiplicity", true); 135 org.omg.mof.Model.MultiplicityTypeHelper.write ($out, new_value); 136 $in = _invoke ($out); 137 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 138 $in = $ex.getInputStream (); 139 String _id = $ex.getId (); 140 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 141 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 142 else 143 throw new org.omg.CORBA.MARSHAL (_id); 144 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 145 set_multiplicity (new_value); 146 } finally { 147 _releaseReply ($in); 148 } 149 } 151 152 public boolean is_changeable () throws org.omg.mof.Reflective.MofError 154 { 155 org.omg.CORBA.portable.InputStream $in = null; 156 try { 157 org.omg.CORBA.portable.OutputStream $out = _request ("is_changeable", true); 158 $in = _invoke ($out); 159 boolean $result = $in.read_boolean (); 160 return $result; 161 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 162 $in = $ex.getInputStream (); 163 String _id = $ex.getId (); 164 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 165 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 166 else 167 throw new org.omg.CORBA.MARSHAL (_id); 168 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 169 return is_changeable (); 170 } finally { 171 _releaseReply ($in); 172 } 173 } 175 public void set_is_changeable (boolean new_value) throws org.omg.mof.Reflective.MofError 176 { 177 org.omg.CORBA.portable.InputStream $in = null; 178 try { 179 org.omg.CORBA.portable.OutputStream $out = _request ("set_is_changeable", true); 180 $out.write_boolean (new_value); 181 $in = _invoke ($out); 182 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 183 $in = $ex.getInputStream (); 184 String _id = $ex.getId (); 185 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 186 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 187 else 188 throw new org.omg.CORBA.MARSHAL (_id); 189 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 190 set_is_changeable (new_value); 191 } finally { 192 _releaseReply ($in); 193 } 194 } 196 197 public org.omg.mof.Model.AssociationEnd other_end () throws org.omg.mof.Reflective.MofError 199 { 200 org.omg.CORBA.portable.InputStream $in = null; 201 try { 202 org.omg.CORBA.portable.OutputStream $out = _request ("other_end", true); 203 $in = _invoke ($out); 204 org.omg.mof.Model.AssociationEnd $result = org.omg.mof.Model.AssociationEndHelper.read ($in); 205 return $result; 206 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 207 $in = $ex.getInputStream (); 208 String _id = $ex.getId (); 209 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 210 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 211 else 212 throw new org.omg.CORBA.MARSHAL (_id); 213 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 214 return other_end (); 215 } finally { 216 _releaseReply ($in); 217 } 218 } 220 public org.omg.mof.Model.AssociationEnd[] all_of_type_association_end () 221 { 222 org.omg.CORBA.portable.InputStream $in = null; 223 try { 224 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_association_end", true); 225 $in = _invoke ($out); 226 org.omg.mof.Model.AssociationEnd $result[] = org.omg.mof.Model.AssociationEndSetHelper.read ($in); 227 return $result; 228 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 229 $in = $ex.getInputStream (); 230 String _id = $ex.getId (); 231 throw new org.omg.CORBA.MARSHAL (_id); 232 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 233 return all_of_type_association_end (); 234 } finally { 235 _releaseReply ($in); 236 } 237 } 239 public org.omg.mof.Model.AssociationEnd[] all_of_class_association_end () 240 { 241 org.omg.CORBA.portable.InputStream $in = null; 242 try { 243 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_class_association_end", true); 244 $in = _invoke ($out); 245 org.omg.mof.Model.AssociationEnd $result[] = org.omg.mof.Model.AssociationEndSetHelper.read ($in); 246 return $result; 247 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 248 $in = $ex.getInputStream (); 249 String _id = $ex.getId (); 250 throw new org.omg.CORBA.MARSHAL (_id); 251 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 252 return all_of_class_association_end (); 253 } finally { 254 _releaseReply ($in); 255 } 256 } 258 public org.omg.mof.Model.AssociationEnd create_association_end (String name, String annotation, boolean is_navigable, org.omg.mof.Model.AggregationKind aggregation, org.omg.mof.Model.MultiplicityType multiplicity, boolean is_changeable) throws org.omg.mof.Reflective.MofError 259 { 260 org.omg.CORBA.portable.InputStream $in = null; 261 try { 262 org.omg.CORBA.portable.OutputStream $out = _request ("create_association_end", true); 263 $out.write_string (name); 264 $out.write_string (annotation); 265 $out.write_boolean (is_navigable); 266 org.omg.mof.Model.AggregationKindHelper.write ($out, aggregation); 267 org.omg.mof.Model.MultiplicityTypeHelper.write ($out, multiplicity); 268 $out.write_boolean (is_changeable); 269 $in = _invoke ($out); 270 org.omg.mof.Model.AssociationEnd $result = org.omg.mof.Model.AssociationEndHelper.read ($in); 271 return $result; 272 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 273 $in = $ex.getInputStream (); 274 String _id = $ex.getId (); 275 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 276 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 277 else 278 throw new org.omg.CORBA.MARSHAL (_id); 279 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 280 return create_association_end (name, annotation, is_navigable, aggregation, multiplicity, is_changeable); 281 } finally { 282 _releaseReply ($in); 283 } 284 } 286 public org.omg.mof.Model.TypedElement[] all_of_type_typed_element () 287 { 288 org.omg.CORBA.portable.InputStream $in = null; 289 try { 290 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_typed_element", true); 291 $in = _invoke ($out); 292 org.omg.mof.Model.TypedElement $result[] = org.omg.mof.Model.TypedElementSetHelper.read ($in); 293 return $result; 294 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 295 $in = $ex.getInputStream (); 296 String _id = $ex.getId (); 297 throw new org.omg.CORBA.MARSHAL (_id); 298 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 299 return all_of_type_typed_element (); 300 } finally { 301 _releaseReply ($in); 302 } 303 } 305 public org.omg.mof.Model.ModelElement[] all_of_type_model_element () 306 { 307 org.omg.CORBA.portable.InputStream $in = null; 308 try { 309 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_model_element", true); 310 $in = _invoke ($out); 311 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in); 312 return $result; 313 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 314 $in = $ex.getInputStream (); 315 String _id = $ex.getId (); 316 throw new org.omg.CORBA.MARSHAL (_id); 317 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 318 return all_of_type_model_element (); 319 } finally { 320 _releaseReply ($in); 321 } 322 } 324 public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes) 325 { 326 org.omg.CORBA.portable.InputStream $in = null; 327 try { 328 org.omg.CORBA.portable.OutputStream $out = _request ("ref_is_instance_of", true); 329 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class); 330 $out.write_boolean (consider_subtypes); 331 $in = _invoke ($out); 332 boolean $result = $in.read_boolean (); 333 return $result; 334 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 335 $in = $ex.getInputStream (); 336 String _id = $ex.getId (); 337 throw new org.omg.CORBA.MARSHAL (_id); 338 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 339 return ref_is_instance_of (some_class, consider_subtypes); 340 } finally { 341 _releaseReply ($in); 342 } 343 } 345 public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any [] args) throws org.omg.mof.Reflective.MofError 346 { 347 org.omg.CORBA.portable.InputStream $in = null; 348 try { 349 org.omg.CORBA.portable.OutputStream $out = _request ("ref_create_instance", true); 350 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args); 351 $in = _invoke ($out); 352 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 353 return $result; 354 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 355 $in = $ex.getInputStream (); 356 String _id = $ex.getId (); 357 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 358 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 359 else 360 throw new org.omg.CORBA.MARSHAL (_id); 361 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 362 return ref_create_instance (args); 363 } finally { 364 _releaseReply ($in); 365 } 366 } 368 public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes) 369 { 370 org.omg.CORBA.portable.InputStream $in = null; 371 try { 372 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_objects", true); 373 $out.write_boolean (include_subtypes); 374 $in = _invoke ($out); 375 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in); 376 return $result; 377 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 378 $in = $ex.getInputStream (); 379 String _id = $ex.getId (); 380 throw new org.omg.CORBA.MARSHAL (_id); 381 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 382 return ref_all_objects (include_subtypes); 383 } finally { 384 _releaseReply ($in); 385 } 386 } 388 public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_value) throws org.omg.mof.Reflective.MofError 389 { 390 org.omg.CORBA.portable.InputStream $in = null; 391 try { 392 org.omg.CORBA.portable.OutputStream $out = _request ("ref_set_value", true); 393 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 394 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value); 395 $in = _invoke ($out); 396 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 397 $in = $ex.getInputStream (); 398 String _id = $ex.getId (); 399 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 400 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 401 else 402 throw new org.omg.CORBA.MARSHAL (_id); 403 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 404 ref_set_value (feature, new_value); 405 } finally { 406 _releaseReply ($in); 407 } 408 } 410 public org.omg.CORBA.Any ref_value (org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 411 { 412 org.omg.CORBA.portable.InputStream $in = null; 413 try { 414 org.omg.CORBA.portable.OutputStream $out = _request ("ref_value", true); 415 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 416 $in = _invoke ($out); 417 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 418 return $result; 419 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 420 $in = $ex.getInputStream (); 421 String _id = $ex.getId (); 422 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 423 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 424 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 425 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 426 else 427 throw new org.omg.CORBA.MARSHAL (_id); 428 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 429 return ref_value (feature); 430 } finally { 431 _releaseReply ($in); 432 } 433 } 435 public void ref_unset_value () throws org.omg.mof.Reflective.MofError 436 { 437 org.omg.CORBA.portable.InputStream $in = null; 438 try { 439 org.omg.CORBA.portable.OutputStream $out = _request ("ref_unset_value", true); 440 $in = _invoke ($out); 441 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 442 $in = $ex.getInputStream (); 443 String _id = $ex.getId (); 444 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 445 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 446 else 447 throw new org.omg.CORBA.MARSHAL (_id); 448 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 449 ref_unset_value (); 450 } finally { 451 _releaseReply ($in); 452 } 453 } 455 public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError 456 { 457 org.omg.CORBA.portable.InputStream $in = null; 458 try { 459 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value", true); 460 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 461 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 462 $in = _invoke ($out); 463 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 464 $in = $ex.getInputStream (); 465 String _id = $ex.getId (); 466 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 467 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 468 else 469 throw new org.omg.CORBA.MARSHAL (_id); 470 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 471 ref_add_value (feature, new_element); 472 } finally { 473 _releaseReply ($in); 474 } 475 } 477 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 478 { 479 org.omg.CORBA.portable.InputStream $in = null; 480 try { 481 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_before", true); 482 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 483 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 484 org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element); 485 $in = _invoke ($out); 486 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 487 $in = $ex.getInputStream (); 488 String _id = $ex.getId (); 489 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 490 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 491 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 492 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 493 else 494 throw new org.omg.CORBA.MARSHAL (_id); 495 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 496 ref_add_value_before (feature, new_element, before_element); 497 } finally { 498 _releaseReply ($in); 499 } 500 } 502 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 503 { 504 org.omg.CORBA.portable.InputStream $in = null; 505 try { 506 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_at", true); 507 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 508 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 509 $out.write_ulong (position); 510 $in = _invoke ($out); 511 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 512 $in = $ex.getInputStream (); 513 String _id = $ex.getId (); 514 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 515 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 516 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 517 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 518 else 519 throw new org.omg.CORBA.MARSHAL (_id); 520 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 521 ref_add_value_at (feature, new_element, position); 522 } finally { 523 _releaseReply ($in); 524 } 525 } 527 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 528 { 529 org.omg.CORBA.portable.InputStream $in = null; 530 try { 531 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value", true); 532 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 533 org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element); 534 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 535 $in = _invoke ($out); 536 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 537 $in = $ex.getInputStream (); 538 String _id = $ex.getId (); 539 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 540 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 541 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 542 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 543 else 544 throw new org.omg.CORBA.MARSHAL (_id); 545 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 546 ref_modify_value (feature, old_element, new_element); 547 } finally { 548 _releaseReply ($in); 549 } 550 } 552 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 553 { 554 org.omg.CORBA.portable.InputStream $in = null; 555 try { 556 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value_at", true); 557 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 558 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 559 $out.write_ulong (position); 560 $in = _invoke ($out); 561 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 562 $in = $ex.getInputStream (); 563 String _id = $ex.getId (); 564 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 565 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 566 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 567 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 568 else 569 throw new org.omg.CORBA.MARSHAL (_id); 570 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 571 ref_modify_value_at (feature, new_element, position); 572 } finally { 573 _releaseReply ($in); 574 } 575 } 577 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 578 { 579 org.omg.CORBA.portable.InputStream $in = null; 580 try { 581 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value", true); 582 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 583 org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element); 584 $in = _invoke ($out); 585 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 586 $in = $ex.getInputStream (); 587 String _id = $ex.getId (); 588 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 589 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 590 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 591 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 592 else 593 throw new org.omg.CORBA.MARSHAL (_id); 594 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 595 ref_remove_value (feature, existing_element); 596 } finally { 597 _releaseReply ($in); 598 } 599 } 601 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 602 { 603 org.omg.CORBA.portable.InputStream $in = null; 604 try { 605 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value_at", true); 606 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 607 $out.write_ulong (position); 608 $in = _invoke ($out); 609 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 610 $in = $ex.getInputStream (); 611 String _id = $ex.getId (); 612 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 613 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 614 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 615 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 616 else 617 throw new org.omg.CORBA.MARSHAL (_id); 618 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 619 ref_remove_value_at (feature, position); 620 } finally { 621 _releaseReply ($in); 622 } 623 } 625 public org.omg.mof.Reflective.RefObject ref_immediate_composite () 626 { 627 org.omg.CORBA.portable.InputStream $in = null; 628 try { 629 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_composite", true); 630 $in = _invoke ($out); 631 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 632 return $result; 633 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 634 $in = $ex.getInputStream (); 635 String _id = $ex.getId (); 636 throw new org.omg.CORBA.MARSHAL (_id); 637 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 638 return ref_immediate_composite (); 639 } finally { 640 _releaseReply ($in); 641 } 642 } 644 public org.omg.mof.Reflective.RefObject ref_outermost_composite () 645 { 646 org.omg.CORBA.portable.InputStream $in = null; 647 try { 648 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_composite", true); 649 $in = _invoke ($out); 650 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 651 return $result; 652 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 653 $in = $ex.getInputStream (); 654 String _id = $ex.getId (); 655 throw new org.omg.CORBA.MARSHAL (_id); 656 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 657 return ref_outermost_composite (); 658 } finally { 659 _releaseReply ($in); 660 } 661 } 663 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 664 { 665 org.omg.CORBA.portable.InputStream $in = null; 666 try { 667 org.omg.CORBA.portable.OutputStream $out = _request ("ref_invoke_operation", true); 668 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation); 669 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value); 670 $in = _invoke ($out); 671 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 672 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in); 673 return $result; 674 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 675 $in = $ex.getInputStream (); 676 String _id = $ex.getId (); 677 if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0")) 678 throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in); 679 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 680 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 681 else 682 throw new org.omg.CORBA.MARSHAL (_id); 683 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 684 return ref_invoke_operation (requested_operation, args); 685 } finally { 686 _releaseReply ($in); 687 } 688 } 690 public String ref_mof_id () 691 { 692 org.omg.CORBA.portable.InputStream $in = null; 693 try { 694 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 695 $in = _invoke ($out); 696 String $result = $in.read_string (); 697 return $result; 698 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 699 $in = $ex.getInputStream (); 700 String _id = $ex.getId (); 701 throw new org.omg.CORBA.MARSHAL (_id); 702 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 703 return ref_mof_id (); 704 } finally { 705 _releaseReply ($in); 706 } 707 } 709 public org.omg.mof.Reflective.RefObject ref_meta_object () 710 { 711 org.omg.CORBA.portable.InputStream $in = null; 712 try { 713 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 714 $in = _invoke ($out); 715 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 716 return $result; 717 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 718 $in = $ex.getInputStream (); 719 String _id = $ex.getId (); 720 throw new org.omg.CORBA.MARSHAL (_id); 721 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 722 return ref_meta_object (); 723 } finally { 724 _releaseReply ($in); 725 } 726 } 728 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 729 { 730 org.omg.CORBA.portable.InputStream $in = null; 731 try { 732 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 733 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 734 $in = _invoke ($out); 735 boolean $result = $in.read_boolean (); 736 return $result; 737 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 738 $in = $ex.getInputStream (); 739 String _id = $ex.getId (); 740 throw new org.omg.CORBA.MARSHAL (_id); 741 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 742 return ref_itself (other_object); 743 } finally { 744 _releaseReply ($in); 745 } 746 } 748 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 749 { 750 org.omg.CORBA.portable.InputStream $in = null; 751 try { 752 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 753 $in = _invoke ($out); 754 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 755 return $result; 756 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 757 $in = $ex.getInputStream (); 758 String _id = $ex.getId (); 759 throw new org.omg.CORBA.MARSHAL (_id); 760 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 761 return ref_immediate_package (); 762 } finally { 763 _releaseReply ($in); 764 } 765 } 767 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 768 { 769 org.omg.CORBA.portable.InputStream $in = null; 770 try { 771 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 772 $in = _invoke ($out); 773 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 774 return $result; 775 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 776 $in = $ex.getInputStream (); 777 String _id = $ex.getId (); 778 throw new org.omg.CORBA.MARSHAL (_id); 779 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 780 return ref_outermost_package (); 781 } finally { 782 _releaseReply ($in); 783 } 784 } 786 public void ref_delete () throws org.omg.mof.Reflective.MofError 787 { 788 org.omg.CORBA.portable.InputStream $in = null; 789 try { 790 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 791 $in = _invoke ($out); 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/MofError:1.0")) 796 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 797 else 798 throw new org.omg.CORBA.MARSHAL (_id); 799 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 800 ref_delete (); 801 } finally { 802 _releaseReply ($in); 803 } 804 } 806 807 public String name () throws org.omg.mof.Reflective.MofError 809 { 810 org.omg.CORBA.portable.InputStream $in = null; 811 try { 812 org.omg.CORBA.portable.OutputStream $out = _request ("name", 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 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 820 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 821 else 822 throw new org.omg.CORBA.MARSHAL (_id); 823 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 824 return name (); 825 } finally { 826 _releaseReply ($in); 827 } 828 } 830 public void set_name (String new_value) throws org.omg.mof.Reflective.MofError 831 { 832 org.omg.CORBA.portable.InputStream $in = null; 833 try { 834 org.omg.CORBA.portable.OutputStream $out = _request ("set_name", true); 835 $out.write_string (new_value); 836 $in = _invoke ($out); 837 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 838 $in = $ex.getInputStream (); 839 String _id = $ex.getId (); 840 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 841 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 842 else 843 throw new org.omg.CORBA.MARSHAL (_id); 844 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 845 set_name (new_value); 846 } finally { 847 _releaseReply ($in); 848 } 849 } 851 852 public String annotation () throws org.omg.mof.Reflective.MofError 854 { 855 org.omg.CORBA.portable.InputStream $in = null; 856 try { 857 org.omg.CORBA.portable.OutputStream $out = _request ("annotation", true); 858 $in = _invoke ($out); 859 String $result = $in.read_string (); 860 return $result; 861 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 862 $in = $ex.getInputStream (); 863 String _id = $ex.getId (); 864 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 865 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 866 else 867 throw new org.omg.CORBA.MARSHAL (_id); 868 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 869 return annotation (); 870 } finally { 871 _releaseReply ($in); 872 } 873 } 875 public void set_annotation (String new_value) throws org.omg.mof.Reflective.MofError 876 { 877 org.omg.CORBA.portable.InputStream $in = null; 878 try { 879 org.omg.CORBA.portable.OutputStream $out = _request ("set_annotation", true); 880 $out.write_string (new_value); 881 $in = _invoke ($out); 882 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 883 $in = $ex.getInputStream (); 884 String _id = $ex.getId (); 885 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 886 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 887 else 888 throw new org.omg.CORBA.MARSHAL (_id); 889 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 890 set_annotation (new_value); 891 } finally { 892 _releaseReply ($in); 893 } 894 } 896 897 public String [] qualified_name () throws org.omg.mof.Reflective.MofError 899 { 900 org.omg.CORBA.portable.InputStream $in = null; 901 try { 902 org.omg.CORBA.portable.OutputStream $out = _request ("qualified_name", true); 903 $in = _invoke ($out); 904 String $result[] = org.omg.mof.Model.StringListHelper.read ($in); 905 return $result; 906 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 907 $in = $ex.getInputStream (); 908 String _id = $ex.getId (); 909 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 910 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 911 else 912 throw new org.omg.CORBA.MARSHAL (_id); 913 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 914 return qualified_name (); 915 } finally { 916 _releaseReply ($in); 917 } 918 } 920 921 public org.omg.mof.Model.Namespace container () throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 923 { 924 org.omg.CORBA.portable.InputStream $in = null; 925 try { 926 org.omg.CORBA.portable.OutputStream $out = _request ("container", true); 927 $in = _invoke ($out); 928 org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.read ($in); 929 return $result; 930 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 931 $in = $ex.getInputStream (); 932 String _id = $ex.getId (); 933 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 934 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 935 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 936 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 937 else 938 throw new org.omg.CORBA.MARSHAL (_id); 939 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 940 return container (); 941 } finally { 942 _releaseReply ($in); 943 } 944 } 946 public void set_container (org.omg.mof.Model.Namespace new_value) throws org.omg.mof.Reflective.MofError 947 { 948 org.omg.CORBA.portable.InputStream $in = null; 949 try { 950 org.omg.CORBA.portable.OutputStream $out = _request ("set_container", true); 951 org.omg.mof.Model.NamespaceHelper.write ($out, new_value); 952 $in = _invoke ($out); 953 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 954 $in = $ex.getInputStream (); 955 String _id = $ex.getId (); 956 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 957 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 958 else 959 throw new org.omg.CORBA.MARSHAL (_id); 960 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 961 set_container (new_value); 962 } finally { 963 _releaseReply ($in); 964 } 965 } 967 public void unset_container () throws org.omg.mof.Reflective.MofError 968 { 969 org.omg.CORBA.portable.InputStream $in = null; 970 try { 971 org.omg.CORBA.portable.OutputStream $out = _request ("unset_container", true); 972 $in = _invoke ($out); 973 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 974 $in = $ex.getInputStream (); 975 String _id = $ex.getId (); 976 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 977 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 978 else 979 throw new org.omg.CORBA.MARSHAL (_id); 980 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 981 unset_container (); 982 } finally { 983 _releaseReply ($in); 984 } 985 } 987 988 public org.omg.mof.Model.ModelElement[] required_elements () throws org.omg.mof.Reflective.MofError 990 { 991 org.omg.CORBA.portable.InputStream $in = null; 992 try { 993 org.omg.CORBA.portable.OutputStream $out = _request ("required_elements", true); 994 $in = _invoke ($out); 995 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementBagHelper.read ($in); 996 return $result; 997 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 998 $in = $ex.getInputStream (); 999 String _id = $ex.getId (); 1000 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1001 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1002 else 1003 throw new org.omg.CORBA.MARSHAL (_id); 1004 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1005 return required_elements (); 1006 } finally { 1007 _releaseReply ($in); 1008 } 1009 } 1011 public void set_required_elements (org.omg.mof.Model.ModelElement[] new_value) throws org.omg.mof.Reflective.MofError 1012 { 1013 org.omg.CORBA.portable.InputStream $in = null; 1014 try { 1015 org.omg.CORBA.portable.OutputStream $out = _request ("set_required_elements", true); 1016 org.omg.mof.Model.ModelElementBagHelper.write ($out, new_value); 1017 $in = _invoke ($out); 1018 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1019 $in = $ex.getInputStream (); 1020 String _id = $ex.getId (); 1021 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1022 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1023 else 1024 throw new org.omg.CORBA.MARSHAL (_id); 1025 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1026 set_required_elements (new_value); 1027 } finally { 1028 _releaseReply ($in); 1029 } 1030 } 1032 public void add_required_elements (org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.MofError 1033 { 1034 org.omg.CORBA.portable.InputStream $in = null; 1035 try { 1036 org.omg.CORBA.portable.OutputStream $out = _request ("add_required_elements", true); 1037 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 1038 $in = _invoke ($out); 1039 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1040 $in = $ex.getInputStream (); 1041 String _id = $ex.getId (); 1042 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1043 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1044 else 1045 throw new org.omg.CORBA.MARSHAL (_id); 1046 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1047 add_required_elements (new_element); 1048 } finally { 1049 _releaseReply ($in); 1050 } 1051 } 1053 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 1054 { 1055 org.omg.CORBA.portable.InputStream $in = null; 1056 try { 1057 org.omg.CORBA.portable.OutputStream $out = _request ("modify_required_elements", true); 1058 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 1059 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 1060 $in = _invoke ($out); 1061 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1062 $in = $ex.getInputStream (); 1063 String _id = $ex.getId (); 1064 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1065 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1066 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1067 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1068 else 1069 throw new org.omg.CORBA.MARSHAL (_id); 1070 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1071 modify_required_elements (old_element, new_element); 1072 } finally { 1073 _releaseReply ($in); 1074 } 1075 } 1077 public void remove_required_elements (org.omg.mof.Model.ModelElement old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 1078 { 1079 org.omg.CORBA.portable.InputStream $in = null; 1080 try { 1081 org.omg.CORBA.portable.OutputStream $out = _request ("remove_required_elements", true); 1082 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 1083 $in = _invoke ($out); 1084 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1085 $in = $ex.getInputStream (); 1086 String _id = $ex.getId (); 1087 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1088 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1089 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1090 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1091 else 1092 throw new org.omg.CORBA.MARSHAL (_id); 1093 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1094 remove_required_elements (old_element); 1095 } finally { 1096 _releaseReply ($in); 1097 } 1098 } 1100 1101 public org.omg.mof.Model.Constraint[] constraints () throws org.omg.mof.Reflective.MofError 1103 { 1104 org.omg.CORBA.portable.InputStream $in = null; 1105 try { 1106 org.omg.CORBA.portable.OutputStream $out = _request ("constraints", true); 1107 $in = _invoke ($out); 1108 org.omg.mof.Model.Constraint $result[] = org.omg.mof.Model.ConstraintBagHelper.read ($in); 1109 return $result; 1110 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1111 $in = $ex.getInputStream (); 1112 String _id = $ex.getId (); 1113 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1114 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1115 else 1116 throw new org.omg.CORBA.MARSHAL (_id); 1117 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1118 return constraints (); 1119 } finally { 1120 _releaseReply ($in); 1121 } 1122 } 1124 public void set_constraints (org.omg.mof.Model.Constraint[] new_value) throws org.omg.mof.Reflective.MofError 1125 { 1126 org.omg.CORBA.portable.InputStream $in = null; 1127 try { 1128 org.omg.CORBA.portable.OutputStream $out = _request ("set_constraints", true); 1129 org.omg.mof.Model.ConstraintBagHelper.write ($out, new_value); 1130 $in = _invoke ($out); 1131 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1132 $in = $ex.getInputStream (); 1133 String _id = $ex.getId (); 1134 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1135 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1136 else 1137 throw new org.omg.CORBA.MARSHAL (_id); 1138 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1139 set_constraints (new_value); 1140 } finally { 1141 _releaseReply ($in); 1142 } 1143 } 1145 public void add_constraints (org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.MofError 1146 { 1147 org.omg.CORBA.portable.InputStream $in = null; 1148 try { 1149 org.omg.CORBA.portable.OutputStream $out = _request ("add_constraints", true); 1150 org.omg.mof.Model.ConstraintHelper.write ($out, new_element); 1151 $in = _invoke ($out); 1152 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1153 $in = $ex.getInputStream (); 1154 String _id = $ex.getId (); 1155 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1156 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1157 else 1158 throw new org.omg.CORBA.MARSHAL (_id); 1159 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1160 add_constraints (new_element); 1161 } finally { 1162 _releaseReply ($in); 1163 } 1164 } 1166 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 1167 { 1168 org.omg.CORBA.portable.InputStream $in = null; 1169 try { 1170 org.omg.CORBA.portable.OutputStream $out = _request ("modify_constraints", true); 1171 org.omg.mof.Model.ConstraintHelper.write ($out, old_element); 1172 org.omg.mof.Model.ConstraintHelper.write ($out, new_element); 1173 $in = _invoke ($out); 1174 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1175 $in = $ex.getInputStream (); 1176 String _id = $ex.getId (); 1177 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1178 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1179 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1180 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1181 else 1182 throw new org.omg.CORBA.MARSHAL (_id); 1183 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1184 modify_constraints (old_element, new_element); 1185 } finally { 1186 _releaseReply ($in); 1187 } 1188 } 1190 public void remove_constraints (org.omg.mof.Model.Constraint old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 1191 { 1192 org.omg.CORBA.portable.InputStream $in = null; 1193 try { 1194 org.omg.CORBA.portable.OutputStream $out = _request ("remove_constraints", true); 1195 org.omg.mof.Model.ConstraintHelper.write ($out, old_element); 1196 $in = _invoke ($out); 1197 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1198 $in = $ex.getInputStream (); 1199 String _id = $ex.getId (); 1200 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1201 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1202 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1203 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1204 else 1205 throw new org.omg.CORBA.MARSHAL (_id); 1206 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1207 remove_constraints (old_element); 1208 } finally { 1209 _releaseReply ($in); 1210 } 1211 } 1213 1214 public org.omg.mof.Model.Classifier type () throws org.omg.mof.Reflective.MofError 1216 { 1217 org.omg.CORBA.portable.InputStream $in = null; 1218 try { 1219 org.omg.CORBA.portable.OutputStream $out = _request ("type", true); 1220 $in = _invoke ($out); 1221 org.omg.mof.Model.Classifier $result = org.omg.mof.Model.ClassifierHelper.read ($in); 1222 return $result; 1223 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1224 $in = $ex.getInputStream (); 1225 String _id = $ex.getId (); 1226 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1227 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1228 else 1229 throw new org.omg.CORBA.MARSHAL (_id); 1230 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1231 return type (); 1232 } finally { 1233 _releaseReply ($in); 1234 } 1235 } 1237 public void set_type (org.omg.mof.Model.Classifier new_value) throws org.omg.mof.Reflective.MofError 1238 { 1239 org.omg.CORBA.portable.InputStream $in = null; 1240 try { 1241 org.omg.CORBA.portable.OutputStream $out = _request ("set_type", true); 1242 org.omg.mof.Model.ClassifierHelper.write ($out, new_value); 1243 $in = _invoke ($out); 1244 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1245 $in = $ex.getInputStream (); 1246 String _id = $ex.getId (); 1247 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1248 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1249 else 1250 throw new org.omg.CORBA.MARSHAL (_id); 1251 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1252 set_type (new_value); 1253 } finally { 1254 _releaseReply ($in); 1255 } 1256 } 1258 private static String [] __ids = { 1260 "IDL:org/omg/mof/Model/AssociationEnd:1.0", 1261 "IDL:org/omg/mof/Model/AssociationEndClass:1.0", 1262 "IDL:org/omg/mof/Model/TypedElementClass:1.0", 1263 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 1264 "IDL:org/omg/mof/Reflective/RefObject:1.0", 1265 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 1266 "IDL:org/omg/mof/Model/ModelElement:1.0", 1267 "IDL:org/omg/mof/Model/TypedElement:1.0"}; 1268 1269 public String [] _ids () 1270 { 1271 return (String [])__ids.clone (); 1272 } 1273 1274 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 1275 { 1276 String str = s.readUTF (); 1277 String [] args = null; 1278 java.util.Properties props = null; 1279 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 1280 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 1281 _set_delegate (delegate); 1282 } 1283 1284 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 1285 { 1286 String [] args = null; 1287 java.util.Properties props = null; 1288 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 1289 s.writeUTF (str); 1290 } 1291} | Popular Tags |