1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _RefersToStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.RefersTo 14 { 15 16 public org.omg.mof.Model.RefersToLink[] all_refers_to_Links () throws org.omg.mof.Reflective.MofError 17 { 18 org.omg.CORBA.portable.InputStream $in = null; 19 try { 20 org.omg.CORBA.portable.OutputStream $out = _request ("all_refers_to_Links", true); 21 $in = _invoke ($out); 22 org.omg.mof.Model.RefersToLink $result[] = org.omg.mof.Model.RefersToLinkSetHelper.read ($in); 23 return $result; 24 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 25 $in = $ex.getInputStream (); 26 String _id = $ex.getId (); 27 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 28 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 29 else 30 throw new org.omg.CORBA.MARSHAL (_id); 31 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 32 return all_refers_to_Links (); 33 } finally { 34 _releaseReply ($in); 35 } 36 } 38 public boolean exists (org.omg.mof.Model.AssociationEnd referent, org.omg.mof.Model.Reference referenced_end) throws org.omg.mof.Reflective.MofError 39 { 40 org.omg.CORBA.portable.InputStream $in = null; 41 try { 42 org.omg.CORBA.portable.OutputStream $out = _request ("exists", true); 43 org.omg.mof.Model.AssociationEndHelper.write ($out, referent); 44 org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end); 45 $in = _invoke ($out); 46 boolean $result = $in.read_boolean (); 47 return $result; 48 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 49 $in = $ex.getInputStream (); 50 String _id = $ex.getId (); 51 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 52 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 53 else 54 throw new org.omg.CORBA.MARSHAL (_id); 55 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 56 return exists (referent, referenced_end); 57 } finally { 58 _releaseReply ($in); 59 } 60 } 62 public org.omg.mof.Model.AssociationEnd[] referent (org.omg.mof.Model.Reference referenced_end) throws org.omg.mof.Reflective.MofError 63 { 64 org.omg.CORBA.portable.InputStream $in = null; 65 try { 66 org.omg.CORBA.portable.OutputStream $out = _request ("referent", true); 67 org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end); 68 $in = _invoke ($out); 69 org.omg.mof.Model.AssociationEnd $result[] = org.omg.mof.Model.AssociationEndBagHelper.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 referent (referenced_end); 80 } finally { 81 _releaseReply ($in); 82 } 83 } 85 public org.omg.mof.Model.Reference referenced_end (org.omg.mof.Model.AssociationEnd referent) 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 ("referenced_end", true); 90 org.omg.mof.Model.AssociationEndHelper.write ($out, referent); 91 $in = _invoke ($out); 92 org.omg.mof.Model.Reference $result = org.omg.mof.Model.ReferenceHelper.read ($in); 93 return $result; 94 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 95 $in = $ex.getInputStream (); 96 String _id = $ex.getId (); 97 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 98 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 99 else 100 throw new org.omg.CORBA.MARSHAL (_id); 101 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 102 return referenced_end (referent); 103 } finally { 104 _releaseReply ($in); 105 } 106 } 108 public void add (org.omg.mof.Model.AssociationEnd referent, org.omg.mof.Model.Reference referenced_end) throws org.omg.mof.Reflective.MofError 109 { 110 org.omg.CORBA.portable.InputStream $in = null; 111 try { 112 org.omg.CORBA.portable.OutputStream $out = _request ("add", true); 113 org.omg.mof.Model.AssociationEndHelper.write ($out, referent); 114 org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end); 115 $in = _invoke ($out); 116 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 117 $in = $ex.getInputStream (); 118 String _id = $ex.getId (); 119 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 120 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 121 else 122 throw new org.omg.CORBA.MARSHAL (_id); 123 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 124 add (referent, referenced_end); 125 } finally { 126 _releaseReply ($in); 127 } 128 } 130 public void modify_referent (org.omg.mof.Model.AssociationEnd referent, org.omg.mof.Model.Reference referenced_end, org.omg.mof.Model.AssociationEnd new_referent) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 131 { 132 org.omg.CORBA.portable.InputStream $in = null; 133 try { 134 org.omg.CORBA.portable.OutputStream $out = _request ("modify_referent", true); 135 org.omg.mof.Model.AssociationEndHelper.write ($out, referent); 136 org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end); 137 org.omg.mof.Model.AssociationEndHelper.write ($out, new_referent); 138 $in = _invoke ($out); 139 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 140 $in = $ex.getInputStream (); 141 String _id = $ex.getId (); 142 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 143 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 144 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 145 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 146 else 147 throw new org.omg.CORBA.MARSHAL (_id); 148 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 149 modify_referent (referent, referenced_end, new_referent); 150 } finally { 151 _releaseReply ($in); 152 } 153 } 155 public void modify_referenced_end (org.omg.mof.Model.AssociationEnd referent, org.omg.mof.Model.Reference referenced_end, org.omg.mof.Model.Reference new_referenced_end) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 156 { 157 org.omg.CORBA.portable.InputStream $in = null; 158 try { 159 org.omg.CORBA.portable.OutputStream $out = _request ("modify_referenced_end", true); 160 org.omg.mof.Model.AssociationEndHelper.write ($out, referent); 161 org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end); 162 org.omg.mof.Model.ReferenceHelper.write ($out, new_referenced_end); 163 $in = _invoke ($out); 164 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 165 $in = $ex.getInputStream (); 166 String _id = $ex.getId (); 167 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 168 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 169 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 170 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 171 else 172 throw new org.omg.CORBA.MARSHAL (_id); 173 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 174 modify_referenced_end (referent, referenced_end, new_referenced_end); 175 } finally { 176 _releaseReply ($in); 177 } 178 } 180 public void remove (org.omg.mof.Model.AssociationEnd referent, org.omg.mof.Model.Reference referenced_end) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 181 { 182 org.omg.CORBA.portable.InputStream $in = null; 183 try { 184 org.omg.CORBA.portable.OutputStream $out = _request ("remove", true); 185 org.omg.mof.Model.AssociationEndHelper.write ($out, referent); 186 org.omg.mof.Model.ReferenceHelper.write ($out, referenced_end); 187 $in = _invoke ($out); 188 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 189 $in = $ex.getInputStream (); 190 String _id = $ex.getId (); 191 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 192 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 193 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 194 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 195 else 196 throw new org.omg.CORBA.MARSHAL (_id); 197 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 198 remove (referent, referenced_end); 199 } finally { 200 _releaseReply ($in); 201 } 202 } 204 public org.omg.mof.Reflective.RefObject[][] ref_all_links () 205 { 206 org.omg.CORBA.portable.InputStream $in = null; 207 try { 208 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_links", true); 209 $in = _invoke ($out); 210 org.omg.mof.Reflective.RefObject $result[][] = org.omg.mof.Reflective.LinkSetHelper.read ($in); 211 return $result; 212 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 213 $in = $ex.getInputStream (); 214 String _id = $ex.getId (); 215 throw new org.omg.CORBA.MARSHAL (_id); 216 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 217 return ref_all_links (); 218 } finally { 219 _releaseReply ($in); 220 } 221 } 223 public boolean ref_link_exists (org.omg.mof.Reflective.RefObject[] some_link) throws org.omg.mof.Reflective.MofError 224 { 225 org.omg.CORBA.portable.InputStream $in = null; 226 try { 227 org.omg.CORBA.portable.OutputStream $out = _request ("ref_link_exists", true); 228 org.omg.mof.Reflective.LinkHelper.write ($out, some_link); 229 $in = _invoke ($out); 230 boolean $result = $in.read_boolean (); 231 return $result; 232 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 233 $in = $ex.getInputStream (); 234 String _id = $ex.getId (); 235 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 236 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 237 else 238 throw new org.omg.CORBA.MARSHAL (_id); 239 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 240 return ref_link_exists (some_link); 241 } finally { 242 _releaseReply ($in); 243 } 244 } 246 public org.omg.mof.Reflective.RefObject[] ref_query (org.omg.mof.Reflective.RefObject query_end, org.omg.mof.Reflective.RefObject query_object) throws org.omg.mof.Reflective.MofError 247 { 248 org.omg.CORBA.portable.InputStream $in = null; 249 try { 250 org.omg.CORBA.portable.OutputStream $out = _request ("ref_query", true); 251 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, query_end); 252 org.omg.mof.Reflective.RefObjectHelper.write ($out, query_object); 253 $in = _invoke ($out); 254 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectUListHelper.read ($in); 255 return $result; 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 return ref_query (query_end, query_object); 265 } finally { 266 _releaseReply ($in); 267 } 268 } 270 public void ref_add_link (org.omg.mof.Reflective.RefObject[] new_link) 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_link", true); 275 org.omg.mof.Reflective.LinkHelper.write ($out, new_link); 276 $in = _invoke ($out); 277 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 278 $in = $ex.getInputStream (); 279 String _id = $ex.getId (); 280 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 281 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 282 else 283 throw new org.omg.CORBA.MARSHAL (_id); 284 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 285 ref_add_link (new_link); 286 } finally { 287 _releaseReply ($in); 288 } 289 } 291 public void ref_add_link_before (org.omg.mof.Reflective.RefObject[] new_link, org.omg.mof.Reflective.RefObject position_end, org.omg.mof.Reflective.RefObject before) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 292 { 293 org.omg.CORBA.portable.InputStream $in = null; 294 try { 295 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_link_before", true); 296 org.omg.mof.Reflective.LinkHelper.write ($out, new_link); 297 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, position_end); 298 org.omg.mof.Reflective.RefObjectHelper.write ($out, before); 299 $in = _invoke ($out); 300 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 301 $in = $ex.getInputStream (); 302 String _id = $ex.getId (); 303 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 304 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 305 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 306 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 307 else 308 throw new org.omg.CORBA.MARSHAL (_id); 309 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 310 ref_add_link_before (new_link, position_end, before); 311 } finally { 312 _releaseReply ($in); 313 } 314 } 316 public void ref_modify_link (org.omg.mof.Reflective.RefObject[] old_link, org.omg.mof.Reflective.RefObject position_end, org.omg.mof.Reflective.RefObject new_object) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 317 { 318 org.omg.CORBA.portable.InputStream $in = null; 319 try { 320 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_link", true); 321 org.omg.mof.Reflective.LinkHelper.write ($out, old_link); 322 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, position_end); 323 org.omg.mof.Reflective.RefObjectHelper.write ($out, new_object); 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/NotFound:1.0")) 329 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 330 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 331 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 332 else 333 throw new org.omg.CORBA.MARSHAL (_id); 334 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 335 ref_modify_link (old_link, position_end, new_object); 336 } finally { 337 _releaseReply ($in); 338 } 339 } 341 public void ref_remove_link (org.omg.mof.Reflective.RefObject[] old_link) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 342 { 343 org.omg.CORBA.portable.InputStream $in = null; 344 try { 345 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_link", true); 346 org.omg.mof.Reflective.LinkHelper.write ($out, old_link); 347 $in = _invoke ($out); 348 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 349 $in = $ex.getInputStream (); 350 String _id = $ex.getId (); 351 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 352 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 353 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 354 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 355 else 356 throw new org.omg.CORBA.MARSHAL (_id); 357 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 358 ref_remove_link (old_link); 359 } finally { 360 _releaseReply ($in); 361 } 362 } 364 public String ref_mof_id () 365 { 366 org.omg.CORBA.portable.InputStream $in = null; 367 try { 368 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 369 $in = _invoke ($out); 370 String $result = $in.read_string (); 371 return $result; 372 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 373 $in = $ex.getInputStream (); 374 String _id = $ex.getId (); 375 throw new org.omg.CORBA.MARSHAL (_id); 376 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 377 return ref_mof_id (); 378 } finally { 379 _releaseReply ($in); 380 } 381 } 383 public org.omg.mof.Reflective.RefObject ref_meta_object () 384 { 385 org.omg.CORBA.portable.InputStream $in = null; 386 try { 387 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 388 $in = _invoke ($out); 389 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 390 return $result; 391 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 392 $in = $ex.getInputStream (); 393 String _id = $ex.getId (); 394 throw new org.omg.CORBA.MARSHAL (_id); 395 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 396 return ref_meta_object (); 397 } finally { 398 _releaseReply ($in); 399 } 400 } 402 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 403 { 404 org.omg.CORBA.portable.InputStream $in = null; 405 try { 406 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 407 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 408 $in = _invoke ($out); 409 boolean $result = $in.read_boolean (); 410 return $result; 411 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 412 $in = $ex.getInputStream (); 413 String _id = $ex.getId (); 414 throw new org.omg.CORBA.MARSHAL (_id); 415 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 416 return ref_itself (other_object); 417 } finally { 418 _releaseReply ($in); 419 } 420 } 422 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 423 { 424 org.omg.CORBA.portable.InputStream $in = null; 425 try { 426 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 427 $in = _invoke ($out); 428 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 429 return $result; 430 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 431 $in = $ex.getInputStream (); 432 String _id = $ex.getId (); 433 throw new org.omg.CORBA.MARSHAL (_id); 434 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 435 return ref_immediate_package (); 436 } finally { 437 _releaseReply ($in); 438 } 439 } 441 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 442 { 443 org.omg.CORBA.portable.InputStream $in = null; 444 try { 445 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 446 $in = _invoke ($out); 447 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 448 return $result; 449 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 450 $in = $ex.getInputStream (); 451 String _id = $ex.getId (); 452 throw new org.omg.CORBA.MARSHAL (_id); 453 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 454 return ref_outermost_package (); 455 } finally { 456 _releaseReply ($in); 457 } 458 } 460 public void ref_delete () throws org.omg.mof.Reflective.MofError 461 { 462 org.omg.CORBA.portable.InputStream $in = null; 463 try { 464 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 465 $in = _invoke ($out); 466 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 467 $in = $ex.getInputStream (); 468 String _id = $ex.getId (); 469 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 470 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 471 else 472 throw new org.omg.CORBA.MARSHAL (_id); 473 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 474 ref_delete (); 475 } finally { 476 _releaseReply ($in); 477 } 478 } 480 private static String [] __ids = { 482 "IDL:org/omg/mof/Model/RefersTo:1.0", 483 "IDL:org/omg/mof/Reflective/RefAssociation:1.0", 484 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 485 486 public String [] _ids () 487 { 488 return (String [])__ids.clone (); 489 } 490 491 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 492 { 493 String str = s.readUTF (); 494 String [] args = null; 495 java.util.Properties props = null; 496 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 497 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 498 _set_delegate (delegate); 499 } 500 501 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 502 { 503 String [] args = null; 504 java.util.Properties props = null; 505 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 506 s.writeUTF (str); 507 } 508 } | Popular Tags |