1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _OperationStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.Operation 14 { 15 16 17 public boolean is_query () 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_query", 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_query (); 35 } finally { 36 _releaseReply ($in); 37 } 38 } 40 public void set_is_query (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_query", 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_query (new_value); 56 } finally { 57 _releaseReply ($in); 58 } 59 } 61 62 public org.omg.mof.Model.MofException[] exceptions () 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 ("exceptions", true); 68 $in = _invoke ($out); 69 org.omg.mof.Model.MofException $result[] = org.omg.mof.Model.MofExceptionListHelper.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 exceptions (); 80 } finally { 81 _releaseReply ($in); 82 } 83 } 85 public void set_exceptions (org.omg.mof.Model.MofException[] 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_exceptions", true); 90 org.omg.mof.Model.MofExceptionListHelper.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_exceptions (new_value); 101 } finally { 102 _releaseReply ($in); 103 } 104 } 106 public void add_exceptions (org.omg.mof.Model.MofException new_element) throws org.omg.mof.Reflective.MofError 107 { 108 org.omg.CORBA.portable.InputStream $in = null; 109 try { 110 org.omg.CORBA.portable.OutputStream $out = _request ("add_exceptions", true); 111 org.omg.mof.Model.MofExceptionHelper.write ($out, new_element); 112 $in = _invoke ($out); 113 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 114 $in = $ex.getInputStream (); 115 String _id = $ex.getId (); 116 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 117 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 118 else 119 throw new org.omg.CORBA.MARSHAL (_id); 120 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 121 add_exceptions (new_element); 122 } finally { 123 _releaseReply ($in); 124 } 125 } 127 public void add_exceptions_before (org.omg.mof.Model.MofException new_element, org.omg.mof.Model.MofException before_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 128 { 129 org.omg.CORBA.portable.InputStream $in = null; 130 try { 131 org.omg.CORBA.portable.OutputStream $out = _request ("add_exceptions_before", true); 132 org.omg.mof.Model.MofExceptionHelper.write ($out, new_element); 133 org.omg.mof.Model.MofExceptionHelper.write ($out, before_element); 134 $in = _invoke ($out); 135 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 136 $in = $ex.getInputStream (); 137 String _id = $ex.getId (); 138 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 139 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 140 else 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 add_exceptions_before (new_element, before_element); 146 } finally { 147 _releaseReply ($in); 148 } 149 } 151 public void modify_exceptions (org.omg.mof.Model.MofException old_element, org.omg.mof.Model.MofException new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 152 { 153 org.omg.CORBA.portable.InputStream $in = null; 154 try { 155 org.omg.CORBA.portable.OutputStream $out = _request ("modify_exceptions", true); 156 org.omg.mof.Model.MofExceptionHelper.write ($out, old_element); 157 org.omg.mof.Model.MofExceptionHelper.write ($out, new_element); 158 $in = _invoke ($out); 159 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 160 $in = $ex.getInputStream (); 161 String _id = $ex.getId (); 162 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 163 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 164 else 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 modify_exceptions (old_element, new_element); 170 } finally { 171 _releaseReply ($in); 172 } 173 } 175 public void remove_exceptions (org.omg.mof.Model.MofException old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 176 { 177 org.omg.CORBA.portable.InputStream $in = null; 178 try { 179 org.omg.CORBA.portable.OutputStream $out = _request ("remove_exceptions", true); 180 org.omg.mof.Model.MofExceptionHelper.write ($out, old_element); 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/NotFound:1.0")) 186 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 187 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 188 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 189 else 190 throw new org.omg.CORBA.MARSHAL (_id); 191 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 192 remove_exceptions (old_element); 193 } finally { 194 _releaseReply ($in); 195 } 196 } 198 public org.omg.mof.Model.Operation[] all_of_type_operation () 199 { 200 org.omg.CORBA.portable.InputStream $in = null; 201 try { 202 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_operation", true); 203 $in = _invoke ($out); 204 org.omg.mof.Model.Operation $result[] = org.omg.mof.Model.OperationSetHelper.read ($in); 205 return $result; 206 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 207 $in = $ex.getInputStream (); 208 String _id = $ex.getId (); 209 throw new org.omg.CORBA.MARSHAL (_id); 210 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 211 return all_of_type_operation (); 212 } finally { 213 _releaseReply ($in); 214 } 215 } 217 public org.omg.mof.Model.Operation[] all_of_class_operation () 218 { 219 org.omg.CORBA.portable.InputStream $in = null; 220 try { 221 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_class_operation", true); 222 $in = _invoke ($out); 223 org.omg.mof.Model.Operation $result[] = org.omg.mof.Model.OperationSetHelper.read ($in); 224 return $result; 225 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 226 $in = $ex.getInputStream (); 227 String _id = $ex.getId (); 228 throw new org.omg.CORBA.MARSHAL (_id); 229 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 230 return all_of_class_operation (); 231 } finally { 232 _releaseReply ($in); 233 } 234 } 236 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 237 { 238 org.omg.CORBA.portable.InputStream $in = null; 239 try { 240 org.omg.CORBA.portable.OutputStream $out = _request ("create_operation", true); 241 $out.write_string (name); 242 $out.write_string (annotation); 243 org.omg.mof.Model.VisibilityKindHelper.write ($out, visibility); 244 org.omg.mof.Model.ScopeKindHelper.write ($out, scope); 245 $out.write_boolean (is_query); 246 $in = _invoke ($out); 247 org.omg.mof.Model.Operation $result = org.omg.mof.Model.OperationHelper.read ($in); 248 return $result; 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 return create_operation (name, annotation, visibility, scope, is_query); 258 } finally { 259 _releaseReply ($in); 260 } 261 } 263 public org.omg.mof.Model.BehavioralFeature[] all_of_type_behavioral_feature () 264 { 265 org.omg.CORBA.portable.InputStream $in = null; 266 try { 267 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_behavioral_feature", true); 268 $in = _invoke ($out); 269 org.omg.mof.Model.BehavioralFeature $result[] = org.omg.mof.Model.BehavioralFeatureSetHelper.read ($in); 270 return $result; 271 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 272 $in = $ex.getInputStream (); 273 String _id = $ex.getId (); 274 throw new org.omg.CORBA.MARSHAL (_id); 275 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 276 return all_of_type_behavioral_feature (); 277 } finally { 278 _releaseReply ($in); 279 } 280 } 282 public org.omg.mof.Model.Namespace[] all_of_type_namespace () 283 { 284 org.omg.CORBA.portable.InputStream $in = null; 285 try { 286 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_namespace", true); 287 $in = _invoke ($out); 288 org.omg.mof.Model.Namespace $result[] = org.omg.mof.Model.NamespaceSetHelper.read ($in); 289 return $result; 290 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 291 $in = $ex.getInputStream (); 292 String _id = $ex.getId (); 293 throw new org.omg.CORBA.MARSHAL (_id); 294 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 295 return all_of_type_namespace (); 296 } finally { 297 _releaseReply ($in); 298 } 299 } 301 public org.omg.mof.Model.ModelElement[] all_of_type_model_element () 302 { 303 org.omg.CORBA.portable.InputStream $in = null; 304 try { 305 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_model_element", true); 306 $in = _invoke ($out); 307 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in); 308 return $result; 309 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 310 $in = $ex.getInputStream (); 311 String _id = $ex.getId (); 312 throw new org.omg.CORBA.MARSHAL (_id); 313 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 314 return all_of_type_model_element (); 315 } finally { 316 _releaseReply ($in); 317 } 318 } 320 public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes) 321 { 322 org.omg.CORBA.portable.InputStream $in = null; 323 try { 324 org.omg.CORBA.portable.OutputStream $out = _request ("ref_is_instance_of", true); 325 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class); 326 $out.write_boolean (consider_subtypes); 327 $in = _invoke ($out); 328 boolean $result = $in.read_boolean (); 329 return $result; 330 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 331 $in = $ex.getInputStream (); 332 String _id = $ex.getId (); 333 throw new org.omg.CORBA.MARSHAL (_id); 334 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 335 return ref_is_instance_of (some_class, consider_subtypes); 336 } finally { 337 _releaseReply ($in); 338 } 339 } 341 public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any [] args) throws 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_create_instance", true); 346 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args); 347 $in = _invoke ($out); 348 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 349 return $result; 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/MofError:1.0")) 354 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 355 else 356 throw new org.omg.CORBA.MARSHAL (_id); 357 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 358 return ref_create_instance (args); 359 } finally { 360 _releaseReply ($in); 361 } 362 } 364 public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes) 365 { 366 org.omg.CORBA.portable.InputStream $in = null; 367 try { 368 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_objects", true); 369 $out.write_boolean (include_subtypes); 370 $in = _invoke ($out); 371 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in); 372 return $result; 373 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 374 $in = $ex.getInputStream (); 375 String _id = $ex.getId (); 376 throw new org.omg.CORBA.MARSHAL (_id); 377 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 378 return ref_all_objects (include_subtypes); 379 } finally { 380 _releaseReply ($in); 381 } 382 } 384 public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_value) throws org.omg.mof.Reflective.MofError 385 { 386 org.omg.CORBA.portable.InputStream $in = null; 387 try { 388 org.omg.CORBA.portable.OutputStream $out = _request ("ref_set_value", true); 389 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 390 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value); 391 $in = _invoke ($out); 392 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 393 $in = $ex.getInputStream (); 394 String _id = $ex.getId (); 395 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 396 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 397 else 398 throw new org.omg.CORBA.MARSHAL (_id); 399 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 400 ref_set_value (feature, new_value); 401 } finally { 402 _releaseReply ($in); 403 } 404 } 406 public org.omg.CORBA.Any ref_value (org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 407 { 408 org.omg.CORBA.portable.InputStream $in = null; 409 try { 410 org.omg.CORBA.portable.OutputStream $out = _request ("ref_value", true); 411 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 412 $in = _invoke ($out); 413 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 414 return $result; 415 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 416 $in = $ex.getInputStream (); 417 String _id = $ex.getId (); 418 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 419 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 420 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 421 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 422 else 423 throw new org.omg.CORBA.MARSHAL (_id); 424 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 425 return ref_value (feature); 426 } finally { 427 _releaseReply ($in); 428 } 429 } 431 public void ref_unset_value () throws org.omg.mof.Reflective.MofError 432 { 433 org.omg.CORBA.portable.InputStream $in = null; 434 try { 435 org.omg.CORBA.portable.OutputStream $out = _request ("ref_unset_value", true); 436 $in = _invoke ($out); 437 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 438 $in = $ex.getInputStream (); 439 String _id = $ex.getId (); 440 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 441 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 442 else 443 throw new org.omg.CORBA.MARSHAL (_id); 444 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 445 ref_unset_value (); 446 } finally { 447 _releaseReply ($in); 448 } 449 } 451 public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError 452 { 453 org.omg.CORBA.portable.InputStream $in = null; 454 try { 455 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value", true); 456 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 457 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 458 $in = _invoke ($out); 459 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 460 $in = $ex.getInputStream (); 461 String _id = $ex.getId (); 462 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 463 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 464 else 465 throw new org.omg.CORBA.MARSHAL (_id); 466 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 467 ref_add_value (feature, new_element); 468 } finally { 469 _releaseReply ($in); 470 } 471 } 473 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 474 { 475 org.omg.CORBA.portable.InputStream $in = null; 476 try { 477 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_before", true); 478 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 479 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 480 org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element); 481 $in = _invoke ($out); 482 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 483 $in = $ex.getInputStream (); 484 String _id = $ex.getId (); 485 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 486 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 487 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 488 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 489 else 490 throw new org.omg.CORBA.MARSHAL (_id); 491 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 492 ref_add_value_before (feature, new_element, before_element); 493 } finally { 494 _releaseReply ($in); 495 } 496 } 498 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 499 { 500 org.omg.CORBA.portable.InputStream $in = null; 501 try { 502 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_at", true); 503 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 504 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 505 $out.write_ulong (position); 506 $in = _invoke ($out); 507 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 508 $in = $ex.getInputStream (); 509 String _id = $ex.getId (); 510 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 511 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 512 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 513 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 514 else 515 throw new org.omg.CORBA.MARSHAL (_id); 516 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 517 ref_add_value_at (feature, new_element, position); 518 } finally { 519 _releaseReply ($in); 520 } 521 } 523 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 524 { 525 org.omg.CORBA.portable.InputStream $in = null; 526 try { 527 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value", true); 528 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 529 org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element); 530 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 531 $in = _invoke ($out); 532 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 533 $in = $ex.getInputStream (); 534 String _id = $ex.getId (); 535 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 536 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 537 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 538 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 539 else 540 throw new org.omg.CORBA.MARSHAL (_id); 541 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 542 ref_modify_value (feature, old_element, new_element); 543 } finally { 544 _releaseReply ($in); 545 } 546 } 548 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 549 { 550 org.omg.CORBA.portable.InputStream $in = null; 551 try { 552 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value_at", true); 553 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 554 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 555 $out.write_ulong (position); 556 $in = _invoke ($out); 557 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 558 $in = $ex.getInputStream (); 559 String _id = $ex.getId (); 560 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 561 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 562 else 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_modify_value_at (feature, new_element, position); 568 } finally { 569 _releaseReply ($in); 570 } 571 } 573 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 574 { 575 org.omg.CORBA.portable.InputStream $in = null; 576 try { 577 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value", true); 578 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 579 org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_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/NotFound:1.0")) 585 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 586 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 587 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 588 else 589 throw new org.omg.CORBA.MARSHAL (_id); 590 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 591 ref_remove_value (feature, existing_element); 592 } finally { 593 _releaseReply ($in); 594 } 595 } 597 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 598 { 599 org.omg.CORBA.portable.InputStream $in = null; 600 try { 601 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value_at", true); 602 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 603 $out.write_ulong (position); 604 $in = _invoke ($out); 605 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 606 $in = $ex.getInputStream (); 607 String _id = $ex.getId (); 608 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 609 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 610 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 611 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 612 else 613 throw new org.omg.CORBA.MARSHAL (_id); 614 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 615 ref_remove_value_at (feature, position); 616 } finally { 617 _releaseReply ($in); 618 } 619 } 621 public org.omg.mof.Reflective.RefObject ref_immediate_composite () 622 { 623 org.omg.CORBA.portable.InputStream $in = null; 624 try { 625 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_composite", true); 626 $in = _invoke ($out); 627 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 628 return $result; 629 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 630 $in = $ex.getInputStream (); 631 String _id = $ex.getId (); 632 throw new org.omg.CORBA.MARSHAL (_id); 633 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 634 return ref_immediate_composite (); 635 } finally { 636 _releaseReply ($in); 637 } 638 } 640 public org.omg.mof.Reflective.RefObject ref_outermost_composite () 641 { 642 org.omg.CORBA.portable.InputStream $in = null; 643 try { 644 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_composite", true); 645 $in = _invoke ($out); 646 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 647 return $result; 648 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 649 $in = $ex.getInputStream (); 650 String _id = $ex.getId (); 651 throw new org.omg.CORBA.MARSHAL (_id); 652 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 653 return ref_outermost_composite (); 654 } finally { 655 _releaseReply ($in); 656 } 657 } 659 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 660 { 661 org.omg.CORBA.portable.InputStream $in = null; 662 try { 663 org.omg.CORBA.portable.OutputStream $out = _request ("ref_invoke_operation", true); 664 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation); 665 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value); 666 $in = _invoke ($out); 667 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 668 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in); 669 return $result; 670 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 671 $in = $ex.getInputStream (); 672 String _id = $ex.getId (); 673 if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0")) 674 throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in); 675 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 676 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 677 else 678 throw new org.omg.CORBA.MARSHAL (_id); 679 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 680 return ref_invoke_operation (requested_operation, args); 681 } finally { 682 _releaseReply ($in); 683 } 684 } 686 public String ref_mof_id () 687 { 688 org.omg.CORBA.portable.InputStream $in = null; 689 try { 690 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 691 $in = _invoke ($out); 692 String $result = $in.read_string (); 693 return $result; 694 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 695 $in = $ex.getInputStream (); 696 String _id = $ex.getId (); 697 throw new org.omg.CORBA.MARSHAL (_id); 698 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 699 return ref_mof_id (); 700 } finally { 701 _releaseReply ($in); 702 } 703 } 705 public org.omg.mof.Reflective.RefObject ref_meta_object () 706 { 707 org.omg.CORBA.portable.InputStream $in = null; 708 try { 709 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 710 $in = _invoke ($out); 711 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 712 return $result; 713 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 714 $in = $ex.getInputStream (); 715 String _id = $ex.getId (); 716 throw new org.omg.CORBA.MARSHAL (_id); 717 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 718 return ref_meta_object (); 719 } finally { 720 _releaseReply ($in); 721 } 722 } 724 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 725 { 726 org.omg.CORBA.portable.InputStream $in = null; 727 try { 728 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 729 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 730 $in = _invoke ($out); 731 boolean $result = $in.read_boolean (); 732 return $result; 733 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 734 $in = $ex.getInputStream (); 735 String _id = $ex.getId (); 736 throw new org.omg.CORBA.MARSHAL (_id); 737 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 738 return ref_itself (other_object); 739 } finally { 740 _releaseReply ($in); 741 } 742 } 744 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 745 { 746 org.omg.CORBA.portable.InputStream $in = null; 747 try { 748 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 749 $in = _invoke ($out); 750 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 751 return $result; 752 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 753 $in = $ex.getInputStream (); 754 String _id = $ex.getId (); 755 throw new org.omg.CORBA.MARSHAL (_id); 756 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 757 return ref_immediate_package (); 758 } finally { 759 _releaseReply ($in); 760 } 761 } 763 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 764 { 765 org.omg.CORBA.portable.InputStream $in = null; 766 try { 767 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 768 $in = _invoke ($out); 769 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 770 return $result; 771 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 772 $in = $ex.getInputStream (); 773 String _id = $ex.getId (); 774 throw new org.omg.CORBA.MARSHAL (_id); 775 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 776 return ref_outermost_package (); 777 } finally { 778 _releaseReply ($in); 779 } 780 } 782 public void ref_delete () throws org.omg.mof.Reflective.MofError 783 { 784 org.omg.CORBA.portable.InputStream $in = null; 785 try { 786 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 787 $in = _invoke ($out); 788 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 789 $in = $ex.getInputStream (); 790 String _id = $ex.getId (); 791 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 792 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 793 else 794 throw new org.omg.CORBA.MARSHAL (_id); 795 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 796 ref_delete (); 797 } finally { 798 _releaseReply ($in); 799 } 800 } 802 public org.omg.mof.Model.Feature[] all_of_type_feature () 803 { 804 org.omg.CORBA.portable.InputStream $in = null; 805 try { 806 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_feature", true); 807 $in = _invoke ($out); 808 org.omg.mof.Model.Feature $result[] = org.omg.mof.Model.FeatureSetHelper.read ($in); 809 return $result; 810 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 811 $in = $ex.getInputStream (); 812 String _id = $ex.getId (); 813 throw new org.omg.CORBA.MARSHAL (_id); 814 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 815 return all_of_type_feature (); 816 } finally { 817 _releaseReply ($in); 818 } 819 } 821 822 public String name () throws org.omg.mof.Reflective.MofError 824 { 825 org.omg.CORBA.portable.InputStream $in = null; 826 try { 827 org.omg.CORBA.portable.OutputStream $out = _request ("name", true); 828 $in = _invoke ($out); 829 String $result = $in.read_string (); 830 return $result; 831 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 832 $in = $ex.getInputStream (); 833 String _id = $ex.getId (); 834 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 835 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 836 else 837 throw new org.omg.CORBA.MARSHAL (_id); 838 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 839 return name (); 840 } finally { 841 _releaseReply ($in); 842 } 843 } 845 public void set_name (String new_value) throws org.omg.mof.Reflective.MofError 846 { 847 org.omg.CORBA.portable.InputStream $in = null; 848 try { 849 org.omg.CORBA.portable.OutputStream $out = _request ("set_name", true); 850 $out.write_string (new_value); 851 $in = _invoke ($out); 852 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 853 $in = $ex.getInputStream (); 854 String _id = $ex.getId (); 855 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 856 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 857 else 858 throw new org.omg.CORBA.MARSHAL (_id); 859 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 860 set_name (new_value); 861 } finally { 862 _releaseReply ($in); 863 } 864 } 866 867 public String annotation () throws org.omg.mof.Reflective.MofError 869 { 870 org.omg.CORBA.portable.InputStream $in = null; 871 try { 872 org.omg.CORBA.portable.OutputStream $out = _request ("annotation", true); 873 $in = _invoke ($out); 874 String $result = $in.read_string (); 875 return $result; 876 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 877 $in = $ex.getInputStream (); 878 String _id = $ex.getId (); 879 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 880 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 881 else 882 throw new org.omg.CORBA.MARSHAL (_id); 883 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 884 return annotation (); 885 } finally { 886 _releaseReply ($in); 887 } 888 } 890 public void set_annotation (String new_value) throws org.omg.mof.Reflective.MofError 891 { 892 org.omg.CORBA.portable.InputStream $in = null; 893 try { 894 org.omg.CORBA.portable.OutputStream $out = _request ("set_annotation", true); 895 $out.write_string (new_value); 896 $in = _invoke ($out); 897 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 898 $in = $ex.getInputStream (); 899 String _id = $ex.getId (); 900 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 901 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 902 else 903 throw new org.omg.CORBA.MARSHAL (_id); 904 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 905 set_annotation (new_value); 906 } finally { 907 _releaseReply ($in); 908 } 909 } 911 912 public String [] qualified_name () throws org.omg.mof.Reflective.MofError 914 { 915 org.omg.CORBA.portable.InputStream $in = null; 916 try { 917 org.omg.CORBA.portable.OutputStream $out = _request ("qualified_name", true); 918 $in = _invoke ($out); 919 String $result[] = org.omg.mof.Model.StringListHelper.read ($in); 920 return $result; 921 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 922 $in = $ex.getInputStream (); 923 String _id = $ex.getId (); 924 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 925 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 926 else 927 throw new org.omg.CORBA.MARSHAL (_id); 928 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 929 return qualified_name (); 930 } finally { 931 _releaseReply ($in); 932 } 933 } 935 936 public org.omg.mof.Model.Namespace container () throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 938 { 939 org.omg.CORBA.portable.InputStream $in = null; 940 try { 941 org.omg.CORBA.portable.OutputStream $out = _request ("container", true); 942 $in = _invoke ($out); 943 org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.read ($in); 944 return $result; 945 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 946 $in = $ex.getInputStream (); 947 String _id = $ex.getId (); 948 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 949 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 950 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 951 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 952 else 953 throw new org.omg.CORBA.MARSHAL (_id); 954 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 955 return container (); 956 } finally { 957 _releaseReply ($in); 958 } 959 } 961 public void set_container (org.omg.mof.Model.Namespace new_value) throws org.omg.mof.Reflective.MofError 962 { 963 org.omg.CORBA.portable.InputStream $in = null; 964 try { 965 org.omg.CORBA.portable.OutputStream $out = _request ("set_container", true); 966 org.omg.mof.Model.NamespaceHelper.write ($out, new_value); 967 $in = _invoke ($out); 968 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 969 $in = $ex.getInputStream (); 970 String _id = $ex.getId (); 971 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 972 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 973 else 974 throw new org.omg.CORBA.MARSHAL (_id); 975 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 976 set_container (new_value); 977 } finally { 978 _releaseReply ($in); 979 } 980 } 982 public void unset_container () throws org.omg.mof.Reflective.MofError 983 { 984 org.omg.CORBA.portable.InputStream $in = null; 985 try { 986 org.omg.CORBA.portable.OutputStream $out = _request ("unset_container", true); 987 $in = _invoke ($out); 988 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 989 $in = $ex.getInputStream (); 990 String _id = $ex.getId (); 991 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 992 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 993 else 994 throw new org.omg.CORBA.MARSHAL (_id); 995 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 996 unset_container (); 997 } finally { 998 _releaseReply ($in); 999 } 1000 } 1002 1003 public org.omg.mof.Model.ModelElement[] required_elements () throws org.omg.mof.Reflective.MofError 1005 { 1006 org.omg.CORBA.portable.InputStream $in = null; 1007 try { 1008 org.omg.CORBA.portable.OutputStream $out = _request ("required_elements", true); 1009 $in = _invoke ($out); 1010 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementBagHelper.read ($in); 1011 return $result; 1012 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1013 $in = $ex.getInputStream (); 1014 String _id = $ex.getId (); 1015 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1016 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1017 else 1018 throw new org.omg.CORBA.MARSHAL (_id); 1019 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1020 return required_elements (); 1021 } finally { 1022 _releaseReply ($in); 1023 } 1024 } 1026 public void set_required_elements (org.omg.mof.Model.ModelElement[] new_value) throws org.omg.mof.Reflective.MofError 1027 { 1028 org.omg.CORBA.portable.InputStream $in = null; 1029 try { 1030 org.omg.CORBA.portable.OutputStream $out = _request ("set_required_elements", true); 1031 org.omg.mof.Model.ModelElementBagHelper.write ($out, new_value); 1032 $in = _invoke ($out); 1033 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1034 $in = $ex.getInputStream (); 1035 String _id = $ex.getId (); 1036 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1037 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1038 else 1039 throw new org.omg.CORBA.MARSHAL (_id); 1040 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1041 set_required_elements (new_value); 1042 } finally { 1043 _releaseReply ($in); 1044 } 1045 } 1047 public void add_required_elements (org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.MofError 1048 { 1049 org.omg.CORBA.portable.InputStream $in = null; 1050 try { 1051 org.omg.CORBA.portable.OutputStream $out = _request ("add_required_elements", true); 1052 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 1053 $in = _invoke ($out); 1054 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1055 $in = $ex.getInputStream (); 1056 String _id = $ex.getId (); 1057 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1058 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1059 else 1060 throw new org.omg.CORBA.MARSHAL (_id); 1061 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1062 add_required_elements (new_element); 1063 } finally { 1064 _releaseReply ($in); 1065 } 1066 } 1068 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 1069 { 1070 org.omg.CORBA.portable.InputStream $in = null; 1071 try { 1072 org.omg.CORBA.portable.OutputStream $out = _request ("modify_required_elements", true); 1073 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 1074 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 1075 $in = _invoke ($out); 1076 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1077 $in = $ex.getInputStream (); 1078 String _id = $ex.getId (); 1079 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1080 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1081 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1082 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1083 else 1084 throw new org.omg.CORBA.MARSHAL (_id); 1085 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1086 modify_required_elements (old_element, new_element); 1087 } finally { 1088 _releaseReply ($in); 1089 } 1090 } 1092 public void remove_required_elements (org.omg.mof.Model.ModelElement old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 1093 { 1094 org.omg.CORBA.portable.InputStream $in = null; 1095 try { 1096 org.omg.CORBA.portable.OutputStream $out = _request ("remove_required_elements", true); 1097 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 1098 $in = _invoke ($out); 1099 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1100 $in = $ex.getInputStream (); 1101 String _id = $ex.getId (); 1102 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1103 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1104 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1105 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1106 else 1107 throw new org.omg.CORBA.MARSHAL (_id); 1108 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1109 remove_required_elements (old_element); 1110 } finally { 1111 _releaseReply ($in); 1112 } 1113 } 1115 1116 public org.omg.mof.Model.Constraint[] constraints () throws org.omg.mof.Reflective.MofError 1118 { 1119 org.omg.CORBA.portable.InputStream $in = null; 1120 try { 1121 org.omg.CORBA.portable.OutputStream $out = _request ("constraints", true); 1122 $in = _invoke ($out); 1123 org.omg.mof.Model.Constraint $result[] = org.omg.mof.Model.ConstraintBagHelper.read ($in); 1124 return $result; 1125 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1126 $in = $ex.getInputStream (); 1127 String _id = $ex.getId (); 1128 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1129 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1130 else 1131 throw new org.omg.CORBA.MARSHAL (_id); 1132 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1133 return constraints (); 1134 } finally { 1135 _releaseReply ($in); 1136 } 1137 } 1139 public void set_constraints (org.omg.mof.Model.Constraint[] new_value) throws org.omg.mof.Reflective.MofError 1140 { 1141 org.omg.CORBA.portable.InputStream $in = null; 1142 try { 1143 org.omg.CORBA.portable.OutputStream $out = _request ("set_constraints", true); 1144 org.omg.mof.Model.ConstraintBagHelper.write ($out, new_value); 1145 $in = _invoke ($out); 1146 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1147 $in = $ex.getInputStream (); 1148 String _id = $ex.getId (); 1149 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1150 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1151 else 1152 throw new org.omg.CORBA.MARSHAL (_id); 1153 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1154 set_constraints (new_value); 1155 } finally { 1156 _releaseReply ($in); 1157 } 1158 } 1160 public void add_constraints (org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.MofError 1161 { 1162 org.omg.CORBA.portable.InputStream $in = null; 1163 try { 1164 org.omg.CORBA.portable.OutputStream $out = _request ("add_constraints", true); 1165 org.omg.mof.Model.ConstraintHelper.write ($out, new_element); 1166 $in = _invoke ($out); 1167 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1168 $in = $ex.getInputStream (); 1169 String _id = $ex.getId (); 1170 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1171 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1172 else 1173 throw new org.omg.CORBA.MARSHAL (_id); 1174 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1175 add_constraints (new_element); 1176 } finally { 1177 _releaseReply ($in); 1178 } 1179 } 1181 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 1182 { 1183 org.omg.CORBA.portable.InputStream $in = null; 1184 try { 1185 org.omg.CORBA.portable.OutputStream $out = _request ("modify_constraints", true); 1186 org.omg.mof.Model.ConstraintHelper.write ($out, old_element); 1187 org.omg.mof.Model.ConstraintHelper.write ($out, new_element); 1188 $in = _invoke ($out); 1189 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1190 $in = $ex.getInputStream (); 1191 String _id = $ex.getId (); 1192 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1193 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1194 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1195 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1196 else 1197 throw new org.omg.CORBA.MARSHAL (_id); 1198 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1199 modify_constraints (old_element, new_element); 1200 } finally { 1201 _releaseReply ($in); 1202 } 1203 } 1205 public void remove_constraints (org.omg.mof.Model.Constraint old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 1206 { 1207 org.omg.CORBA.portable.InputStream $in = null; 1208 try { 1209 org.omg.CORBA.portable.OutputStream $out = _request ("remove_constraints", true); 1210 org.omg.mof.Model.ConstraintHelper.write ($out, old_element); 1211 $in = _invoke ($out); 1212 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1213 $in = $ex.getInputStream (); 1214 String _id = $ex.getId (); 1215 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1216 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1217 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1218 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1219 else 1220 throw new org.omg.CORBA.MARSHAL (_id); 1221 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1222 remove_constraints (old_element); 1223 } finally { 1224 _releaseReply ($in); 1225 } 1226 } 1228 1229 public org.omg.mof.Model.ModelElement[] contents () throws org.omg.mof.Reflective.MofError 1231 { 1232 org.omg.CORBA.portable.InputStream $in = null; 1233 try { 1234 org.omg.CORBA.portable.OutputStream $out = _request ("contents", true); 1235 $in = _invoke ($out); 1236 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementListHelper.read ($in); 1237 return $result; 1238 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1239 $in = $ex.getInputStream (); 1240 String _id = $ex.getId (); 1241 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1242 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1243 else 1244 throw new org.omg.CORBA.MARSHAL (_id); 1245 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1246 return contents (); 1247 } finally { 1248 _releaseReply ($in); 1249 } 1250 } 1252 public void set_contents (org.omg.mof.Model.ModelElement[] new_value) throws org.omg.mof.Reflective.MofError 1253 { 1254 org.omg.CORBA.portable.InputStream $in = null; 1255 try { 1256 org.omg.CORBA.portable.OutputStream $out = _request ("set_contents", true); 1257 org.omg.mof.Model.ModelElementListHelper.write ($out, new_value); 1258 $in = _invoke ($out); 1259 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1260 $in = $ex.getInputStream (); 1261 String _id = $ex.getId (); 1262 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1263 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1264 else 1265 throw new org.omg.CORBA.MARSHAL (_id); 1266 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1267 set_contents (new_value); 1268 } finally { 1269 _releaseReply ($in); 1270 } 1271 } 1273 public void add_contents (org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.MofError 1274 { 1275 org.omg.CORBA.portable.InputStream $in = null; 1276 try { 1277 org.omg.CORBA.portable.OutputStream $out = _request ("add_contents", true); 1278 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 1279 $in = _invoke ($out); 1280 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1281 $in = $ex.getInputStream (); 1282 String _id = $ex.getId (); 1283 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1284 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1285 else 1286 throw new org.omg.CORBA.MARSHAL (_id); 1287 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1288 add_contents (new_element); 1289 } finally { 1290 _releaseReply ($in); 1291 } 1292 } 1294 public void add_contents_before (org.omg.mof.Model.ModelElement new_element, org.omg.mof.Model.ModelElement before_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 1295 { 1296 org.omg.CORBA.portable.InputStream $in = null; 1297 try { 1298 org.omg.CORBA.portable.OutputStream $out = _request ("add_contents_before", true); 1299 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 1300 org.omg.mof.Model.ModelElementHelper.write ($out, before_element); 1301 $in = _invoke ($out); 1302 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1303 $in = $ex.getInputStream (); 1304 String _id = $ex.getId (); 1305 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1306 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1307 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1308 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1309 else 1310 throw new org.omg.CORBA.MARSHAL (_id); 1311 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1312 add_contents_before (new_element, before_element); 1313 } finally { 1314 _releaseReply ($in); 1315 } 1316 } 1318 public void modify_contents (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 1319 { 1320 org.omg.CORBA.portable.InputStream $in = null; 1321 try { 1322 org.omg.CORBA.portable.OutputStream $out = _request ("modify_contents", true); 1323 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 1324 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 1325 $in = _invoke ($out); 1326 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1327 $in = $ex.getInputStream (); 1328 String _id = $ex.getId (); 1329 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1330 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1331 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1332 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1333 else 1334 throw new org.omg.CORBA.MARSHAL (_id); 1335 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1336 modify_contents (old_element, new_element); 1337 } finally { 1338 _releaseReply ($in); 1339 } 1340 } 1342 public void remove_contents (org.omg.mof.Model.ModelElement old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 1343 { 1344 org.omg.CORBA.portable.InputStream $in = null; 1345 try { 1346 org.omg.CORBA.portable.OutputStream $out = _request ("remove_contents", true); 1347 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 1348 $in = _invoke ($out); 1349 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1350 $in = $ex.getInputStream (); 1351 String _id = $ex.getId (); 1352 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1353 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1354 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1355 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1356 else 1357 throw new org.omg.CORBA.MARSHAL (_id); 1358 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1359 remove_contents (old_element); 1360 } finally { 1361 _releaseReply ($in); 1362 } 1363 } 1365 1366 public org.omg.mof.Model.VisibilityKind visibility () throws org.omg.mof.Reflective.MofError 1368 { 1369 org.omg.CORBA.portable.InputStream $in = null; 1370 try { 1371 org.omg.CORBA.portable.OutputStream $out = _request ("visibility", true); 1372 $in = _invoke ($out); 1373 org.omg.mof.Model.VisibilityKind $result = org.omg.mof.Model.VisibilityKindHelper.read ($in); 1374 return $result; 1375 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1376 $in = $ex.getInputStream (); 1377 String _id = $ex.getId (); 1378 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1379 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1380 else 1381 throw new org.omg.CORBA.MARSHAL (_id); 1382 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1383 return visibility (); 1384 } finally { 1385 _releaseReply ($in); 1386 } 1387 } 1389 public void set_visibility (org.omg.mof.Model.VisibilityKind new_value) throws org.omg.mof.Reflective.MofError 1390 { 1391 org.omg.CORBA.portable.InputStream $in = null; 1392 try { 1393 org.omg.CORBA.portable.OutputStream $out = _request ("set_visibility", true); 1394 org.omg.mof.Model.VisibilityKindHelper.write ($out, new_value); 1395 $in = _invoke ($out); 1396 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1397 $in = $ex.getInputStream (); 1398 String _id = $ex.getId (); 1399 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1400 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1401 else 1402 throw new org.omg.CORBA.MARSHAL (_id); 1403 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1404 set_visibility (new_value); 1405 } finally { 1406 _releaseReply ($in); 1407 } 1408 } 1410 1411 public org.omg.mof.Model.ScopeKind scope () throws org.omg.mof.Reflective.MofError 1413 { 1414 org.omg.CORBA.portable.InputStream $in = null; 1415 try { 1416 org.omg.CORBA.portable.OutputStream $out = _request ("scope", true); 1417 $in = _invoke ($out); 1418 org.omg.mof.Model.ScopeKind $result = org.omg.mof.Model.ScopeKindHelper.read ($in); 1419 return $result; 1420 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1421 $in = $ex.getInputStream (); 1422 String _id = $ex.getId (); 1423 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1424 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1425 else 1426 throw new org.omg.CORBA.MARSHAL (_id); 1427 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1428 return scope (); 1429 } finally { 1430 _releaseReply ($in); 1431 } 1432 } 1434 public void set_scope (org.omg.mof.Model.ScopeKind new_value) throws org.omg.mof.Reflective.MofError 1435 { 1436 org.omg.CORBA.portable.InputStream $in = null; 1437 try { 1438 org.omg.CORBA.portable.OutputStream $out = _request ("set_scope", true); 1439 org.omg.mof.Model.ScopeKindHelper.write ($out, new_value); 1440 $in = _invoke ($out); 1441 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1442 $in = $ex.getInputStream (); 1443 String _id = $ex.getId (); 1444 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1445 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1446 else 1447 throw new org.omg.CORBA.MARSHAL (_id); 1448 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1449 set_scope (new_value); 1450 } finally { 1451 _releaseReply ($in); 1452 } 1453 } 1455 private static String [] __ids = { 1457 "IDL:org/omg/mof/Model/Operation:1.0", 1458 "IDL:org/omg/mof/Model/OperationClass:1.0", 1459 "IDL:org/omg/mof/Model/BehavioralFeatureClass:1.0", 1460 "IDL:org/omg/mof/Model/NamespaceClass:1.0", 1461 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 1462 "IDL:org/omg/mof/Reflective/RefObject:1.0", 1463 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 1464 "IDL:org/omg/mof/Model/FeatureClass:1.0", 1465 "IDL:org/omg/mof/Model/ModelElement:1.0", 1466 "IDL:org/omg/mof/Model/Namespace:1.0", 1467 "IDL:org/omg/mof/Model/Feature:1.0", 1468 "IDL:org/omg/mof/Model/BehavioralFeature:1.0"}; 1469 1470 public String [] _ids () 1471 { 1472 return (String [])__ids.clone (); 1473 } 1474 1475 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 1476 { 1477 String str = s.readUTF (); 1478 String [] args = null; 1479 java.util.Properties props = null; 1480 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 1481 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 1482 _set_delegate (delegate); 1483 } 1484 1485 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 1486 { 1487 String [] args = null; 1488 java.util.Properties props = null; 1489 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 1490 s.writeUTF (str); 1491 } 1492} | Popular Tags |