1 package org.omg.mof.Model; 2 3 4 10 11 12 public class _ContainsStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Model.Contains 14 { 15 16 public org.omg.mof.Model.ContainsLink[] all_contains_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_contains_Links", true); 21 $in = _invoke ($out); 22 org.omg.mof.Model.ContainsLink $result[] = org.omg.mof.Model.ContainsLinkSetHelper.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_contains_Links (); 33 } finally { 34 _releaseReply ($in); 35 } 36 } 38 public boolean exists (org.omg.mof.Model.Namespace container, org.omg.mof.Model.ModelElement contained_element) 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.NamespaceHelper.write ($out, container); 44 org.omg.mof.Model.ModelElementHelper.write ($out, contained_element); 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 (container, contained_element); 57 } finally { 58 _releaseReply ($in); 59 } 60 } 62 public org.omg.mof.Model.Namespace container (org.omg.mof.Model.ModelElement contained_element) 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 ("container", true); 67 org.omg.mof.Model.ModelElementHelper.write ($out, contained_element); 68 $in = _invoke ($out); 69 org.omg.mof.Model.Namespace $result = org.omg.mof.Model.NamespaceHelper.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 container (contained_element); 80 } finally { 81 _releaseReply ($in); 82 } 83 } 85 public org.omg.mof.Model.ModelElement[] contained_element (org.omg.mof.Model.Namespace container) 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 ("contained_element", true); 90 org.omg.mof.Model.NamespaceHelper.write ($out, container); 91 $in = _invoke ($out); 92 org.omg.mof.Model.ModelElement $result[] = org.omg.mof.Model.ModelElementListHelper.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 contained_element (container); 103 } finally { 104 _releaseReply ($in); 105 } 106 } 108 public org.omg.mof.Reflective.RefObject[][] ref_all_links () 109 { 110 org.omg.CORBA.portable.InputStream $in = null; 111 try { 112 org.omg.CORBA.portable.OutputStream $out = _request ("ref_all_links", true); 113 $in = _invoke ($out); 114 org.omg.mof.Reflective.RefObject $result[][] = org.omg.mof.Reflective.LinkSetHelper.read ($in); 115 return $result; 116 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 117 $in = $ex.getInputStream (); 118 String _id = $ex.getId (); 119 throw new org.omg.CORBA.MARSHAL (_id); 120 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 121 return ref_all_links (); 122 } finally { 123 _releaseReply ($in); 124 } 125 } 127 public boolean ref_link_exists (org.omg.mof.Reflective.RefObject[] some_link) throws org.omg.mof.Reflective.MofError 128 { 129 org.omg.CORBA.portable.InputStream $in = null; 130 try { 131 org.omg.CORBA.portable.OutputStream $out = _request ("ref_link_exists", true); 132 org.omg.mof.Reflective.LinkHelper.write ($out, some_link); 133 $in = _invoke ($out); 134 boolean $result = $in.read_boolean (); 135 return $result; 136 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 137 $in = $ex.getInputStream (); 138 String _id = $ex.getId (); 139 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 140 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 141 else 142 throw new org.omg.CORBA.MARSHAL (_id); 143 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 144 return ref_link_exists (some_link); 145 } finally { 146 _releaseReply ($in); 147 } 148 } 150 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 151 { 152 org.omg.CORBA.portable.InputStream $in = null; 153 try { 154 org.omg.CORBA.portable.OutputStream $out = _request ("ref_query", true); 155 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, query_end); 156 org.omg.mof.Reflective.RefObjectHelper.write ($out, query_object); 157 $in = _invoke ($out); 158 org.omg.mof.Reflective.RefObject $result[] = org.omg.mof.Reflective.RefObjectUListHelper.read ($in); 159 return $result; 160 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 161 $in = $ex.getInputStream (); 162 String _id = $ex.getId (); 163 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 164 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 165 else 166 throw new org.omg.CORBA.MARSHAL (_id); 167 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 168 return ref_query (query_end, query_object); 169 } finally { 170 _releaseReply ($in); 171 } 172 } 174 public void ref_add_link (org.omg.mof.Reflective.RefObject[] new_link) throws org.omg.mof.Reflective.MofError 175 { 176 org.omg.CORBA.portable.InputStream $in = null; 177 try { 178 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_link", true); 179 org.omg.mof.Reflective.LinkHelper.write ($out, new_link); 180 $in = _invoke ($out); 181 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 182 $in = $ex.getInputStream (); 183 String _id = $ex.getId (); 184 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 185 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 186 else 187 throw new org.omg.CORBA.MARSHAL (_id); 188 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 189 ref_add_link (new_link); 190 } finally { 191 _releaseReply ($in); 192 } 193 } 195 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 196 { 197 org.omg.CORBA.portable.InputStream $in = null; 198 try { 199 org.omg.CORBA.portable.OutputStream $out = _request ("ref_add_link_before", true); 200 org.omg.mof.Reflective.LinkHelper.write ($out, new_link); 201 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, position_end); 202 org.omg.mof.Reflective.RefObjectHelper.write ($out, before); 203 $in = _invoke ($out); 204 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 205 $in = $ex.getInputStream (); 206 String _id = $ex.getId (); 207 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 208 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 209 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 210 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 211 else 212 throw new org.omg.CORBA.MARSHAL (_id); 213 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 214 ref_add_link_before (new_link, position_end, before); 215 } finally { 216 _releaseReply ($in); 217 } 218 } 220 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 221 { 222 org.omg.CORBA.portable.InputStream $in = null; 223 try { 224 org.omg.CORBA.portable.OutputStream $out = _request ("ref_modify_link", true); 225 org.omg.mof.Reflective.LinkHelper.write ($out, old_link); 226 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, position_end); 227 org.omg.mof.Reflective.RefObjectHelper.write ($out, new_object); 228 $in = _invoke ($out); 229 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 230 $in = $ex.getInputStream (); 231 String _id = $ex.getId (); 232 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 233 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 234 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 235 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 236 else 237 throw new org.omg.CORBA.MARSHAL (_id); 238 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 239 ref_modify_link (old_link, position_end, new_object); 240 } finally { 241 _releaseReply ($in); 242 } 243 } 245 public void ref_remove_link (org.omg.mof.Reflective.RefObject[] old_link) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError 246 { 247 org.omg.CORBA.portable.InputStream $in = null; 248 try { 249 org.omg.CORBA.portable.OutputStream $out = _request ("ref_remove_link", true); 250 org.omg.mof.Reflective.LinkHelper.write ($out, old_link); 251 $in = _invoke ($out); 252 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 253 $in = $ex.getInputStream (); 254 String _id = $ex.getId (); 255 if (_id.equals ("IDL:org/omg/mof/Reflective/NotFound:1.0")) 256 throw org.omg.mof.Reflective.NotFoundHelper.read ($in); 257 else if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 258 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 259 else 260 throw new org.omg.CORBA.MARSHAL (_id); 261 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 262 ref_remove_link (old_link); 263 } finally { 264 _releaseReply ($in); 265 } 266 } 268 public String ref_mof_id () 269 { 270 org.omg.CORBA.portable.InputStream $in = null; 271 try { 272 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 273 $in = _invoke ($out); 274 String $result = $in.read_string (); 275 return $result; 276 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 277 $in = $ex.getInputStream (); 278 String _id = $ex.getId (); 279 throw new org.omg.CORBA.MARSHAL (_id); 280 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 281 return ref_mof_id (); 282 } finally { 283 _releaseReply ($in); 284 } 285 } 287 public org.omg.mof.Reflective.RefObject ref_meta_object () 288 { 289 org.omg.CORBA.portable.InputStream $in = null; 290 try { 291 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 292 $in = _invoke ($out); 293 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 294 return $result; 295 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 296 $in = $ex.getInputStream (); 297 String _id = $ex.getId (); 298 throw new org.omg.CORBA.MARSHAL (_id); 299 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 300 return ref_meta_object (); 301 } finally { 302 _releaseReply ($in); 303 } 304 } 306 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 307 { 308 org.omg.CORBA.portable.InputStream $in = null; 309 try { 310 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 311 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 312 $in = _invoke ($out); 313 boolean $result = $in.read_boolean (); 314 return $result; 315 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 316 $in = $ex.getInputStream (); 317 String _id = $ex.getId (); 318 throw new org.omg.CORBA.MARSHAL (_id); 319 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 320 return ref_itself (other_object); 321 } finally { 322 _releaseReply ($in); 323 } 324 } 326 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 327 { 328 org.omg.CORBA.portable.InputStream $in = null; 329 try { 330 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 331 $in = _invoke ($out); 332 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 333 return $result; 334 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 335 $in = $ex.getInputStream (); 336 String _id = $ex.getId (); 337 throw new org.omg.CORBA.MARSHAL (_id); 338 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 339 return ref_immediate_package (); 340 } finally { 341 _releaseReply ($in); 342 } 343 } 345 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 346 { 347 org.omg.CORBA.portable.InputStream $in = null; 348 try { 349 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 350 $in = _invoke ($out); 351 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 352 return $result; 353 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 354 $in = $ex.getInputStream (); 355 String _id = $ex.getId (); 356 throw new org.omg.CORBA.MARSHAL (_id); 357 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 358 return ref_outermost_package (); 359 } finally { 360 _releaseReply ($in); 361 } 362 } 364 public void ref_delete () throws org.omg.mof.Reflective.MofError 365 { 366 org.omg.CORBA.portable.InputStream $in = null; 367 try { 368 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 369 $in = _invoke ($out); 370 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 371 $in = $ex.getInputStream (); 372 String _id = $ex.getId (); 373 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 374 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 375 else 376 throw new org.omg.CORBA.MARSHAL (_id); 377 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 378 ref_delete (); 379 } finally { 380 _releaseReply ($in); 381 } 382 } 384 private static String [] __ids = { 386 "IDL:org/omg/mof/Model/Contains:1.0", 387 "IDL:org/omg/mof/Reflective/RefAssociation:1.0", 388 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 389 390 public String [] _ids () 391 { 392 return (String [])__ids.clone (); 393 } 394 395 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 396 { 397 String str = s.readUTF (); 398 String [] args = null; 399 java.util.Properties props = null; 400 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 401 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 402 _set_delegate (delegate); 403 } 404 405 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 406 { 407 String [] args = null; 408 java.util.Properties props = null; 409 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 410 s.writeUTF (str); 411 } 412 } | Popular Tags |