1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _ReferenceClassStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.ReferenceClass 14 { 15 16 public org.omg.mof.Model.Reference[] all_of_type_reference () 17 { 18 org.omg.CORBA.portable.InputStream $in = null; 19 try { 20 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_reference", true); 21 $in = _invoke ($out); 22 org.omg.mof.Model.Reference $result[] = org.omg.mof.Model.ReferenceSetHelper.read ($in); 23 return $result; 24 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 25 $in = $ex.getInputStream (); 26 String _id = $ex.getId (); 27 throw new org.omg.CORBA.MARSHAL (_id); 28 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 29 return all_of_type_reference (); 30 } finally { 31 _releaseReply ($in); 32 } 33 } 35 public org.omg.mof.Model.Reference[] all_of_class_reference () 36 { 37 org.omg.CORBA.portable.InputStream $in = null; 38 try { 39 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_class_reference", true); 40 $in = _invoke ($out); 41 org.omg.mof.Model.Reference $result[] = org.omg.mof.Model.ReferenceSetHelper.read ($in); 42 return $result; 43 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 44 $in = $ex.getInputStream (); 45 String _id = $ex.getId (); 46 throw new org.omg.CORBA.MARSHAL (_id); 47 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 48 return all_of_class_reference (); 49 } finally { 50 _releaseReply ($in); 51 } 52 } 54 public org.omg.mof.Model.Reference create_reference (String name, String annotation, org.omg.mof.Model.VisibilityKind visibility, org.omg.mof.Model.ScopeKind scope, org.omg.mof.Model.MultiplicityType multiplicity, boolean is_changeable) throws org.omg.mof.Reflective.MofError 55 { 56 org.omg.CORBA.portable.InputStream $in = null; 57 try { 58 org.omg.CORBA.portable.OutputStream $out = _request ("create_reference", true); 59 $out.write_string (name); 60 $out.write_string (annotation); 61 org.omg.mof.Model.VisibilityKindHelper.write ($out, visibility); 62 org.omg.mof.Model.ScopeKindHelper.write ($out, scope); 63 org.omg.mof.Model.MultiplicityTypeHelper.write ($out, multiplicity); 64 $out.write_boolean (is_changeable); 65 $in = _invoke ($out); 66 org.omg.mof.Model.Reference $result = org.omg.mof.Model.ReferenceHelper.read ($in); 67 return $result; 68 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 69 $in = $ex.getInputStream (); 70 String _id = $ex.getId (); 71 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 72 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 73 else 74 throw new org.omg.CORBA.MARSHAL (_id); 75 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 76 return create_reference (name, annotation, visibility, scope, multiplicity, is_changeable); 77 } finally { 78 _releaseReply ($in); 79 } 80 } 82 public org.omg.mof.Model.StructuralFeature[] all_of_type_structural_feature () 83 { 84 org.omg.CORBA.portable.InputStream $in = null; 85 try { 86 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_structural_feature", true); 87 $in = _invoke ($out); 88 org.omg.mof.Model.StructuralFeature $result[] = org.omg.mof.Model.StructuralFeatureSetHelper.read ($in); 89 return $result; 90 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 91 $in = $ex.getInputStream (); 92 String _id = $ex.getId (); 93 throw new org.omg.CORBA.MARSHAL (_id); 94 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 95 return all_of_type_structural_feature (); 96 } finally { 97 _releaseReply ($in); 98 } 99 } 101 public org.omg.mof.Model.TypedElement[] all_of_type_typed_element () 102 { 103 org.omg.CORBA.portable.InputStream $in = null; 104 try { 105 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_typed_element", true); 106 $in = _invoke ($out); 107 org.omg.mof.Model.TypedElement $result[] = org.omg.mof.Model.TypedElementSetHelper.read ($in); 108 return $result; 109 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 110 $in = $ex.getInputStream (); 111 String _id = $ex.getId (); 112 throw new org.omg.CORBA.MARSHAL (_id); 113 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 114 return all_of_type_typed_element (); 115 } finally { 116 _releaseReply ($in); 117 } 118 } 120 public org.omg.mof.Model.ModelElement[] all_of_type_model_element () 121 { 122 org.omg.CORBA.portable.InputStream $in = null; 123 try { 124 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_model_element", true); 125 $in = _invoke ($out); 126 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in); 127 return $result; 128 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 129 $in = $ex.getInputStream (); 130 String _id = $ex.getId (); 131 throw new org.omg.CORBA.MARSHAL (_id); 132 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 133 return all_of_type_model_element (); 134 } finally { 135 _releaseReply ($in); 136 } 137 } 139 public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes) 140 { 141 org.omg.CORBA.portable.InputStream $in = null; 142 try { 143 org.omg.CORBA.portable.OutputStream $out = _request ("ref_is_instance_of", true); 144 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class); 145 $out.write_boolean (consider_subtypes); 146 $in = _invoke ($out); 147 boolean $result = $in.read_boolean (); 148 return $result; 149 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 150 $in = $ex.getInputStream (); 151 String _id = $ex.getId (); 152 throw new org.omg.CORBA.MARSHAL (_id); 153 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 154 return ref_is_instance_of (some_class, consider_subtypes); 155 } finally { 156 _releaseReply ($in); 157 } 158 } 160 public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any [] args) throws org.omg.mof.Reflective.MofError 161 { 162 org.omg.CORBA.portable.InputStream $in = null; 163 try { 164 org.omg.CORBA.portable.OutputStream $out = _request ("ref_create_instance", true); 165 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args); 166 $in = _invoke ($out); 167 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 168 return $result; 169 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 170 $in = $ex.getInputStream (); 171 String _id = $ex.getId (); 172 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 173 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 174 else 175 throw new org.omg.CORBA.MARSHAL (_id); 176 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 177 return ref_create_instance (args); 178 } finally { 179 _releaseReply ($in); 180 } 181 } 183 public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes) 184 { 185 org.omg.CORBA.portable.InputStream $in = null; 186 try { 187 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_objects", true); 188 $out.write_boolean (include_subtypes); 189 $in = _invoke ($out); 190 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in); 191 return $result; 192 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 193 $in = $ex.getInputStream (); 194 String _id = $ex.getId (); 195 throw new org.omg.CORBA.MARSHAL (_id); 196 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 197 return ref_all_objects (include_subtypes); 198 } finally { 199 _releaseReply ($in); 200 } 201 } 203 public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_value) throws org.omg.mof.Reflective.MofError 204 { 205 org.omg.CORBA.portable.InputStream $in = null; 206 try { 207 org.omg.CORBA.portable.OutputStream $out = _request ("ref_set_value", true); 208 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 209 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value); 210 $in = _invoke ($out); 211 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 212 $in = $ex.getInputStream (); 213 String _id = $ex.getId (); 214 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 215 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 216 else 217 throw new org.omg.CORBA.MARSHAL (_id); 218 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 219 ref_set_value (feature, new_value); 220 } finally { 221 _releaseReply ($in); 222 } 223 } 225 public org.omg.CORBA.Any ref_value (org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 226 { 227 org.omg.CORBA.portable.InputStream $in = null; 228 try { 229 org.omg.CORBA.portable.OutputStream $out = _request ("ref_value", true); 230 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 231 $in = _invoke ($out); 232 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 233 return $result; 234 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 235 $in = $ex.getInputStream (); 236 String _id = $ex.getId (); 237 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 238 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 239 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 240 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 241 else 242 throw new org.omg.CORBA.MARSHAL (_id); 243 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 244 return ref_value (feature); 245 } finally { 246 _releaseReply ($in); 247 } 248 } 250 public void ref_unset_value () throws org.omg.mof.Reflective.MofError 251 { 252 org.omg.CORBA.portable.InputStream $in = null; 253 try { 254 org.omg.CORBA.portable.OutputStream $out = _request ("ref_unset_value", true); 255 $in = _invoke ($out); 256 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 257 $in = $ex.getInputStream (); 258 String _id = $ex.getId (); 259 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 260 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 261 else 262 throw new org.omg.CORBA.MARSHAL (_id); 263 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 264 ref_unset_value (); 265 } finally { 266 _releaseReply ($in); 267 } 268 } 270 public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError 271 { 272 org.omg.CORBA.portable.InputStream $in = null; 273 try { 274 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value", true); 275 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 276 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 277 $in = _invoke ($out); 278 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 279 $in = $ex.getInputStream (); 280 String _id = $ex.getId (); 281 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 282 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 283 else 284 throw new org.omg.CORBA.MARSHAL (_id); 285 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 286 ref_add_value (feature, new_element); 287 } finally { 288 _releaseReply ($in); 289 } 290 } 292 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 293 { 294 org.omg.CORBA.portable.InputStream $in = null; 295 try { 296 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_before", true); 297 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 298 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 299 org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element); 300 $in = _invoke ($out); 301 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 302 $in = $ex.getInputStream (); 303 String _id = $ex.getId (); 304 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 305 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 306 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 307 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 308 else 309 throw new org.omg.CORBA.MARSHAL (_id); 310 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 311 ref_add_value_before (feature, new_element, before_element); 312 } finally { 313 _releaseReply ($in); 314 } 315 } 317 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 318 { 319 org.omg.CORBA.portable.InputStream $in = null; 320 try { 321 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_at", true); 322 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 323 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 324 $out.write_ulong (position); 325 $in = _invoke ($out); 326 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 327 $in = $ex.getInputStream (); 328 String _id = $ex.getId (); 329 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 330 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 331 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 332 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 333 else 334 throw new org.omg.CORBA.MARSHAL (_id); 335 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 336 ref_add_value_at (feature, new_element, position); 337 } finally { 338 _releaseReply ($in); 339 } 340 } 342 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 343 { 344 org.omg.CORBA.portable.InputStream $in = null; 345 try { 346 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value", true); 347 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 348 org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element); 349 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 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/NotFound:1.0")) 355 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 356 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 357 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 358 else 359 throw new org.omg.CORBA.MARSHAL (_id); 360 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 361 ref_modify_value (feature, old_element, new_element); 362 } finally { 363 _releaseReply ($in); 364 } 365 } 367 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 368 { 369 org.omg.CORBA.portable.InputStream $in = null; 370 try { 371 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value_at", true); 372 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 373 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 374 $out.write_ulong (position); 375 $in = _invoke ($out); 376 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 377 $in = $ex.getInputStream (); 378 String _id = $ex.getId (); 379 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 380 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 381 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 382 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 383 else 384 throw new org.omg.CORBA.MARSHAL (_id); 385 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 386 ref_modify_value_at (feature, new_element, position); 387 } finally { 388 _releaseReply ($in); 389 } 390 } 392 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 393 { 394 org.omg.CORBA.portable.InputStream $in = null; 395 try { 396 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value", true); 397 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 398 org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element); 399 $in = _invoke ($out); 400 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 401 $in = $ex.getInputStream (); 402 String _id = $ex.getId (); 403 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 404 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 405 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 406 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 407 else 408 throw new org.omg.CORBA.MARSHAL (_id); 409 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 410 ref_remove_value (feature, existing_element); 411 } finally { 412 _releaseReply ($in); 413 } 414 } 416 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 417 { 418 org.omg.CORBA.portable.InputStream $in = null; 419 try { 420 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value_at", true); 421 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 422 $out.write_ulong (position); 423 $in = _invoke ($out); 424 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 425 $in = $ex.getInputStream (); 426 String _id = $ex.getId (); 427 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 428 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 429 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 430 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 431 else 432 throw new org.omg.CORBA.MARSHAL (_id); 433 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 434 ref_remove_value_at (feature, position); 435 } finally { 436 _releaseReply ($in); 437 } 438 } 440 public org.omg.mof.Reflective.RefObject ref_immediate_composite () 441 { 442 org.omg.CORBA.portable.InputStream $in = null; 443 try { 444 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_composite", true); 445 $in = _invoke ($out); 446 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 447 return $result; 448 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 449 $in = $ex.getInputStream (); 450 String _id = $ex.getId (); 451 throw new org.omg.CORBA.MARSHAL (_id); 452 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 453 return ref_immediate_composite (); 454 } finally { 455 _releaseReply ($in); 456 } 457 } 459 public org.omg.mof.Reflective.RefObject ref_outermost_composite () 460 { 461 org.omg.CORBA.portable.InputStream $in = null; 462 try { 463 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_composite", true); 464 $in = _invoke ($out); 465 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 466 return $result; 467 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 468 $in = $ex.getInputStream (); 469 String _id = $ex.getId (); 470 throw new org.omg.CORBA.MARSHAL (_id); 471 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 472 return ref_outermost_composite (); 473 } finally { 474 _releaseReply ($in); 475 } 476 } 478 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 479 { 480 org.omg.CORBA.portable.InputStream $in = null; 481 try { 482 org.omg.CORBA.portable.OutputStream $out = _request ("ref_invoke_operation", true); 483 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation); 484 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value); 485 $in = _invoke ($out); 486 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 487 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in); 488 return $result; 489 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 490 $in = $ex.getInputStream (); 491 String _id = $ex.getId (); 492 if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0")) 493 throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in); 494 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 495 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 496 else 497 throw new org.omg.CORBA.MARSHAL (_id); 498 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 499 return ref_invoke_operation (requested_operation, args); 500 } finally { 501 _releaseReply ($in); 502 } 503 } 505 public String ref_mof_id () 506 { 507 org.omg.CORBA.portable.InputStream $in = null; 508 try { 509 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 510 $in = _invoke ($out); 511 String $result = $in.read_string (); 512 return $result; 513 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 514 $in = $ex.getInputStream (); 515 String _id = $ex.getId (); 516 throw new org.omg.CORBA.MARSHAL (_id); 517 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 518 return ref_mof_id (); 519 } finally { 520 _releaseReply ($in); 521 } 522 } 524 public org.omg.mof.Reflective.RefObject ref_meta_object () 525 { 526 org.omg.CORBA.portable.InputStream $in = null; 527 try { 528 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 529 $in = _invoke ($out); 530 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 531 return $result; 532 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 533 $in = $ex.getInputStream (); 534 String _id = $ex.getId (); 535 throw new org.omg.CORBA.MARSHAL (_id); 536 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 537 return ref_meta_object (); 538 } finally { 539 _releaseReply ($in); 540 } 541 } 543 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 544 { 545 org.omg.CORBA.portable.InputStream $in = null; 546 try { 547 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 548 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 549 $in = _invoke ($out); 550 boolean $result = $in.read_boolean (); 551 return $result; 552 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 553 $in = $ex.getInputStream (); 554 String _id = $ex.getId (); 555 throw new org.omg.CORBA.MARSHAL (_id); 556 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 557 return ref_itself (other_object); 558 } finally { 559 _releaseReply ($in); 560 } 561 } 563 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 564 { 565 org.omg.CORBA.portable.InputStream $in = null; 566 try { 567 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 568 $in = _invoke ($out); 569 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 570 return $result; 571 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 572 $in = $ex.getInputStream (); 573 String _id = $ex.getId (); 574 throw new org.omg.CORBA.MARSHAL (_id); 575 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 576 return ref_immediate_package (); 577 } finally { 578 _releaseReply ($in); 579 } 580 } 582 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 583 { 584 org.omg.CORBA.portable.InputStream $in = null; 585 try { 586 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 587 $in = _invoke ($out); 588 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 589 return $result; 590 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 591 $in = $ex.getInputStream (); 592 String _id = $ex.getId (); 593 throw new org.omg.CORBA.MARSHAL (_id); 594 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 595 return ref_outermost_package (); 596 } finally { 597 _releaseReply ($in); 598 } 599 } 601 public void ref_delete () throws org.omg.mof.Reflective.MofError 602 { 603 org.omg.CORBA.portable.InputStream $in = null; 604 try { 605 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 606 $in = _invoke ($out); 607 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 608 $in = $ex.getInputStream (); 609 String _id = $ex.getId (); 610 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_delete (); 616 } finally { 617 _releaseReply ($in); 618 } 619 } 621 public org.omg.mof.Model.Feature[] all_of_type_feature () 622 { 623 org.omg.CORBA.portable.InputStream $in = null; 624 try { 625 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_feature", true); 626 $in = _invoke ($out); 627 org.omg.mof.Model.Feature $result[] = org.omg.mof.Model.FeatureSetHelper.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 all_of_type_feature (); 635 } finally { 636 _releaseReply ($in); 637 } 638 } 640 private static String [] __ids = { 642 "IDL:org/omg/mof/Model/ReferenceClass:1.0", 643 "IDL:org/omg/mof/Model/StructuralFeatureClass:1.0", 644 "IDL:org/omg/mof/Model/TypedElementClass:1.0", 645 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 646 "IDL:org/omg/mof/Reflective/RefObject:1.0", 647 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0", 648 "IDL:org/omg/mof/Model/FeatureClass:1.0"}; 649 650 public String [] _ids () 651 { 652 return (String [])__ids.clone (); 653 } 654 655 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 656 { 657 String str = s.readUTF (); 658 String [] args = null; 659 java.util.Properties props = null; 660 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 661 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 662 _set_delegate (delegate); 663 } 664 665 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 666 { 667 String [] args = null; 668 java.util.Properties props = null; 669 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 670 s.writeUTF (str); 671 } 672 } | Popular Tags |