1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _ParameterStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.Parameter 14 { 15 16 17 public org.omg.mof.Model.MultiplicityType multiplicity () 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 ("multiplicity", true); 23 $in = _invoke ($out); 24 org.omg.mof.Model.MultiplicityType $result = org.omg.mof.Model.MultiplicityTypeHelper.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 multiplicity (); 35 } finally { 36 _releaseReply ($in); 37 } 38 } 40 public void set_multiplicity (org.omg.mof.Model.MultiplicityType 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_multiplicity", true); 45 org.omg.mof.Model.MultiplicityTypeHelper.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_multiplicity (new_value); 56 } finally { 57 _releaseReply ($in); 58 } 59 } 61 62 public org.omg.mof.Model.DirectionKind direction () 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 ("direction", true); 68 $in = _invoke ($out); 69 org.omg.mof.Model.DirectionKind $result = org.omg.mof.Model.DirectionKindHelper.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 direction (); 80 } finally { 81 _releaseReply ($in); 82 } 83 } 85 public void set_direction (org.omg.mof.Model.DirectionKind 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_direction", true); 90 org.omg.mof.Model.DirectionKindHelper.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_direction (new_value); 101 } finally { 102 _releaseReply ($in); 103 } 104 } 106 public org.omg.mof.Model.Parameter[] all_of_type_parameter () 107 { 108 org.omg.CORBA.portable.InputStream $in = null; 109 try { 110 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_parameter", true); 111 $in = _invoke ($out); 112 org.omg.mof.Model.Parameter $result[] = org.omg.mof.Model.ParameterSetHelper.read ($in); 113 return $result; 114 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 115 $in = $ex.getInputStream (); 116 String _id = $ex.getId (); 117 throw new org.omg.CORBA.MARSHAL (_id); 118 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 119 return all_of_type_parameter (); 120 } finally { 121 _releaseReply ($in); 122 } 123 } 125 public org.omg.mof.Model.Parameter[] all_of_class_parameter () 126 { 127 org.omg.CORBA.portable.InputStream $in = null; 128 try { 129 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_class_parameter", true); 130 $in = _invoke ($out); 131 org.omg.mof.Model.Parameter $result[] = org.omg.mof.Model.ParameterSetHelper.read ($in); 132 return $result; 133 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 134 $in = $ex.getInputStream (); 135 String _id = $ex.getId (); 136 throw new org.omg.CORBA.MARSHAL (_id); 137 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 138 return all_of_class_parameter (); 139 } finally { 140 _releaseReply ($in); 141 } 142 } 144 public org.omg.mof.Model.Parameter create_parameter (String name, String annotation, org.omg.mof.Model.MultiplicityType multiplicity, org.omg.mof.Model.DirectionKind direction) throws org.omg.mof.Reflective.MofError 145 { 146 org.omg.CORBA.portable.InputStream $in = null; 147 try { 148 org.omg.CORBA.portable.OutputStream $out = _request ("create_parameter", true); 149 $out.write_string (name); 150 $out.write_string (annotation); 151 org.omg.mof.Model.MultiplicityTypeHelper.write ($out, multiplicity); 152 org.omg.mof.Model.DirectionKindHelper.write ($out, direction); 153 $in = _invoke ($out); 154 org.omg.mof.Model.Parameter $result = org.omg.mof.Model.ParameterHelper.read ($in); 155 return $result; 156 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 157 $in = $ex.getInputStream (); 158 String _id = $ex.getId (); 159 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 160 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 161 else 162 throw new org.omg.CORBA.MARSHAL (_id); 163 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 164 return create_parameter (name, annotation, multiplicity, direction); 165 } finally { 166 _releaseReply ($in); 167 } 168 } 170 public org.omg.mof.Model.TypedElement[] all_of_type_typed_element () 171 { 172 org.omg.CORBA.portable.InputStream $in = null; 173 try { 174 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_typed_element", true); 175 $in = _invoke ($out); 176 org.omg.mof.Model.TypedElement $result[] = org.omg.mof.Model.TypedElementSetHelper.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_type_typed_element (); 184 } finally { 185 _releaseReply ($in); 186 } 187 } 189 public org.omg.mof.Model.ModelElement[] all_of_type_model_element () 190 { 191 org.omg.CORBA.portable.InputStream $in = null; 192 try { 193 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_model_element", true); 194 $in = _invoke ($out); 195 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in); 196 return $result; 197 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 198 $in = $ex.getInputStream (); 199 String _id = $ex.getId (); 200 throw new org.omg.CORBA.MARSHAL (_id); 201 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 202 return all_of_type_model_element (); 203 } finally { 204 _releaseReply ($in); 205 } 206 } 208 public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes) 209 { 210 org.omg.CORBA.portable.InputStream $in = null; 211 try { 212 org.omg.CORBA.portable.OutputStream $out = _request ("ref_is_instance_of", true); 213 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class); 214 $out.write_boolean (consider_subtypes); 215 $in = _invoke ($out); 216 boolean $result = $in.read_boolean (); 217 return $result; 218 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 219 $in = $ex.getInputStream (); 220 String _id = $ex.getId (); 221 throw new org.omg.CORBA.MARSHAL (_id); 222 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 223 return ref_is_instance_of (some_class, consider_subtypes); 224 } finally { 225 _releaseReply ($in); 226 } 227 } 229 public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any [] args) throws org.omg.mof.Reflective.MofError 230 { 231 org.omg.CORBA.portable.InputStream $in = null; 232 try { 233 org.omg.CORBA.portable.OutputStream $out = _request ("ref_create_instance", true); 234 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args); 235 $in = _invoke ($out); 236 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 237 return $result; 238 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 239 $in = $ex.getInputStream (); 240 String _id = $ex.getId (); 241 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 242 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 243 else 244 throw new org.omg.CORBA.MARSHAL (_id); 245 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 246 return ref_create_instance (args); 247 } finally { 248 _releaseReply ($in); 249 } 250 } 252 public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes) 253 { 254 org.omg.CORBA.portable.InputStream $in = null; 255 try { 256 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_objects", true); 257 $out.write_boolean (include_subtypes); 258 $in = _invoke ($out); 259 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in); 260 return $result; 261 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 262 $in = $ex.getInputStream (); 263 String _id = $ex.getId (); 264 throw new org.omg.CORBA.MARSHAL (_id); 265 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 266 return ref_all_objects (include_subtypes); 267 } finally { 268 _releaseReply ($in); 269 } 270 } 272 public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_value) throws org.omg.mof.Reflective.MofError 273 { 274 org.omg.CORBA.portable.InputStream $in = null; 275 try { 276 org.omg.CORBA.portable.OutputStream $out = _request ("ref_set_value", true); 277 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 278 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value); 279 $in = _invoke ($out); 280 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 281 $in = $ex.getInputStream (); 282 String _id = $ex.getId (); 283 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 284 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 285 else 286 throw new org.omg.CORBA.MARSHAL (_id); 287 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 288 ref_set_value (feature, new_value); 289 } finally { 290 _releaseReply ($in); 291 } 292 } 294 public org.omg.CORBA.Any ref_value (org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 295 { 296 org.omg.CORBA.portable.InputStream $in = null; 297 try { 298 org.omg.CORBA.portable.OutputStream $out = _request ("ref_value", true); 299 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 300 $in = _invoke ($out); 301 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 302 return $result; 303 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 304 $in = $ex.getInputStream (); 305 String _id = $ex.getId (); 306 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 307 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 308 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 309 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 310 else 311 throw new org.omg.CORBA.MARSHAL (_id); 312 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 313 return ref_value (feature); 314 } finally { 315 _releaseReply ($in); 316 } 317 } 319 public void ref_unset_value () throws org.omg.mof.Reflective.MofError 320 { 321 org.omg.CORBA.portable.InputStream $in = null; 322 try { 323 org.omg.CORBA.portable.OutputStream $out = _request ("ref_unset_value", true); 324 $in = _invoke ($out); 325 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 326 $in = $ex.getInputStream (); 327 String _id = $ex.getId (); 328 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 329 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 330 else 331 throw new org.omg.CORBA.MARSHAL (_id); 332 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 333 ref_unset_value (); 334 } finally { 335 _releaseReply ($in); 336 } 337 } 339 public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError 340 { 341 org.omg.CORBA.portable.InputStream $in = null; 342 try { 343 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value", true); 344 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 345 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 346 $in = _invoke ($out); 347 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 348 $in = $ex.getInputStream (); 349 String _id = $ex.getId (); 350 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 351 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 352 else 353 throw new org.omg.CORBA.MARSHAL (_id); 354 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 355 ref_add_value (feature, new_element); 356 } finally { 357 _releaseReply ($in); 358 } 359 } 361 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 362 { 363 org.omg.CORBA.portable.InputStream $in = null; 364 try { 365 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_before", true); 366 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 367 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 368 org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element); 369 $in = _invoke ($out); 370 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 371 $in = $ex.getInputStream (); 372 String _id = $ex.getId (); 373 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 374 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 375 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 376 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 377 else 378 throw new org.omg.CORBA.MARSHAL (_id); 379 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 380 ref_add_value_before (feature, new_element, before_element); 381 } finally { 382 _releaseReply ($in); 383 } 384 } 386 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 387 { 388 org.omg.CORBA.portable.InputStream $in = null; 389 try { 390 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_at", true); 391 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 392 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 393 $out.write_ulong (position); 394 $in = _invoke ($out); 395 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 396 $in = $ex.getInputStream (); 397 String _id = $ex.getId (); 398 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 399 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 400 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 401 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 402 else 403 throw new org.omg.CORBA.MARSHAL (_id); 404 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 405 ref_add_value_at (feature, new_element, position); 406 } finally { 407 _releaseReply ($in); 408 } 409 } 411 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 412 { 413 org.omg.CORBA.portable.InputStream $in = null; 414 try { 415 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value", true); 416 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 417 org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element); 418 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 419 $in = _invoke ($out); 420 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 421 $in = $ex.getInputStream (); 422 String _id = $ex.getId (); 423 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 424 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 425 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 426 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 427 else 428 throw new org.omg.CORBA.MARSHAL (_id); 429 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 430 ref_modify_value (feature, old_element, new_element); 431 } finally { 432 _releaseReply ($in); 433 } 434 } 436 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 437 { 438 org.omg.CORBA.portable.InputStream $in = null; 439 try { 440 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value_at", true); 441 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 442 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 443 $out.write_ulong (position); 444 $in = _invoke ($out); 445 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 446 $in = $ex.getInputStream (); 447 String _id = $ex.getId (); 448 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 449 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 450 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 451 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 452 else 453 throw new org.omg.CORBA.MARSHAL (_id); 454 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 455 ref_modify_value_at (feature, new_element, position); 456 } finally { 457 _releaseReply ($in); 458 } 459 } 461 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 462 { 463 org.omg.CORBA.portable.InputStream $in = null; 464 try { 465 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value", true); 466 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 467 org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element); 468 $in = _invoke ($out); 469 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 470 $in = $ex.getInputStream (); 471 String _id = $ex.getId (); 472 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 473 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 474 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 475 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 476 else 477 throw new org.omg.CORBA.MARSHAL (_id); 478 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 479 ref_remove_value (feature, existing_element); 480 } finally { 481 _releaseReply ($in); 482 } 483 } 485 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 486 { 487 org.omg.CORBA.portable.InputStream $in = null; 488 try { 489 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value_at", true); 490 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 491 $out.write_ulong (position); 492 $in = _invoke ($out); 493 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 494 $in = $ex.getInputStream (); 495 String _id = $ex.getId (); 496 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 497 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 498 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 499 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 500 else 501 throw new org.omg.CORBA.MARSHAL (_id); 502 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 503 ref_remove_value_at (feature, position); 504 } finally { 505 _releaseReply ($in); 506 } 507 } 509 public org.omg.mof.Reflective.RefObject ref_immediate_composite () 510 { 511 org.omg.CORBA.portable.InputStream $in = null; 512 try { 513 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_composite", true); 514 $in = _invoke ($out); 515 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 516 return $result; 517 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 518 $in = $ex.getInputStream (); 519 String _id = $ex.getId (); 520 throw new org.omg.CORBA.MARSHAL (_id); 521 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 522 return ref_immediate_composite (); 523 } finally { 524 _releaseReply ($in); 525 } 526 } 528 public org.omg.mof.Reflective.RefObject ref_outermost_composite () 529 { 530 org.omg.CORBA.portable.InputStream $in = null; 531 try { 532 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_composite", true); 533 $in = _invoke ($out); 534 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 535 return $result; 536 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 537 $in = $ex.getInputStream (); 538 String _id = $ex.getId (); 539 throw new org.omg.CORBA.MARSHAL (_id); 540 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 541 return ref_outermost_composite (); 542 } finally { 543 _releaseReply ($in); 544 } 545 } 547 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 548 { 549 org.omg.CORBA.portable.InputStream $in = null; 550 try { 551 org.omg.CORBA.portable.OutputStream $out = _request ("ref_invoke_operation", true); 552 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation); 553 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value); 554 $in = _invoke ($out); 555 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 556 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in); 557 return $result; 558 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 559 $in = $ex.getInputStream (); 560 String _id = $ex.getId (); 561 if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0")) 562 throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in); 563 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 564 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 565 else 566 throw new org.omg.CORBA.MARSHAL (_id); 567 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 568 return ref_invoke_operation (requested_operation, args); 569 } finally { 570 _releaseReply ($in); 571 } 572 } 574 public String ref_mof_id () 575 { 576 org.omg.CORBA.portable.InputStream $in = null; 577 try { 578 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 579 $in = _invoke ($out); 580 String $result = $in.read_string (); 581 return $result; 582 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 583 $in = $ex.getInputStream (); 584 String _id = $ex.getId (); 585 throw new org.omg.CORBA.MARSHAL (_id); 586 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 587 return ref_mof_id (); 588 } finally { 589 _releaseReply ($in); 590 } 591 } 593 public org.omg.mof.Reflective.RefObject ref_meta_object () 594 { 595 org.omg.CORBA.portable.InputStream $in = null; 596 try { 597 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 598 $in = _invoke ($out); 599 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 600 return $result; 601 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 602 $in = $ex.getInputStream (); 603 String _id = $ex.getId (); 604 throw new org.omg.CORBA.MARSHAL (_id); 605 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 606 return ref_meta_object (); 607 } finally { 608 _releaseReply ($in); 609 } 610 } 612 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 613 { 614 org.omg.CORBA.portable.InputStream $in = null; 615 try { 616 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 617 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 618 $in = _invoke ($out); 619 boolean $result = $in.read_boolean (); 620 return $result; 621 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 622 $in = $ex.getInputStream (); 623 String _id = $ex.getId (); 624 throw new org.omg.CORBA.MARSHAL (_id); 625 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 626 return ref_itself (other_object); 627 } finally { 628 _releaseReply ($in); 629 } 630 } 632 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 633 { 634 org.omg.CORBA.portable.InputStream $in = null; 635 try { 636 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 637 $in = _invoke ($out); 638 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 639 return $result; 640 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 641 $in = $ex.getInputStream (); 642 String _id = $ex.getId (); 643 throw new org.omg.CORBA.MARSHAL (_id); 644 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 645 return ref_immediate_package (); 646 } finally { 647 _releaseReply ($in); 648 } 649 } 651 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 652 { 653 org.omg.CORBA.portable.InputStream $in = null; 654 try { 655 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 656 $in = _invoke ($out); 657 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 658 return $result; 659 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 660 $in = $ex.getInputStream (); 661 String _id = $ex.getId (); 662 throw new org.omg.CORBA.MARSHAL (_id); 663 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 664 return ref_outermost_package (); 665 } finally { 666 _releaseReply ($in); 667 } 668 } 670 public void ref_delete () throws org.omg.mof.Reflective.MofError 671 { 672 org.omg.CORBA.portable.InputStream $in = null; 673 try { 674 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 675 $in = _invoke ($out); 676 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 677 $in = $ex.getInputStream (); 678 String _id = $ex.getId (); 679 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 680 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 681 else 682 throw new org.omg.CORBA.MARSHAL (_id); 683 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 684 ref_delete (); 685 } finally { 686 _releaseReply ($in); 687 } 688 } 690 691 public String name () throws org.omg.mof.Reflective.MofError 693 { 694 org.omg.CORBA.portable.InputStream $in = null; 695 try { 696 org.omg.CORBA.portable.OutputStream $out = _request ("name", true); 697 $in = _invoke ($out); 698 String $result = $in.read_string (); 699 return $result; 700 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 701 $in = $ex.getInputStream (); 702 String _id = $ex.getId (); 703 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 704 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 705 else 706 throw new org.omg.CORBA.MARSHAL (_id); 707 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 708 return name (); 709 } finally { 710 _releaseReply ($in); 711 } 712 } 714 public void set_name (String new_value) throws org.omg.mof.Reflective.MofError 715 { 716 org.omg.CORBA.portable.InputStream $in = null; 717 try { 718 org.omg.CORBA.portable.OutputStream $out = _request ("set_name", true); 719 $out.write_string (new_value); 720 $in = _invoke ($out); 721 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 722 $in = $ex.getInputStream (); 723 String _id = $ex.getId (); 724 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 725 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 726 else 727 throw new org.omg.CORBA.MARSHAL (_id); 728 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 729 set_name (new_value); 730 } finally { 731 _releaseReply ($in); 732 } 733 } 735 736 public String annotation () throws org.omg.mof.Reflective.MofError 738 { 739 org.omg.CORBA.portable.InputStream $in = null; 740 try { 741 org.omg.CORBA.portable.OutputStream $out = _request ("annotation", true); 742 $in = _invoke ($out); 743 String $result = $in.read_string (); 744 return $result; 745 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 746 $in = $ex.getInputStream (); 747 String _id = $ex.getId (); 748 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 749 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 750 else 751 throw new org.omg.CORBA.MARSHAL (_id); 752 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 753 return annotation (); 754 } finally { 755 _releaseReply ($in); 756 } 757 } 759 public void set_annotation (String new_value) throws org.omg.mof.Reflective.MofError 760 { 761 org.omg.CORBA.portable.InputStream $in = null; 762 try { 763 org.omg.CORBA.portable.OutputStream $out = _request ("set_annotation", true); 764 $out.write_string (new_value); 765 $in = _invoke ($out); 766 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 767 $in = $ex.getInputStream (); 768 String _id = $ex.getId (); 769 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 770 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 771 else 772 throw new org.omg.CORBA.MARSHAL (_id); 773 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 774 set_annotation (new_value); 775 } finally { 776 _releaseReply ($in); 777 } 778 } 780 781 public String [] qualified_name () 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 ("qualified_name", true); 787 $in = _invoke ($out); 788 String $result[] = org.omg.mof.Model.StringListHelper.read ($in); 789 return $result; 790 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 791 $in = $ex.getInputStream (); 792 String _id = $ex.getId (); 793 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 794 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 795 else 796 throw new org.omg.CORBA.MARSHAL (_id); 797 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 798 return qualified_name (); 799 } finally { 800 _releaseReply ($in); 801 } 802 } 804 805 public org.omg.mof.Model.Namespace container () throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 807 { 808 org.omg.CORBA.portable.InputStream $in = null; 809 try { 810 org.omg.CORBA.portable.OutputStream $out = _request ("container", true); 811 $in = _invoke ($out); 812 org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.read ($in); 813 return $result; 814 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 815 $in = $ex.getInputStream (); 816 String _id = $ex.getId (); 817 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 818 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 819 else 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 container (); 825 } finally { 826 _releaseReply ($in); 827 } 828 } 830 public void set_container (org.omg.mof.Model.Namespace new_value) throws org.omg.mof.Reflective.MofError 831 { 832 org.omg.CORBA.portable.InputStream $in = null; 833 try { 834 org.omg.CORBA.portable.OutputStream $out = _request ("set_container", true); 835 org.omg.mof.Model.NamespaceHelper.write ($out, new_value); 836 $in = _invoke ($out); 837 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 838 $in = $ex.getInputStream (); 839 String _id = $ex.getId (); 840 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 841 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 842 else 843 throw new org.omg.CORBA.MARSHAL (_id); 844 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 845 set_container (new_value); 846 } finally { 847 _releaseReply ($in); 848 } 849 } 851 public void unset_container () throws org.omg.mof.Reflective.MofError 852 { 853 org.omg.CORBA.portable.InputStream $in = null; 854 try { 855 org.omg.CORBA.portable.OutputStream $out = _request ("unset_container", true); 856 $in = _invoke ($out); 857 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 858 $in = $ex.getInputStream (); 859 String _id = $ex.getId (); 860 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 861 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 862 else 863 throw new org.omg.CORBA.MARSHAL (_id); 864 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 865 unset_container (); 866 } finally { 867 _releaseReply ($in); 868 } 869 } 871 872 public org.omg.mof.Model.ModelElement[] required_elements () throws org.omg.mof.Reflective.MofError 874 { 875 org.omg.CORBA.portable.InputStream $in = null; 876 try { 877 org.omg.CORBA.portable.OutputStream $out = _request ("required_elements", true); 878 $in = _invoke ($out); 879 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementBagHelper.read ($in); 880 return $result; 881 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 882 $in = $ex.getInputStream (); 883 String _id = $ex.getId (); 884 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 885 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 886 else 887 throw new org.omg.CORBA.MARSHAL (_id); 888 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 889 return required_elements (); 890 } finally { 891 _releaseReply ($in); 892 } 893 } 895 public void set_required_elements (org.omg.mof.Model.ModelElement[] new_value) throws org.omg.mof.Reflective.MofError 896 { 897 org.omg.CORBA.portable.InputStream $in = null; 898 try { 899 org.omg.CORBA.portable.OutputStream $out = _request ("set_required_elements", true); 900 org.omg.mof.Model.ModelElementBagHelper.write ($out, new_value); 901 $in = _invoke ($out); 902 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 903 $in = $ex.getInputStream (); 904 String _id = $ex.getId (); 905 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 906 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 907 else 908 throw new org.omg.CORBA.MARSHAL (_id); 909 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 910 set_required_elements (new_value); 911 } finally { 912 _releaseReply ($in); 913 } 914 } 916 public void add_required_elements (org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.MofError 917 { 918 org.omg.CORBA.portable.InputStream $in = null; 919 try { 920 org.omg.CORBA.portable.OutputStream $out = _request ("add_required_elements", true); 921 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 922 $in = _invoke ($out); 923 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 924 $in = $ex.getInputStream (); 925 String _id = $ex.getId (); 926 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 927 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 928 else 929 throw new org.omg.CORBA.MARSHAL (_id); 930 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 931 add_required_elements (new_element); 932 } finally { 933 _releaseReply ($in); 934 } 935 } 937 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 938 { 939 org.omg.CORBA.portable.InputStream $in = null; 940 try { 941 org.omg.CORBA.portable.OutputStream $out = _request ("modify_required_elements", true); 942 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 943 org.omg.mof.Model.ModelElementHelper.write ($out, new_element); 944 $in = _invoke ($out); 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/NotFound:1.0")) 949 throw org.omg.mof.Reflective.NotFoundHelper.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 modify_required_elements (old_element, new_element); 956 } finally { 957 _releaseReply ($in); 958 } 959 } 961 public void remove_required_elements (org.omg.mof.Model.ModelElement old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 962 { 963 org.omg.CORBA.portable.InputStream $in = null; 964 try { 965 org.omg.CORBA.portable.OutputStream $out = _request ("remove_required_elements", true); 966 org.omg.mof.Model.ModelElementHelper.write ($out, old_element); 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/NotFound:1.0")) 972 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 973 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 974 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 975 else 976 throw new org.omg.CORBA.MARSHAL (_id); 977 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 978 remove_required_elements (old_element); 979 } finally { 980 _releaseReply ($in); 981 } 982 } 984 985 public org.omg.mof.Model.Constraint[] constraints () throws org.omg.mof.Reflective.MofError 987 { 988 org.omg.CORBA.portable.InputStream $in = null; 989 try { 990 org.omg.CORBA.portable.OutputStream $out = _request ("constraints", true); 991 $in = _invoke ($out); 992 org.omg.mof.Model.Constraint $result[] = org.omg.mof.Model.ConstraintBagHelper.read ($in); 993 return $result; 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/MofError:1.0")) 998 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 999 else 1000 throw new org.omg.CORBA.MARSHAL (_id); 1001 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1002 return constraints (); 1003 } finally { 1004 _releaseReply ($in); 1005 } 1006 } 1008 public void set_constraints (org.omg.mof.Model.Constraint[] new_value) throws org.omg.mof.Reflective.MofError 1009 { 1010 org.omg.CORBA.portable.InputStream $in = null; 1011 try { 1012 org.omg.CORBA.portable.OutputStream $out = _request ("set_constraints", true); 1013 org.omg.mof.Model.ConstraintBagHelper.write ($out, new_value); 1014 $in = _invoke ($out); 1015 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1016 $in = $ex.getInputStream (); 1017 String _id = $ex.getId (); 1018 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1019 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1020 else 1021 throw new org.omg.CORBA.MARSHAL (_id); 1022 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1023 set_constraints (new_value); 1024 } finally { 1025 _releaseReply ($in); 1026 } 1027 } 1029 public void add_constraints (org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.MofError 1030 { 1031 org.omg.CORBA.portable.InputStream $in = null; 1032 try { 1033 org.omg.CORBA.portable.OutputStream $out = _request ("add_constraints", true); 1034 org.omg.mof.Model.ConstraintHelper.write ($out, new_element); 1035 $in = _invoke ($out); 1036 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1037 $in = $ex.getInputStream (); 1038 String _id = $ex.getId (); 1039 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1040 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1041 else 1042 throw new org.omg.CORBA.MARSHAL (_id); 1043 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1044 add_constraints (new_element); 1045 } finally { 1046 _releaseReply ($in); 1047 } 1048 } 1050 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 1051 { 1052 org.omg.CORBA.portable.InputStream $in = null; 1053 try { 1054 org.omg.CORBA.portable.OutputStream $out = _request ("modify_constraints", true); 1055 org.omg.mof.Model.ConstraintHelper.write ($out, old_element); 1056 org.omg.mof.Model.ConstraintHelper.write ($out, new_element); 1057 $in = _invoke ($out); 1058 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1059 $in = $ex.getInputStream (); 1060 String _id = $ex.getId (); 1061 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1062 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1063 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1064 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1065 else 1066 throw new org.omg.CORBA.MARSHAL (_id); 1067 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1068 modify_constraints (old_element, new_element); 1069 } finally { 1070 _releaseReply ($in); 1071 } 1072 } 1074 public void remove_constraints (org.omg.mof.Model.Constraint old_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 1075 { 1076 org.omg.CORBA.portable.InputStream $in = null; 1077 try { 1078 org.omg.CORBA.portable.OutputStream $out = _request ("remove_constraints", true); 1079 org.omg.mof.Model.ConstraintHelper.write ($out, old_element); 1080 $in = _invoke ($out); 1081 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1082 $in = $ex.getInputStream (); 1083 String _id = $ex.getId (); 1084 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 1085 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 1086 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1087 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1088 else 1089 throw new org.omg.CORBA.MARSHAL (_id); 1090 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1091 remove_constraints (old_element); 1092 } finally { 1093 _releaseReply ($in); 1094 } 1095 } 1097 1098 public org.omg.mof.Model.Classifier type () throws org.omg.mof.Reflective.MofError 1100 { 1101 org.omg.CORBA.portable.InputStream $in = null; 1102 try { 1103 org.omg.CORBA.portable.OutputStream $out = _request ("type", true); 1104 $in = _invoke ($out); 1105 org.omg.mof.Model.Classifier $result = org.omg.mof.Model.ClassifierHelper.read ($in); 1106 return $result; 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/MofError:1.0")) 1111 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1112 else 1113 throw new org.omg.CORBA.MARSHAL (_id); 1114 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1115 return type (); 1116 } finally { 1117 _releaseReply ($in); 1118 } 1119 } 1121 public void set_type (org.omg.mof.Model.Classifier new_value) throws org.omg.mof.Reflective.MofError 1122 { 1123 org.omg.CORBA.portable.InputStream $in = null; 1124 try { 1125 org.omg.CORBA.portable.OutputStream $out = _request ("set_type", true); 1126 org.omg.mof.Model.ClassifierHelper.write ($out, new_value); 1127 $in = _invoke ($out); 1128 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 1129 $in = $ex.getInputStream (); 1130 String _id = $ex.getId (); 1131 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 1132 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 1133 else 1134 throw new org.omg.CORBA.MARSHAL (_id); 1135 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 1136 set_type (new_value); 1137 } finally { 1138 _releaseReply ($in); 1139 } 1140 } 1142 private static String [] __ids = { 1144 "IDL:org/omg/mof/Model/Parameter:1.0", 1145 "IDL:org/omg/mof/Model/ParameterClass:1.0", 1146 "IDL:org/omg/mof/Model/TypedElementClass:1.0", 1147 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 1148 "IDL:org/omg/mof/Reflective/RefObject:1.0", 1149 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 1150 "IDL:org/omg/mof/Model/ModelElement:1.0", 1151 "IDL:org/omg/mof/Model/TypedElement:1.0"}; 1152 1153 public String [] _ids () 1154 { 1155 return (String [])__ids.clone (); 1156 } 1157 1158 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 1159 { 1160 String str = s.readUTF (); 1161 String [] args = null; 1162 java.util.Properties props = null; 1163 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 1164 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 1165 _set_delegate (delegate); 1166 } 1167 1168 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 1169 { 1170 String [] args = null; 1171 java.util.Properties props = null; 1172 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 1173 s.writeUTF (str); 1174 } 1175} | Popular Tags |