1 package org.omg.mof.Reflective; 2 3 4 10 11 12 public class __RefPackageStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.mof.Reflective._RefPackage 14 { 15 16 public org.omg.mof.Reflective.RefObject ref_class_ref (org.omg.mof.Reflective.RefObject _class) 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 ("ref_class_ref", true); 21 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, _class); 22 $in = _invoke ($out); 23 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.RefObjectHelper.read ($in); 24 return $result; 25 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 26 $in = $ex.getInputStream (); 27 String _id = $ex.getId (); 28 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 29 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 30 else 31 throw new org.omg.CORBA.MARSHAL (_id); 32 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 33 return ref_class_ref (_class); 34 } finally { 35 _releaseReply ($in); 36 } 37 } 39 public org.omg.mof.Reflective.RefAssociation ref_association_ref (org.omg.mof.Reflective.RefObject association) throws org.omg.mof.Reflective.MofError 40 { 41 org.omg.CORBA.portable.InputStream $in = null; 42 try { 43 org.omg.CORBA.portable.OutputStream $out = _request ("ref_association_ref", true); 44 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, association); 45 $in = _invoke ($out); 46 org.omg.mof.Reflective.RefAssociation $result = org.omg.mof.Reflective.RefAssociationHelper.read ($in); 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 ref_association_ref (association); 57 } finally { 58 _releaseReply ($in); 59 } 60 } 62 public org.omg.mof.Reflective._RefPackage ref_package_ref (org.omg.mof.Reflective.RefObject _package) 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 ("ref_package_ref", true); 67 org.omg.mof.Reflective.DesignatorTypeHelper.write ($out, _package); 68 $in = _invoke ($out); 69 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.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 ref_package_ref (_package); 80 } finally { 81 _releaseReply ($in); 82 } 83 } 85 public String ref_mof_id () 86 { 87 org.omg.CORBA.portable.InputStream $in = null; 88 try { 89 org.omg.CORBA.portable.OutputStream $out = _request ("ref_mof_id", true); 90 $in = _invoke ($out); 91 String $result = $in.read_string (); 92 return $result; 93 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 94 $in = $ex.getInputStream (); 95 String _id = $ex.getId (); 96 throw new org.omg.CORBA.MARSHAL (_id); 97 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 98 return ref_mof_id (); 99 } finally { 100 _releaseReply ($in); 101 } 102 } 104 public org.omg.mof.Reflective.RefObject ref_meta_object () 105 { 106 org.omg.CORBA.portable.InputStream $in = null; 107 try { 108 org.omg.CORBA.portable.OutputStream $out = _request ("ref_meta_object", true); 109 $in = _invoke ($out); 110 org.omg.mof.Reflective.RefObject $result = org.omg.mof.Reflective.DesignatorTypeHelper.read ($in); 111 return $result; 112 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 113 $in = $ex.getInputStream (); 114 String _id = $ex.getId (); 115 throw new org.omg.CORBA.MARSHAL (_id); 116 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 117 return ref_meta_object (); 118 } finally { 119 _releaseReply ($in); 120 } 121 } 123 public boolean ref_itself (org.omg.mof.Reflective.RefBaseObject other_object) 124 { 125 org.omg.CORBA.portable.InputStream $in = null; 126 try { 127 org.omg.CORBA.portable.OutputStream $out = _request ("ref_itself", true); 128 org.omg.mof.Reflective.RefBaseObjectHelper.write ($out, other_object); 129 $in = _invoke ($out); 130 boolean $result = $in.read_boolean (); 131 return $result; 132 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 133 $in = $ex.getInputStream (); 134 String _id = $ex.getId (); 135 throw new org.omg.CORBA.MARSHAL (_id); 136 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 137 return ref_itself (other_object); 138 } finally { 139 _releaseReply ($in); 140 } 141 } 143 public org.omg.mof.Reflective._RefPackage ref_immediate_package () 144 { 145 org.omg.CORBA.portable.InputStream $in = null; 146 try { 147 org.omg.CORBA.portable.OutputStream $out = _request ("ref_immediate_package", true); 148 $in = _invoke ($out); 149 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 150 return $result; 151 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 152 $in = $ex.getInputStream (); 153 String _id = $ex.getId (); 154 throw new org.omg.CORBA.MARSHAL (_id); 155 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 156 return ref_immediate_package (); 157 } finally { 158 _releaseReply ($in); 159 } 160 } 162 public org.omg.mof.Reflective._RefPackage ref_outermost_package () 163 { 164 org.omg.CORBA.portable.InputStream $in = null; 165 try { 166 org.omg.CORBA.portable.OutputStream $out = _request ("ref_outermost_package", true); 167 $in = _invoke ($out); 168 org.omg.mof.Reflective._RefPackage $result = org.omg.mof.Reflective._RefPackageHelper.read ($in); 169 return $result; 170 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 171 $in = $ex.getInputStream (); 172 String _id = $ex.getId (); 173 throw new org.omg.CORBA.MARSHAL (_id); 174 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 175 return ref_outermost_package (); 176 } finally { 177 _releaseReply ($in); 178 } 179 } 181 public void ref_delete () throws org.omg.mof.Reflective.MofError 182 { 183 org.omg.CORBA.portable.InputStream $in = null; 184 try { 185 org.omg.CORBA.portable.OutputStream $out = _request ("ref_delete", true); 186 $in = _invoke ($out); 187 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 188 $in = $ex.getInputStream (); 189 String _id = $ex.getId (); 190 if (_id.equals ("IDL:org/omg/mof/Reflective/MofError:1.0")) 191 throw org.omg.mof.Reflective.MofErrorHelper.read ($in); 192 else 193 throw new org.omg.CORBA.MARSHAL (_id); 194 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 195 ref_delete (); 196 } finally { 197 _releaseReply ($in); 198 } 199 } 201 private static String [] __ids = { 203 "IDL:org/omg/mof/Reflective/RefPackage:1.0", 204 "IDL:org/omg/mof/Reflective/RefBaseObject:1.0"}; 205 206 public String [] _ids () 207 { 208 return (String [])__ids.clone (); 209 } 210 211 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 212 { 213 String str = s.readUTF (); 214 String [] args = null; 215 java.util.Properties props = null; 216 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 217 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 218 _set_delegate (delegate); 219 } 220 221 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 222 { 223 String [] args = null; 224 java.util.Properties props = null; 225 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 226 s.writeUTF (str); 227 } 228 } | Popular Tags |