1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _ImportClassStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.ImportClass 14 { 15 16 public org.omg.mof.Model.Import[] all_of_type_import () 17 { 18 org.omg.CORBA.portable.InputStream $in = null; 19 try { 20 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_import", true); 21 $in = _invoke ($out); 22 org.omg.mof.Model.Import $result[] = org.omg.mof.Model.ImportSetHelper.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_import (); 30 } finally { 31 _releaseReply ($in); 32 } 33 } 35 public org.omg.mof.Model.Import[] all_of_class_import () 36 { 37 org.omg.CORBA.portable.InputStream $in = null; 38 try { 39 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_class_import", true); 40 $in = _invoke ($out); 41 org.omg.mof.Model.Import $result[] = org.omg.mof.Model.ImportSetHelper.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_import (); 49 } finally { 50 _releaseReply ($in); 51 } 52 } 54 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 55 { 56 org.omg.CORBA.portable.InputStream $in = null; 57 try { 58 org.omg.CORBA.portable.OutputStream $out = _request ("create_import", true); 59 $out.write_string (name); 60 $out.write_string (annotation); 61 org.omg.mof.Model.VisibilityKindHelper.write ($out, visibility); 62 $out.write_boolean (is_clustered); 63 $in = _invoke ($out); 64 org.omg.mof.Model.Import $result = org.omg.mof.Model.ImportHelper.read ($in); 65 return $result; 66 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 67 $in = $ex.getInputStream (); 68 String _id = $ex.getId (); 69 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 70 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 71 else 72 throw new org.omg.CORBA.MARSHAL (_id); 73 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 74 return create_import (name, annotation, visibility, is_clustered); 75 } finally { 76 _releaseReply ($in); 77 } 78 } 80 public org.omg.mof.Model.ModelElement[] all_of_type_model_element () 81 { 82 org.omg.CORBA.portable.InputStream $in = null; 83 try { 84 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_model_element", true); 85 $in = _invoke ($out); 86 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.read ($in); 87 return $result; 88 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 89 $in = $ex.getInputStream (); 90 String _id = $ex.getId (); 91 throw new org.omg.CORBA.MARSHAL (_id); 92 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 93 return all_of_type_model_element (); 94 } finally { 95 _releaseReply ($in); 96 } 97 } 99 public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes) 100 { 101 org.omg.CORBA.portable.InputStream $in = null; 102 try { 103 org.omg.CORBA.portable.OutputStream $out = _request ("ref_is_instance_of", true); 104 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class); 105 $out.write_boolean (consider_subtypes); 106 $in = _invoke ($out); 107 boolean $result = $in.read_boolean (); 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 ref_is_instance_of (some_class, consider_subtypes); 115 } finally { 116 _releaseReply ($in); 117 } 118 } 120 public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any [] args) throws org.omg.mof.Reflective.MofError 121 { 122 org.omg.CORBA.portable.InputStream $in = null; 123 try { 124 org.omg.CORBA.portable.OutputStream $out = _request ("ref_create_instance", true); 125 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args); 126 $in = _invoke ($out); 127 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 128 return $result; 129 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 130 $in = $ex.getInputStream (); 131 String _id = $ex.getId (); 132 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 133 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 134 else 135 throw new org.omg.CORBA.MARSHAL (_id); 136 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 137 return ref_create_instance (args); 138 } finally { 139 _releaseReply ($in); 140 } 141 } 143 public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes) 144 { 145 org.omg.CORBA.portable.InputStream $in = null; 146 try { 147 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_objects", true); 148 $out.write_boolean (include_subtypes); 149 $in = _invoke ($out); 150 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in); 151 return $result; 152 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 153 $in = $ex.getInputStream (); 154 String _id = $ex.getId (); 155 throw new org.omg.CORBA.MARSHAL (_id); 156 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 157 return ref_all_objects (include_subtypes); 158 } finally { 159 _releaseReply ($in); 160 } 161 } 163 public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_value) throws org.omg.mof.Reflective.MofError 164 { 165 org.omg.CORBA.portable.InputStream $in = null; 166 try { 167 org.omg.CORBA.portable.OutputStream $out = _request ("ref_set_value", true); 168 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 169 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value); 170 $in = _invoke ($out); 171 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 172 $in = $ex.getInputStream (); 173 String _id = $ex.getId (); 174 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 175 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 176 else 177 throw new org.omg.CORBA.MARSHAL (_id); 178 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 179 ref_set_value (feature, new_value); 180 } finally { 181 _releaseReply ($in); 182 } 183 } 185 public org.omg.CORBA.Any ref_value (org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 186 { 187 org.omg.CORBA.portable.InputStream $in = null; 188 try { 189 org.omg.CORBA.portable.OutputStream $out = _request ("ref_value", true); 190 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 191 $in = _invoke ($out); 192 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 193 return $result; 194 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 195 $in = $ex.getInputStream (); 196 String _id = $ex.getId (); 197 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 198 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 199 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 200 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 201 else 202 throw new org.omg.CORBA.MARSHAL (_id); 203 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 204 return ref_value (feature); 205 } finally { 206 _releaseReply ($in); 207 } 208 } 210 public void ref_unset_value () throws org.omg.mof.Reflective.MofError 211 { 212 org.omg.CORBA.portable.InputStream $in = null; 213 try { 214 org.omg.CORBA.portable.OutputStream $out = _request ("ref_unset_value", true); 215 $in = _invoke ($out); 216 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 217 $in = $ex.getInputStream (); 218 String _id = $ex.getId (); 219 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 220 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 221 else 222 throw new org.omg.CORBA.MARSHAL (_id); 223 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 224 ref_unset_value (); 225 } finally { 226 _releaseReply ($in); 227 } 228 } 230 public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError 231 { 232 org.omg.CORBA.portable.InputStream $in = null; 233 try { 234 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value", true); 235 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 236 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 237 $in = _invoke ($out); 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 ref_add_value (feature, new_element); 247 } finally { 248 _releaseReply ($in); 249 } 250 } 252 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 253 { 254 org.omg.CORBA.portable.InputStream $in = null; 255 try { 256 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_before", true); 257 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 258 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 259 org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element); 260 $in = _invoke ($out); 261 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 262 $in = $ex.getInputStream (); 263 String _id = $ex.getId (); 264 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 265 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 266 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 267 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 268 else 269 throw new org.omg.CORBA.MARSHAL (_id); 270 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 271 ref_add_value_before (feature, new_element, before_element); 272 } finally { 273 _releaseReply ($in); 274 } 275 } 277 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 278 { 279 org.omg.CORBA.portable.InputStream $in = null; 280 try { 281 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_at", true); 282 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 283 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 284 $out.write_ulong (position); 285 $in = _invoke ($out); 286 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 287 $in = $ex.getInputStream (); 288 String _id = $ex.getId (); 289 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 290 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 291 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 292 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 293 else 294 throw new org.omg.CORBA.MARSHAL (_id); 295 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 296 ref_add_value_at (feature, new_element, position); 297 } finally { 298 _releaseReply ($in); 299 } 300 } 302 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 303 { 304 org.omg.CORBA.portable.InputStream $in = null; 305 try { 306 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value", true); 307 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 308 org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element); 309 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 310 $in = _invoke ($out); 311 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 312 $in = $ex.getInputStream (); 313 String _id = $ex.getId (); 314 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 315 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 316 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 317 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 318 else 319 throw new org.omg.CORBA.MARSHAL (_id); 320 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 321 ref_modify_value (feature, old_element, new_element); 322 } finally { 323 _releaseReply ($in); 324 } 325 } 327 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 328 { 329 org.omg.CORBA.portable.InputStream $in = null; 330 try { 331 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value_at", true); 332 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 333 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 334 $out.write_ulong (position); 335 $in = _invoke ($out); 336 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 337 $in = $ex.getInputStream (); 338 String _id = $ex.getId (); 339 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 340 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 341 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 342 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 343 else 344 throw new org.omg.CORBA.MARSHAL (_id); 345 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 346 ref_modify_value_at (feature, new_element, position); 347 } finally { 348 _releaseReply ($in); 349 } 350 } 352 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 353 { 354 org.omg.CORBA.portable.InputStream $in = null; 355 try { 356 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value", true); 357 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 358 org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element); 359 $in = _invoke ($out); 360 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 361 $in = $ex.getInputStream (); 362 String _id = $ex.getId (); 363 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 364 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 365 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 366 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 367 else 368 throw new org.omg.CORBA.MARSHAL (_id); 369 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 370 ref_remove_value (feature, existing_element); 371 } finally { 372 _releaseReply ($in); 373 } 374 } 376 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 377 { 378 org.omg.CORBA.portable.InputStream $in = null; 379 try { 380 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value_at", true); 381 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 382 $out.write_ulong (position); 383 $in = _invoke ($out); 384 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 385 $in = $ex.getInputStream (); 386 String _id = $ex.getId (); 387 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 388 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 389 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 390 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 391 else 392 throw new org.omg.CORBA.MARSHAL (_id); 393 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 394 ref_remove_value_at (feature, position); 395 } finally { 396 _releaseReply ($in); 397 } 398 } 400 public org.omg.mof.Reflective.RefObject ref_immediate_composite () 401 { 402 org.omg.CORBA.portable.InputStream $in = null; 403 try { 404 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_composite", true); 405 $in = _invoke ($out); 406 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 407 return $result; 408 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 409 $in = $ex.getInputStream (); 410 String _id = $ex.getId (); 411 throw new org.omg.CORBA.MARSHAL (_id); 412 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 413 return ref_immediate_composite (); 414 } finally { 415 _releaseReply ($in); 416 } 417 } 419 public org.omg.mof.Reflective.RefObject ref_outermost_composite () 420 { 421 org.omg.CORBA.portable.InputStream $in = null; 422 try { 423 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_composite", true); 424 $in = _invoke ($out); 425 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 426 return $result; 427 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 428 $in = $ex.getInputStream (); 429 String _id = $ex.getId (); 430 throw new org.omg.CORBA.MARSHAL (_id); 431 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 432 return ref_outermost_composite (); 433 } finally { 434 _releaseReply ($in); 435 } 436 } 438 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 439 { 440 org.omg.CORBA.portable.InputStream $in = null; 441 try { 442 org.omg.CORBA.portable.OutputStream $out = _request ("ref_invoke_operation", true); 443 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation); 444 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value); 445 $in = _invoke ($out); 446 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 447 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in); 448 return $result; 449 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 450 $in = $ex.getInputStream (); 451 String _id = $ex.getId (); 452 if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0")) 453 throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in); 454 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 455 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 456 else 457 throw new org.omg.CORBA.MARSHAL (_id); 458 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 459 return ref_invoke_operation (requested_operation, args); 460 } finally { 461 _releaseReply ($in); 462 } 463 } 465 public String ref_mof_id () 466 { 467 org.omg.CORBA.portable.InputStream $in = null; 468 try { 469 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 470 $in = _invoke ($out); 471 String $result = $in.read_string (); 472 return $result; 473 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 474 $in = $ex.getInputStream (); 475 String _id = $ex.getId (); 476 throw new org.omg.CORBA.MARSHAL (_id); 477 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 478 return ref_mof_id (); 479 } finally { 480 _releaseReply ($in); 481 } 482 } 484 public org.omg.mof.Reflective.RefObject ref_meta_object () 485 { 486 org.omg.CORBA.portable.InputStream $in = null; 487 try { 488 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 489 $in = _invoke ($out); 490 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 491 return $result; 492 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 493 $in = $ex.getInputStream (); 494 String _id = $ex.getId (); 495 throw new org.omg.CORBA.MARSHAL (_id); 496 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 497 return ref_meta_object (); 498 } finally { 499 _releaseReply ($in); 500 } 501 } 503 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 504 { 505 org.omg.CORBA.portable.InputStream $in = null; 506 try { 507 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 508 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 509 $in = _invoke ($out); 510 boolean $result = $in.read_boolean (); 511 return $result; 512 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 513 $in = $ex.getInputStream (); 514 String _id = $ex.getId (); 515 throw new org.omg.CORBA.MARSHAL (_id); 516 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 517 return ref_itself (other_object); 518 } finally { 519 _releaseReply ($in); 520 } 521 } 523 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 524 { 525 org.omg.CORBA.portable.InputStream $in = null; 526 try { 527 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 528 $in = _invoke ($out); 529 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 530 return $result; 531 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 532 $in = $ex.getInputStream (); 533 String _id = $ex.getId (); 534 throw new org.omg.CORBA.MARSHAL (_id); 535 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 536 return ref_immediate_package (); 537 } finally { 538 _releaseReply ($in); 539 } 540 } 542 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 543 { 544 org.omg.CORBA.portable.InputStream $in = null; 545 try { 546 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 547 $in = _invoke ($out); 548 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 549 return $result; 550 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 551 $in = $ex.getInputStream (); 552 String _id = $ex.getId (); 553 throw new org.omg.CORBA.MARSHAL (_id); 554 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 555 return ref_outermost_package (); 556 } finally { 557 _releaseReply ($in); 558 } 559 } 561 public void ref_delete () throws org.omg.mof.Reflective.MofError 562 { 563 org.omg.CORBA.portable.InputStream $in = null; 564 try { 565 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 566 $in = _invoke ($out); 567 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 568 $in = $ex.getInputStream (); 569 String _id = $ex.getId (); 570 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 571 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 572 else 573 throw new org.omg.CORBA.MARSHAL (_id); 574 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 575 ref_delete (); 576 } finally { 577 _releaseReply ($in); 578 } 579 } 581 private static String [] __ids = { 583 "IDL:org/omg/mof/Model/ImportClass:1.0", 584 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 585 "IDL:org/omg/mof/Reflective/RefObject:1.0", 586 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 587 588 public String [] _ids () 589 { 590 return (String [])__ids.clone (); 591 } 592 593 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 594 { 595 String str = s.readUTF (); 596 String [] args = null; 597 java.util.Properties props = null; 598 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 599 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 600 _set_delegate (delegate); 601 } 602 603 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 604 { 605 String [] args = null; 606 java.util.Properties props = null; 607 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 608 s.writeUTF (str); 609 } 610 } | Popular Tags |