1 package org.omg.mof.Reflective; 2 3 4 10 11 public class _RefBaseObjectStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Reflective.RefBaseObject 12 { 13 14 public String ref_mof_id () 15 { 16 org.omg.CORBA.portable.InputStream $in = null; 17 try { 18 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 19 $in = _invoke ($out); 20 String $result = $in.read_string (); 21 return $result; 22 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 23 $in = $ex.getInputStream (); 24 String _id = $ex.getId (); 25 throw new org.omg.CORBA.MARSHAL (_id); 26 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 27 return ref_mof_id (); 28 } finally { 29 _releaseReply ($in); 30 } 31 } 33 public org.omg.mof.Reflective.RefObject ref_meta_object () 34 { 35 org.omg.CORBA.portable.InputStream $in = null; 36 try { 37 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 38 $in = _invoke ($out); 39 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 40 return $result; 41 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 42 $in = $ex.getInputStream (); 43 String _id = $ex.getId (); 44 throw new org.omg.CORBA.MARSHAL (_id); 45 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 46 return ref_meta_object (); 47 } finally { 48 _releaseReply ($in); 49 } 50 } 52 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 53 { 54 org.omg.CORBA.portable.InputStream $in = null; 55 try { 56 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 57 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 58 $in = _invoke ($out); 59 boolean $result = $in.read_boolean (); 60 return $result; 61 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 62 $in = $ex.getInputStream (); 63 String _id = $ex.getId (); 64 throw new org.omg.CORBA.MARSHAL (_id); 65 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 66 return ref_itself (other_object); 67 } finally { 68 _releaseReply ($in); 69 } 70 } 72 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 73 { 74 org.omg.CORBA.portable.InputStream $in = null; 75 try { 76 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 77 $in = _invoke ($out); 78 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 79 return $result; 80 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 81 $in = $ex.getInputStream (); 82 String _id = $ex.getId (); 83 throw new org.omg.CORBA.MARSHAL (_id); 84 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 85 return ref_immediate_package (); 86 } finally { 87 _releaseReply ($in); 88 } 89 } 91 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 92 { 93 org.omg.CORBA.portable.InputStream $in = null; 94 try { 95 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 96 $in = _invoke ($out); 97 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 98 return $result; 99 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 100 $in = $ex.getInputStream (); 101 String _id = $ex.getId (); 102 throw new org.omg.CORBA.MARSHAL (_id); 103 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 104 return ref_outermost_package (); 105 } finally { 106 _releaseReply ($in); 107 } 108 } 110 public void ref_delete () throws org.omg.mof.Reflective.MofError 111 { 112 org.omg.CORBA.portable.InputStream $in = null; 113 try { 114 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 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 ref_delete (); 125 } finally { 126 _releaseReply ($in); 127 } 128 } 130 private static String [] __ids = { 132 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 133 134 public String [] _ids () 135 { 136 return (String [])__ids.clone (); 137 } 138 139 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 140 { 141 String str = s.readUTF (); 142 String [] args = null; 143 java.util.Properties props = null; 144 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 145 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 146 _set_delegate (delegate); 147 } 148 149 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 150 { 151 String [] args = null; 152 java.util.Properties props = null; 153 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 154 s.writeUTF (str); 155 } 156 } | Popular Tags |