1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _ImportStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.Import 14 { 15 16 17 public org.omg.mof.Model.VisibilityKind visibility () 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 ("visibility", true); 23 $in = _invoke ($out); 24 org.omg.mof.Model.VisibilityKind $result = org.omg.mof.Model.VisibilityKindHelper.read ($in); 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 visibility (); 35 } finally { 36 _releaseReply ($in); 37 } 38 } 40 public void set_visibility (org.omg.mof.Model.VisibilityKind 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_visibility", true); 45 org.omg.mof.Model.VisibilityKindHelper.write ($out, 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_visibility (new_value); 56 } finally { 57 _releaseReply ($in); 58 } 59 } 61 62 public boolean is_clustered () 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 ("is_clustered", true); 68 $in = _invoke ($out); 69 boolean $result = $in.read_boolean (); 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 is_clustered (); 80 } finally { 81 _releaseReply ($in); 82 } 83 } 85 public void set_is_clustered (boolean 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_is_clustered", true); 90 $out.write_boolean (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_is_clustered (new_value); 101 } finally { 102 _releaseReply ($in); 103 } 104 } 106 107 public org.omg.mof.Model.Namespace imported_namespace () 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 ("imported_namespace", true); 113 $in = _invoke ($out); 114 org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.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 imported_namespace (); 125 } finally { 126 _releaseReply ($in); 127 } 128 } 130 public void set_imported_namespace (org.omg.mof.Model.Namespace 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_imported_namespace", true); 135 org.omg.mof.Model.NamespaceHelper.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_imported_namespace (new_value); 146 } finally { 147 _releaseReply ($in); 148 } 149 } 151 public org.omg.mof.Model.Import[] all_of_type_import () 152 { 153 org.omg.CORBA.portable.InputStream $in = null; 154 try { 155 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_import", true); 156 $in = _invoke ($out); 157 org.omg.mof.Model.Import $result[] = org.omg.mof.Model.ImportSetHelper.read ($in); 158 return $result; 159 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 160 $in = $ex.getInputStream (); 161 String _id = $ex.getId (); 162 throw new org.omg.CORBA.MARSHAL (_id); 163 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 164 return all_of_type_import (); 165 } finally { 166 _releaseReply ($in); 167 } 168 } 170 public org.omg.mof.Model.Import[] all_of_class_import () 171 { 172 org.omg.CORBA.portable.InputStream $in = null; 173 try { 174 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_class_import", true); 175 $in = _invoke ($out); 176 org.omg.mof.Model.Import $result[] = org.omg.mof.Model.ImportSetHelper.read ($in); 177 return $result; 178 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 179 $in = $ex.getInputStream (); 180 String _id = $ex.getId (); 181 throw new org.omg.CORBA.MARSHAL (_id); 182 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 183 return all_of_class_import (); 184 } finally { 185 _releaseReply ($in); 186 } 187 } 189 public org.omg.mof.Model.Import create_import (String name, String annotation, org.omg.mof.Model.VisibilityKind visibility, boolean is_clustered) throws org.omg.mof.Reflective.MofError 190 { 191 org.omg.CORBA.portable.InputStream $in = null; 192 try { 193 org.omg.CORBA.portable.OutputStream $out = _request ("create_import", true); 194 $out.write_string (name); 195 $out.write_string (annotation); 196 org.omg.mof.Model.VisibilityKindHelper.write ($out, visibility); 197 $out.write_boolean (is_clustered); 198 $in = _invoke ($out); 199 org.omg.mof.Model.Import $result = org.omg.mof.Model.ImportHelper.read ($in); 200 return $result; 201 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 202 $in = $ex.getInputStream (); 203 String _id = $ex.getId (); 204 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 205 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 206 else 207 throw new org.omg.CORBA.MARSHAL (_id); 208 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 209 return create_import (name, annotation, visibility, is_clustered); 210 } finally { 211 _releaseReply ($in); 212 } 213 } 215 public org.omg.mof.Model.ModelElement[] all_of_type_model_element () 216 { 217 org.omg.CORBA.portable.InputStream $in = null; 218 try { 219 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_model_element", true); 220 $in = _invoke ($out); 221 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in); 222 return $result; 223 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 224 $in = $ex.getInputStream (); 225 String _id = $ex.getId (); 226 throw new org.omg.CORBA.MARSHAL (_id); 227 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 228 return all_of_type_model_element (); 229 } finally { 230 _releaseReply ($in); 231 } 232 } 234 public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes) 235 { 236 org.omg.CORBA.portable.InputStream $in = null; 237 try { 238 org.omg.CORBA.portable.OutputStream $out = _request ("ref_is_instance_of", true); 239 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class); 240 $out.write_boolean (consider_subtypes); 241 $in = _invoke ($out); 242 boolean $result = $in.read_boolean (); 243 return $result; 244 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 245 $in = $ex.getInputStream (); 246 String _id = $ex.getId (); 247 throw new org.omg.CORBA.MARSHAL (_id); 248 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 249 return ref_is_instance_of (some_class, consider_subtypes); 250 } finally { 251 _releaseReply ($in); 252 } 253 } 255 public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any [] args) throws org.omg.mof.Reflective.MofError 256 { 257 org.omg.CORBA.portable.InputStream $in = null; 258 try { 259 org.omg.CORBA.portable.OutputStream $out = _request ("ref_create_instance", true); 260 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args); 261 $in = _invoke ($out); 262 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 263 return $result; 264 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 265 $in = $ex.getInputStream (); 266 String _id = $ex.getId (); 267 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 268 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 269 else 270 throw new org.omg.CORBA.MARSHAL (_id); 271 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 272 return ref_create_instance (args); 273 } finally { 274 _releaseReply ($in); 275 } 276 } 278 public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes) 279 { 280 org.omg.CORBA.portable.InputStream $in = null; 281 try { 282 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_objects", true); 283 $out.write_boolean (include_subtypes); 284 $in = _invoke ($out); 285 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in); 286 return $result; 287 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 288 $in = $ex.getInputStream (); 289 String _id = $ex.getId (); 290 throw new org.omg.CORBA.MARSHAL (_id); 291 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 292 return ref_all_objects (include_subtypes); 293 } finally { 294 _releaseReply ($in); 295 } 296 } 298 public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_value) throws org.omg.mof.Reflective.MofError 299 { 300 org.omg.CORBA.portable.InputStream $in = null; 301 try { 302 org.omg.CORBA.portable.OutputStream $out = _request ("ref_set_value", true); 303 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 304 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value); 305 $in = _invoke ($out); 306 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 307 $in = $ex.getInputStream (); 308 String _id = $ex.getId (); 309 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 310 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 311 else 312 throw new org.omg.CORBA.MARSHAL (_id); 313 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 314 ref_set_value (feature, new_value); 315 } finally { 316 _releaseReply ($in); 317 } 318 } 320 public org.omg.CORBA.Any ref_value (org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 321 { 322 org.omg.CORBA.portable.InputStream $in = null; 323 try { 324 org.omg.CORBA.portable.OutputStream $out = _request ("ref_value", true); 325 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 326 $in = _invoke ($out); 327 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 328 return $result; 329 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 330 $in = $ex.getInputStream (); 331 String _id = $ex.getId (); 332 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 333 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 334 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 335 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 336 else 337 throw new org.omg.CORBA.MARSHAL (_id); 338 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 339 return ref_value (feature); 340 } finally { 341 _releaseReply ($in); 342 } 343 } 345 public void ref_unset_value () 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_unset_value", true); 350 $in = _invoke ($out); 351 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 352 $in = $ex.getInputStream (); 353 String _id = $ex.getId (); 354 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 355 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 356 else 357 throw new org.omg.CORBA.MARSHAL (_id); 358 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 359 ref_unset_value (); 360 } finally { 361 _releaseReply ($in); 362 } 363 } 365 public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError 366 { 367 org.omg.CORBA.portable.InputStream $in = null; 368 try { 369 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value", true); 370 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 371 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 372 $in = _invoke ($out); 373 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 374 $in = $ex.getInputStream (); 375 String _id = $ex.getId (); 376 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 377 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 378 else 379 throw new org.omg.CORBA.MARSHAL (_id); 380 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 381 ref_add_value (feature, new_element); 382 } finally { 383 _releaseReply ($in); 384 } 385 } 387 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 388 { 389 org.omg.CORBA.portable.InputStream $in = null; 390 try { 391 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_before", true); 392 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 393 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 394 org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element); 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/NotFound:1.0")) 400 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 401 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 402 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 403 else 404 throw new org.omg.CORBA.MARSHAL (_id); 405 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 406 ref_add_value_before (feature, new_element, before_element); 407 } finally { 408 _releaseReply ($in); 409 } 410 } 412 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 413 { 414 org.omg.CORBA.portable.InputStream $in = null; 415 try { 416 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_at", true); 417 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 418 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 419 $out.write_ulong (position); 420 $in = _invoke ($out); 421 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 422 $in = $ex.getInputStream (); 423 String _id = $ex.getId (); 424 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 425 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 426 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 427 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 428 else 429 throw new org.omg.CORBA.MARSHAL (_id); 430 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 431 ref_add_value_at (feature, new_element, position); 432 } finally { 433 _releaseReply ($in); 434 } 435 } 437 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 438 { 439 org.omg.CORBA.portable.InputStream $in = null; 440 try { 441 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value", true); 442 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 443 org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element); 444 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 445 $in = _invoke ($out); 446 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 447 $in = $ex.getInputStream (); 448 String _id = $ex.getId (); 449 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 450 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 451 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 452 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 453 else 454 throw new org.omg.CORBA.MARSHAL (_id); 455 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 456 ref_modify_value (feature, old_element, new_element); 457 } finally { 458 _releaseReply ($in); 459 } 460 } 462 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 463 { 464 org.omg.CORBA.portable.InputStream $in = null; 465 try { 466 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value_at", true); 467 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 468 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 469 $out.write_ulong (position); 470 $in = _invoke ($out); 471 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 472 $in = $ex.getInputStream (); 473 String _id = $ex.getId (); 474 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 475 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 476 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 477 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 478 else 479 throw new org.omg.CORBA.MARSHAL (_id); 480 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 481 ref_modify_value_at (feature, new_element, position); 482 } finally { 483 _releaseReply ($in); 484 } 485 } 487 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 488 { 489 org.omg.CORBA.portable.InputStream $in = null; 490 try { 491 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value", true); 492 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 493 org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element); 494 $in = _invoke ($out); 495 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 496 $in = $ex.getInputStream (); 497 String _id = $ex.getId (); 498 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 499 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 500 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 501 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 502 else 503 throw new org.omg.CORBA.MARSHAL (_id); 504 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 505 ref_remove_value (feature, existing_element); 506 } finally { 507 _releaseReply ($in); 508 } 509 } 511 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 512 { 513 org.omg.CORBA.portable.InputStream $in = null; 514 try { 515 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value_at", true); 516 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 517 $out.write_ulong (position); 518 $in = _invoke ($out); 519 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 520 $in = $ex.getInputStream (); 521 String _id = $ex.getId (); 522 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 523 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 524 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 525 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 526 else 527 throw new org.omg.CORBA.MARSHAL (_id); 528 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 529 ref_remove_value_at (feature, position); 530 } finally { 531 _releaseReply ($in); 532 } 533 } 535 public org.omg.mof.Reflective.RefObject ref_immediate_composite () 536 { 537 org.omg.CORBA.portable.InputStream $in = null; 538 try { 539 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_composite", true); 540 $in = _invoke ($out); 541 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 542 return $result; 543 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 544 $in = $ex.getInputStream (); 545 String _id = $ex.getId (); 546 throw new org.omg.CORBA.MARSHAL (_id); 547 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 548 return ref_immediate_composite (); 549 } finally { 550 _releaseReply ($in); 551 } 552 } 554 public org.omg.mof.Reflective.RefObject ref_outermost_composite () 555 { 556 org.omg.CORBA.portable.InputStream $in = null; 557 try { 558 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_composite", true); 559 $in = _invoke ($out); 560 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 561 return $result; 562 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 563 $in = $ex.getInputStream (); 564 String _id = $ex.getId (); 565 throw new org.omg.CORBA.MARSHAL (_id); 566 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 567 return ref_outermost_composite (); 568 } finally { 569 _releaseReply ($in); 570 } 571 } 573 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 574 { 575 org.omg.CORBA.portable.InputStream $in = null; 576 try { 577 org.omg.CORBA.portable.OutputStream $out = _request ("ref_invoke_operation", true); 578 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation); 579 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value); 580 $in = _invoke ($out); 581 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 582 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in); 583 return $result; 584 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 585 $in = $ex.getInputStream (); 586 String _id = $ex.getId (); 587 if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0")) 588 throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in); 589 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 590 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 591 else 592 throw new org.omg.CORBA.MARSHAL (_id); 593 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 594 return ref_invoke_operation (requested_operation, args); 595 } finally { 596 _releaseReply ($in); 597 } 598 } 600 public String ref_mof_id () 601 { 602 org.omg.CORBA.portable.InputStream $in = null; 603 try { 604 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 605 $in = _invoke ($out); 606 String $result = $in.read_string (); 607 return $result; 608 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 609 $in = $ex.getInputStream (); 610 String _id = $ex.getId (); 611 throw new org.omg.CORBA.MARSHAL (_id); 612 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 613 return ref_mof_id (); 614 } finally { 615 _releaseReply ($in); 616 } 617 } 619 public org.omg.mof.Reflective.RefObject ref_meta_object () 620 { 621 org.omg.CORBA.portable.InputStream $in = null; 622 try { 623 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 624 $in = _invoke ($out); 625 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 626 return $result; 627 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 628 $in = $ex.getInputStream (); 629 String _id = $ex.getId (); 630 throw new org.omg.CORBA.MARSHAL (_id); 631 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 632 return ref_meta_object (); 633 } finally { 634 _releaseReply ($in); 635 } 636 } 638 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 639 { 640 org.omg.CORBA.portable.InputStream $in = null; 641 try { 642 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 643 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 644 $in = _invoke ($out); 645 boolean $result = $in.read_boolean (); 646 return $result; 647 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 648 $in = $ex.getInputStream (); 649 String _id = $ex.getId (); 650 throw new org.omg.CORBA.MARSHAL (_id); 651 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 652 return ref_itself (other_object); 653 } finally { 654 _releaseReply ($in); 655 } 656 } 658 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 659 { 660 org.omg.CORBA.portable.InputStream $in = null; 661 try { 662 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 663 $in = _invoke ($out); 664 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 665 return $result; 666 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 667 $in = $ex.getInputStream (); 668 String _id = $ex.getId (); 669 throw new org.omg.CORBA.MARSHAL (_id); 670 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 671 return ref_immediate_package (); 672 } finally { 673 _releaseReply ($in); 674 } 675 } 677 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 678 { 679 org.omg.CORBA.portable.InputStream $in = null; 680 try { 681 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 682 $in = _invoke ($out); 683 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 684 return $result; 685 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 686 $in = $ex.getInputStream (); 687 String _id = $ex.getId (); 688 throw new org.omg.CORBA.MARSHAL (_id); 689 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 690 return ref_outermost_package (); 691 } finally { 692 _releaseReply ($in); 693 } 694 } 696 public void ref_delete () throws org.omg.mof.Reflective.MofError 697 { 698 org.omg.CORBA.portable.InputStream $in = null; 699 try { 700 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 701 $in = _invoke ($out); 702 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 703 $in = $ex.getInputStream (); 704 String _id = $ex.getId (); 705 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 706 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 707 else 708 throw new org.omg.CORBA.MARSHAL (_id); 709 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 710 ref_delete (); 711 } finally { 712 _releaseReply ($in); 713 } 714 } 716 717 public String name () throws org.omg.mof.Reflective.MofError 719 { 720 org.omg.CORBA.portable.InputStream $in = null; 721 try { 722 org.omg.CORBA.portable.OutputStream $out = _request ("name", true); 723 $in = _invoke ($out); 724 String $result = $in.read_string (); 725 return $result; 726 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 727 $in = $ex.getInputStream (); 728 String _id = $ex.getId (); 729 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 730 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 731 else 732 throw new org.omg.CORBA.MARSHAL (_id); 733 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 734 return name (); 735 } finally { 736 _releaseReply ($in); 737 } 738 } 740 public void set_name (String new_value) throws org.omg.mof.Reflective.MofError 741 { 742 org.omg.CORBA.portable.InputStream $in = null; 743 try { 744 org.omg.CORBA.portable.OutputStream $out = _request ("set_name", true); 745 $out.write_string (new_value); 746 $in = _invoke ($out); 747 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 748 $in = $ex.getInputStream (); 749 String _id = $ex.getId (); 750 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 751 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 752 else 753 throw new org.omg.CORBA.MARSHAL (_id); 754 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 755 set_name (new_value); 756 } finally { 757 _releaseReply ($in); 758 } 759 } 761 762 public String annotation () throws org.omg.mof.Reflective.MofError 764 { 765 org.omg.CORBA.portable.InputStream $in = null; 766 try { 767 org.omg.CORBA.portable.OutputStream $out = _request ("annotation", true); 768 $in = _invoke ($out); 769 String $result = $in.read_string (); 770 return $result; 771 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 772 $in = $ex.getInputStream (); 773 String _id = $ex.getId (); 774 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 775 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 776 else 777 throw new org.omg.CORBA.MARSHAL (_id); 778 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 779 return annotation (); 780 } finally { 781 _releaseReply ($in); 782 } 783 } 785 public void set_annotation (String new_value) throws org.omg.mof.Reflective.MofError 786 { 787 org.omg.CORBA.portable.InputStream $in = null; 788 try { 789 org.omg.CORBA.portable.OutputStream $out = _request ("set_annotation", true); 790 $out.write_string (new_value); 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 set_annotation (new_value); 801 } finally { 802 _releaseReply ($in); 803 } 804 } 806 807 public String [] qualified_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 ("qualified_name", true); 813 $in = _invoke ($out); 814 String $result[] = org.omg.mof.Model.StringListHelper.read ($in); 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 qualified_name (); 825 } finally { 826 _releaseReply ($in); 827 } 828 } 830 831 public org.omg.mof.Model.Namespace container () throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 833 { 834 org.omg.CORBA.portable.InputStream $in = null; 835 try { 836 org.omg.CORBA.portable.OutputStream $out = _request ("container", true); 837 $in = _invoke ($out); 838 org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.read ($in); 839 return $result; 840 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 841 $in = $ex.getInputStream (); 842 String _id = $ex.getId (); 843 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 844 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 845 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 846 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 847 else 848 throw new org.omg.CORBA.MARSHAL (_id); 849 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 850 return container (); 851 } finally { 852 _releaseReply ($in); 853 } 854 } 856 public void set_container (org.omg.mof.Model.Namespace new_value) throws org.omg.mof.Reflective.MofError 857 { 858 org.omg.CORBA.portable.InputStream $in = null; 859 try { 860 org.omg.CORBA.portable.OutputStream $out = _request ("set_container", true); 861 org.omg.mof.Model.NamespaceHelper.write ($out, new_value); 862 $in = _invoke ($out); 863 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 864 $in = $ex.getInputStream (); 865 String _id = $ex.getId (); 866 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 867 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 868 else 869 throw new org.omg.CORBA.MARSHAL (_id); 870 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 871 set_container (new_value); 872 } finally { 873 _releaseReply ($in); 874 } 875 } 877 public void unset_container () throws org.omg.mof.Reflective.MofError 878 { 879 org.omg.CORBA.portable.InputStream $in = null; 880 try { 881 org.omg.CORBA.portable.OutputStream $out = _request ("unset_container", true); 882 $in = _invoke ($out); 883 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 884 $in = $ex.getInputStream (); 885 String _id = $ex.getId (); 886 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 887 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 888 else 889 throw new org.omg.CORBA.MARSHAL (_id); 890 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 891 unset_container (); 892 } finally { 893 _releaseReply ($in); 894 } 895 } 897 898 public org.omg.mof.Model.ModelElement[] required_elements () throws org.omg.mof.Reflective.MofError 900 { 901 org.omg.CORBA.portable.InputStream $in = null; 902 try { 903 org.omg.CORBA.portable.OutputStream $out = _request ("required_elements", true); 904 $in = _invoke ($out); 905 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementBagHelper.read ($in); 906 return $result; 907 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 908 $in = $ex.getInputStream (); 909 String _id = $ex.getId (); 910 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 911 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 912 else 913 throw new org.omg.CORBA.MARSHAL (_id); 914 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 915 return required_elements (); 916 } finally { 917 _releaseReply ($in); 918 } 919 } 921 public void set_required_elements (org.omg.mof.Model.ModelElement[] new_value) throws org.omg.mof.Reflective.MofError 922 { 923 org.omg.CORBA.portable.InputStream $in = null; 924 try { 925 org.omg.CORBA.portable.OutputStream $out = _request ("set_required_elements", true); 926 org.omg.mof.Model.ModelElementBagHelper.write ($out, new_value); 927 $in = _invoke ($out); 928 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 929 $in = $ex.getInputStream (); 930 String _id = $ex.getId (); 931 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 932 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 933 else 934 throw new org.omg.CORBA.MARSHAL (_id); 935 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 936 set_required_elements (new_value); 937 } finally { 938 _releaseReply ($in); 939 } 940 } 942 public void add_required_elements (org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.MofError 943 { 944 org.omg.CORBA.portable.InputStream $in = null; 945 try { 946 org.omg.CORBA.portable.OutputStream $out = _request ("add_required_elements", true); 947 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 948 $in = _invoke ($out); 949 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 950 $in = $ex.getInputStream (); 951 String _id = $ex.getId (); 952 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 953 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 954 else 955 throw new org.omg.CORBA.MARSHAL (_id); 956 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 957 add_required_elements (new_element); 958 } finally { 959 _releaseReply ($in); 960 } 961 } 963 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 964 { 965 org.omg.CORBA.portable.InputStream $in = null; 966 try { 967 org.omg.CORBA.portable.OutputStream $out = _request ("modify_required_elements", true); 968 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 969 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 970 $in = _invoke ($out); 971 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 972 $in = $ex.getInputStream (); 973 String _id = $ex.getId (); 974 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 975 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 976 else 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 modify_required_elements (old_element, new_element); 982 } finally { 983 _releaseReply ($in); 984 } 985 } 987 public void remove_required_elements (org.omg.mof.Model.ModelElement old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 988 { 989 org.omg.CORBA.portable.InputStream $in = null; 990 try { 991 org.omg.CORBA.portable.OutputStream $out = _request ("remove_required_elements", true); 992 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 993 $in = _invoke ($out); 994 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 995 $in = $ex.getInputStream (); 996 String _id = $ex.getId (); 997 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 998 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 999 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1000 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1001 else 1002 throw new org.omg.CORBA.MARSHAL (_id); 1003 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1004 remove_required_elements (old_element); 1005 } finally { 1006 _releaseReply ($in); 1007 } 1008 } 1010 1011 public org.omg.mof.Model.Constraint[] constraints () throws org.omg.mof.Reflective.MofError 1013 { 1014 org.omg.CORBA.portable.InputStream $in = null; 1015 try { 1016 org.omg.CORBA.portable.OutputStream $out = _request ("constraints", true); 1017 $in = _invoke ($out); 1018 org.omg.mof.Model.Constraint $result[] = org.omg.mof.Model.ConstraintBagHelper.read ($in); 1019 return $result; 1020 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1021 $in = $ex.getInputStream (); 1022 String _id = $ex.getId (); 1023 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1024 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1025 else 1026 throw new org.omg.CORBA.MARSHAL (_id); 1027 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1028 return constraints (); 1029 } finally { 1030 _releaseReply ($in); 1031 } 1032 } 1034 public void set_constraints (org.omg.mof.Model.Constraint[] new_value) throws org.omg.mof.Reflective.MofError 1035 { 1036 org.omg.CORBA.portable.InputStream $in = null; 1037 try { 1038 org.omg.CORBA.portable.OutputStream $out = _request ("set_constraints", true); 1039 org.omg.mof.Model.ConstraintBagHelper.write ($out, new_value); 1040 $in = _invoke ($out); 1041 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1042 $in = $ex.getInputStream (); 1043 String _id = $ex.getId (); 1044 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1045 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1046 else 1047 throw new org.omg.CORBA.MARSHAL (_id); 1048 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1049 set_constraints (new_value); 1050 } finally { 1051 _releaseReply ($in); 1052 } 1053 } 1055 public void add_constraints (org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.MofError 1056 { 1057 org.omg.CORBA.portable.InputStream $in = null; 1058 try { 1059 org.omg.CORBA.portable.OutputStream $out = _request ("add_constraints", true); 1060 org.omg.mof.Model.ConstraintHelper.write ($out, new_element); 1061 $in = _invoke ($out); 1062 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1063 $in = $ex.getInputStream (); 1064 String _id = $ex.getId (); 1065 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1066 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1067 else 1068 throw new org.omg.CORBA.MARSHAL (_id); 1069 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1070 add_constraints (new_element); 1071 } finally { 1072 _releaseReply ($in); 1073 } 1074 } 1076 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 1077 { 1078 org.omg.CORBA.portable.InputStream $in = null; 1079 try { 1080 org.omg.CORBA.portable.OutputStream $out = _request ("modify_constraints", true); 1081 org.omg.mof.Model.ConstraintHelper.write ($out, old_element); 1082 org.omg.mof.Model.ConstraintHelper.write ($out, new_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 modify_constraints (old_element, new_element); 1095 } finally { 1096 _releaseReply ($in); 1097 } 1098 } 1100 public void remove_constraints (org.omg.mof.Model.Constraint old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 1101 { 1102 org.omg.CORBA.portable.InputStream $in = null; 1103 try { 1104 org.omg.CORBA.portable.OutputStream $out = _request ("remove_constraints", true); 1105 org.omg.mof.Model.ConstraintHelper.write ($out, old_element); 1106 $in = _invoke ($out); 1107 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1108 $in = $ex.getInputStream (); 1109 String _id = $ex.getId (); 1110 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1111 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1112 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1113 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1114 else 1115 throw new org.omg.CORBA.MARSHAL (_id); 1116 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1117 remove_constraints (old_element); 1118 } finally { 1119 _releaseReply ($in); 1120 } 1121 } 1123 private static String [] __ids = { 1125 "IDL:org/omg/mof/Model/Import:1.0", 1126 "IDL:org/omg/mof/Model/ImportClass:1.0", 1127 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 1128 "IDL:org/omg/mof/Reflective/RefObject:1.0", 1129 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 1130 "IDL:org/omg/mof/Model/ModelElement:1.0"}; 1131 1132 public String [] _ids () 1133 { 1134 return (String [])__ids.clone (); 1135 } 1136 1137 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 1138 { 1139 String str = s.readUTF (); 1140 String [] args = null; 1141 java.util.Properties props = null; 1142 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 1143 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 1144 _set_delegate (delegate); 1145 } 1146 1147 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 1148 { 1149 String [] args = null; 1150 java.util.Properties props = null; 1151 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 1152 s.writeUTF (str); 1153 } 1154} | Popular Tags |