1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _AssociationEndClassStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.AssociationEndClass 14 { 15 16 public org.omg.mof.Model.AssociationEnd[] all_of_type_association_end () 17 { 18 org.omg.CORBA.portable.InputStream $in = null; 19 try { 20 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_association_end", true); 21 $in = _invoke ($out); 22 org.omg.mof.Model.AssociationEnd $result[] = org.omg.mof.Model.AssociationEndSetHelper.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_association_end (); 30 } finally { 31 _releaseReply ($in); 32 } 33 } 35 public org.omg.mof.Model.AssociationEnd[] all_of_class_association_end () 36 { 37 org.omg.CORBA.portable.InputStream $in = null; 38 try { 39 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_class_association_end", true); 40 $in = _invoke ($out); 41 org.omg.mof.Model.AssociationEnd $result[] = org.omg.mof.Model.AssociationEndSetHelper.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_association_end (); 49 } finally { 50 _releaseReply ($in); 51 } 52 } 54 public org.omg.mof.Model.AssociationEnd create_association_end (String name, String annotation, boolean is_navigable, org.omg.mof.Model.AggregationKind aggregation, 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_association_end", true); 59 $out.write_string (name); 60 $out.write_string (annotation); 61 $out.write_boolean (is_navigable); 62 org.omg.mof.Model.AggregationKindHelper.write ($out, aggregation); 63 org.omg.mof.Model.MultiplicityTypeHelper.write ($out, multiplicity); 64 $out.write_boolean (is_changeable); 65 $in = _invoke ($out); 66 org.omg.mof.Model.AssociationEnd $result = org.omg.mof.Model.AssociationEndHelper.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_association_end (name, annotation, is_navigable, aggregation, multiplicity, is_changeable); 77 } finally { 78 _releaseReply ($in); 79 } 80 } 82 public org.omg.mof.Model.TypedElement[] all_of_type_typed_element () 83 { 84 org.omg.CORBA.portable.InputStream $in = null; 85 try { 86 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_typed_element", true); 87 $in = _invoke ($out); 88 org.omg.mof.Model.TypedElement $result[] = org.omg.mof.Model.TypedElementSetHelper.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_typed_element (); 96 } finally { 97 _releaseReply ($in); 98 } 99 } 101 public org.omg.mof.Model.ModelElement[] all_of_type_model_element () 102 { 103 org.omg.CORBA.portable.InputStream $in = null; 104 try { 105 org.omg.CORBA.portable.OutputStream $out = _request ("_get_all_of_type_model_element", true); 106 $in = _invoke ($out); 107 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementSetHelper.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_model_element (); 115 } finally { 116 _releaseReply ($in); 117 } 118 } 120 public boolean ref_is_instance_of (org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes) 121 { 122 org.omg.CORBA.portable.InputStream $in = null; 123 try { 124 org.omg.CORBA.portable.OutputStream $out = _request ("ref_is_instance_of", true); 125 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, some_class); 126 $out.write_boolean (consider_subtypes); 127 $in = _invoke ($out); 128 boolean $result = $in.read_boolean (); 129 return $result; 130 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 131 $in = $ex.getInputStream (); 132 String _id = $ex.getId (); 133 throw new org.omg.CORBA.MARSHAL (_id); 134 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 135 return ref_is_instance_of (some_class, consider_subtypes); 136 } finally { 137 _releaseReply ($in); 138 } 139 } 141 public org.omg.mof.Reflective.RefObject ref_create_instance (org.omg.CORBA.Any [] args) throws org.omg.mof.Reflective.MofError 142 { 143 org.omg.CORBA.portable.InputStream $in = null; 144 try { 145 org.omg.CORBA.portable.OutputStream $out = _request ("ref_create_instance", true); 146 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args); 147 $in = _invoke ($out); 148 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 149 return $result; 150 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 151 $in = $ex.getInputStream (); 152 String _id = $ex.getId (); 153 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 154 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 155 else 156 throw new org.omg.CORBA.MARSHAL (_id); 157 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 158 return ref_create_instance (args); 159 } finally { 160 _releaseReply ($in); 161 } 162 } 164 public org.omg.mof.Reflective.RefObject[] ref_all_objects (boolean include_subtypes) 165 { 166 org.omg.CORBA.portable.InputStream $in = null; 167 try { 168 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_objects", true); 169 $out.write_boolean (include_subtypes); 170 $in = _invoke ($out); 171 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectSetHelper.read ($in); 172 return $result; 173 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 174 $in = $ex.getInputStream (); 175 String _id = $ex.getId (); 176 throw new org.omg.CORBA.MARSHAL (_id); 177 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 178 return ref_all_objects (include_subtypes); 179 } finally { 180 _releaseReply ($in); 181 } 182 } 184 public void ref_set_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_value) throws org.omg.mof.Reflective.MofError 185 { 186 org.omg.CORBA.portable.InputStream $in = null; 187 try { 188 org.omg.CORBA.portable.OutputStream $out = _request ("ref_set_value", true); 189 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 190 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_value); 191 $in = _invoke ($out); 192 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 193 $in = $ex.getInputStream (); 194 String _id = $ex.getId (); 195 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 196 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 197 else 198 throw new org.omg.CORBA.MARSHAL (_id); 199 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 200 ref_set_value (feature, new_value); 201 } finally { 202 _releaseReply ($in); 203 } 204 } 206 public org.omg.CORBA.Any ref_value (org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError 207 { 208 org.omg.CORBA.portable.InputStream $in = null; 209 try { 210 org.omg.CORBA.portable.OutputStream $out = _request ("ref_value", true); 211 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 212 $in = _invoke ($out); 213 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 214 return $result; 215 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 216 $in = $ex.getInputStream (); 217 String _id = $ex.getId (); 218 if (_id.equals ("IDL:org/omg/mof/Reflective/NotSet:1.0")) 219 throw org.omg.mof.Reflective.NotSetHelper.read ($in); 220 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 221 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 222 else 223 throw new org.omg.CORBA.MARSHAL (_id); 224 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 225 return ref_value (feature); 226 } finally { 227 _releaseReply ($in); 228 } 229 } 231 public void ref_unset_value () throws org.omg.mof.Reflective.MofError 232 { 233 org.omg.CORBA.portable.InputStream $in = null; 234 try { 235 org.omg.CORBA.portable.OutputStream $out = _request ("ref_unset_value", true); 236 $in = _invoke ($out); 237 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 238 $in = $ex.getInputStream (); 239 String _id = $ex.getId (); 240 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 241 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 242 else 243 throw new org.omg.CORBA.MARSHAL (_id); 244 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 245 ref_unset_value (); 246 } finally { 247 _releaseReply ($in); 248 } 249 } 251 public void ref_add_value (org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError 252 { 253 org.omg.CORBA.portable.InputStream $in = null; 254 try { 255 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value", true); 256 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 257 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 258 $in = _invoke ($out); 259 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 260 $in = $ex.getInputStream (); 261 String _id = $ex.getId (); 262 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 263 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 264 else 265 throw new org.omg.CORBA.MARSHAL (_id); 266 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 267 ref_add_value (feature, new_element); 268 } finally { 269 _releaseReply ($in); 270 } 271 } 273 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 274 { 275 org.omg.CORBA.portable.InputStream $in = null; 276 try { 277 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_before", true); 278 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 279 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 280 org.omg.mof.Reflective._ValueTypeHelper.write ($out, before_element); 281 $in = _invoke ($out); 282 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 283 $in = $ex.getInputStream (); 284 String _id = $ex.getId (); 285 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 286 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 287 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 288 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 289 else 290 throw new org.omg.CORBA.MARSHAL (_id); 291 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 292 ref_add_value_before (feature, new_element, before_element); 293 } finally { 294 _releaseReply ($in); 295 } 296 } 298 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 299 { 300 org.omg.CORBA.portable.InputStream $in = null; 301 try { 302 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_value_at", true); 303 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 304 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 305 $out.write_ulong (position); 306 $in = _invoke ($out); 307 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 308 $in = $ex.getInputStream (); 309 String _id = $ex.getId (); 310 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 311 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 312 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 313 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 314 else 315 throw new org.omg.CORBA.MARSHAL (_id); 316 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 317 ref_add_value_at (feature, new_element, position); 318 } finally { 319 _releaseReply ($in); 320 } 321 } 323 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 324 { 325 org.omg.CORBA.portable.InputStream $in = null; 326 try { 327 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value", true); 328 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 329 org.omg.mof.Reflective._ValueTypeHelper.write ($out, old_element); 330 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 331 $in = _invoke ($out); 332 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 333 $in = $ex.getInputStream (); 334 String _id = $ex.getId (); 335 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 336 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 337 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 338 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 339 else 340 throw new org.omg.CORBA.MARSHAL (_id); 341 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 342 ref_modify_value (feature, old_element, new_element); 343 } finally { 344 _releaseReply ($in); 345 } 346 } 348 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 349 { 350 org.omg.CORBA.portable.InputStream $in = null; 351 try { 352 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_value_at", true); 353 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 354 org.omg.mof.Reflective._ValueTypeHelper.write ($out, new_element); 355 $out.write_ulong (position); 356 $in = _invoke ($out); 357 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 358 $in = $ex.getInputStream (); 359 String _id = $ex.getId (); 360 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 361 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 362 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 363 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 364 else 365 throw new org.omg.CORBA.MARSHAL (_id); 366 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 367 ref_modify_value_at (feature, new_element, position); 368 } finally { 369 _releaseReply ($in); 370 } 371 } 373 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 374 { 375 org.omg.CORBA.portable.InputStream $in = null; 376 try { 377 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value", true); 378 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 379 org.omg.mof.Reflective._ValueTypeHelper.write ($out, existing_element); 380 $in = _invoke ($out); 381 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 382 $in = $ex.getInputStream (); 383 String _id = $ex.getId (); 384 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 385 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 386 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 387 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 388 else 389 throw new org.omg.CORBA.MARSHAL (_id); 390 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 391 ref_remove_value (feature, existing_element); 392 } finally { 393 _releaseReply ($in); 394 } 395 } 397 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 398 { 399 org.omg.CORBA.portable.InputStream $in = null; 400 try { 401 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_value_at", true); 402 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, feature); 403 $out.write_ulong (position); 404 $in = _invoke ($out); 405 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 406 $in = $ex.getInputStream (); 407 String _id = $ex.getId (); 408 if (_id.equals ("IDL:org/omg/mof/Reflective/BadPosition:1.0")) 409 throw org.omg.mof.Reflective.BadPositionHelper.read ($in); 410 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 411 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 412 else 413 throw new org.omg.CORBA.MARSHAL (_id); 414 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 415 ref_remove_value_at (feature, position); 416 } finally { 417 _releaseReply ($in); 418 } 419 } 421 public org.omg.mof.Reflective.RefObject ref_immediate_composite () 422 { 423 org.omg.CORBA.portable.InputStream $in = null; 424 try { 425 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_composite", true); 426 $in = _invoke ($out); 427 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 428 return $result; 429 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 430 $in = $ex.getInputStream (); 431 String _id = $ex.getId (); 432 throw new org.omg.CORBA.MARSHAL (_id); 433 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 434 return ref_immediate_composite (); 435 } finally { 436 _releaseReply ($in); 437 } 438 } 440 public org.omg.mof.Reflective.RefObject ref_outermost_composite () 441 { 442 org.omg.CORBA.portable.InputStream $in = null; 443 try { 444 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_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_outermost_composite (); 454 } finally { 455 _releaseReply ($in); 456 } 457 } 459 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 460 { 461 org.omg.CORBA.portable.InputStream $in = null; 462 try { 463 org.omg.CORBA.portable.OutputStream $out = _request ("ref_invoke_operation", true); 464 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, requested_operation); 465 org.omg.mof.Reflective.ValueTypeListHelper.write ($out, args.value); 466 $in = _invoke ($out); 467 org.omg.CORBA.Any $result = org.omg.mof.Reflective._ValueTypeHelper.read ($in); 468 args.value = org.omg.mof.Reflective.ValueTypeListHelper.read ($in); 469 return $result; 470 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 471 $in = $ex.getInputStream (); 472 String _id = $ex.getId (); 473 if (_id.equals ("IDL:org/omg/mof/Reflective/OtherException:1.0")) 474 throw org.omg.mof.Reflective.OtherExceptionHelper.read ($in); 475 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 476 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 477 else 478 throw new org.omg.CORBA.MARSHAL (_id); 479 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 480 return ref_invoke_operation (requested_operation, args); 481 } finally { 482 _releaseReply ($in); 483 } 484 } 486 public String ref_mof_id () 487 { 488 org.omg.CORBA.portable.InputStream $in = null; 489 try { 490 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 491 $in = _invoke ($out); 492 String $result = $in.read_string (); 493 return $result; 494 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 495 $in = $ex.getInputStream (); 496 String _id = $ex.getId (); 497 throw new org.omg.CORBA.MARSHAL (_id); 498 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 499 return ref_mof_id (); 500 } finally { 501 _releaseReply ($in); 502 } 503 } 505 public org.omg.mof.Reflective.RefObject ref_meta_object () 506 { 507 org.omg.CORBA.portable.InputStream $in = null; 508 try { 509 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 510 $in = _invoke ($out); 511 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 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_meta_object (); 519 } finally { 520 _releaseReply ($in); 521 } 522 } 524 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 525 { 526 org.omg.CORBA.portable.InputStream $in = null; 527 try { 528 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 529 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 530 $in = _invoke ($out); 531 boolean $result = $in.read_boolean (); 532 return $result; 533 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 534 $in = $ex.getInputStream (); 535 String _id = $ex.getId (); 536 throw new org.omg.CORBA.MARSHAL (_id); 537 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 538 return ref_itself (other_object); 539 } finally { 540 _releaseReply ($in); 541 } 542 } 544 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 545 { 546 org.omg.CORBA.portable.InputStream $in = null; 547 try { 548 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 549 $in = _invoke ($out); 550 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 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_immediate_package (); 558 } finally { 559 _releaseReply ($in); 560 } 561 } 563 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 564 { 565 org.omg.CORBA.portable.InputStream $in = null; 566 try { 567 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_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_outermost_package (); 577 } finally { 578 _releaseReply ($in); 579 } 580 } 582 public void ref_delete () throws org.omg.mof.Reflective.MofError 583 { 584 org.omg.CORBA.portable.InputStream $in = null; 585 try { 586 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 587 $in = _invoke ($out); 588 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 589 $in = $ex.getInputStream (); 590 String _id = $ex.getId (); 591 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 592 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 593 else 594 throw new org.omg.CORBA.MARSHAL (_id); 595 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 596 ref_delete (); 597 } finally { 598 _releaseReply ($in); 599 } 600 } 602 private static String [] __ids = { 604 "IDL:org/omg/mof/Model/AssociationEndClass:1.0", 605 "IDL:org/omg/mof/Model/TypedElementClass:1.0", 606 "IDL:org/omg/mof/Model/ModelElementClass:1.0", 607 "IDL:org/omg/mof/Reflective/RefObject:1.0", 608 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 609 610 public String [] _ids () 611 { 612 return (String [])__ids.clone (); 613 } 614 615 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 616 { 617 String str = s.readUTF (); 618 String [] args = null; 619 java.util.Properties props = null; 620 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 621 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 622 _set_delegate (delegate); 623 } 624 625 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 626 { 627 String [] args = null; 628 java.util.Properties props = null; 629 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 630 s.writeUTF (str); 631 } 632 } | Popular Tags |