1 7 package org.omg.CORBA; 8 9 10 19 20 public class _IDLTypeStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.IDLType 21 { 22 28 public _IDLTypeStub () 30 { 31 super (); 32 } 33 34 40 public _IDLTypeStub (org.omg.CORBA.portable.Delegate delegate) 42 { 43 super (); 44 _set_delegate (delegate); 45 } 46 47 public org.omg.CORBA.TypeCode type () 48 { 49 org.omg.CORBA.portable.InputStream _in = null; 50 try { 51 org.omg.CORBA.portable.OutputStream _out = _request ("_get_type", true); 52 _in = _invoke (_out); 53 org.omg.CORBA.TypeCode __result = _in.read_TypeCode (); 54 return __result; 55 } catch (org.omg.CORBA.portable.ApplicationException _ex) { 56 _in = _ex.getInputStream (); 57 String _id = _ex.getId (); 58 throw new org.omg.CORBA.MARSHAL (_id); 59 } catch (org.omg.CORBA.portable.RemarshalException _rm) { 60 return type (); 61 } finally { 62 _releaseReply (_in); 63 } 64 } 66 67 public org.omg.CORBA.DefinitionKind def_kind () 69 { 70 org.omg.CORBA.portable.InputStream _in = null; 71 try { 72 org.omg.CORBA.portable.OutputStream _out = _request ("_get_def_kind", true); 73 _in = _invoke (_out); 74 org.omg.CORBA.DefinitionKind __result = org.omg.CORBA.DefinitionKindHelper.read (_in); 75 return __result; 76 } catch (org.omg.CORBA.portable.ApplicationException _ex) { 77 _in = _ex.getInputStream (); 78 String _id = _ex.getId (); 79 throw new org.omg.CORBA.MARSHAL (_id); 80 } catch (org.omg.CORBA.portable.RemarshalException _rm) { 81 return def_kind (); 82 } finally { 83 _releaseReply (_in); 84 } 85 } 87 88 public void destroy () 90 { 91 org.omg.CORBA.portable.InputStream _in = null; 92 try { 93 org.omg.CORBA.portable.OutputStream _out = _request ("destroy", true); 94 _in = _invoke (_out); 95 } catch (org.omg.CORBA.portable.ApplicationException _ex) { 96 _in = _ex.getInputStream (); 97 String _id = _ex.getId (); 98 throw new org.omg.CORBA.MARSHAL (_id); 99 } catch (org.omg.CORBA.portable.RemarshalException _rm) { 100 destroy (); 101 } finally { 102 _releaseReply (_in); 103 } 104 } 106 private static String [] __ids = { 108 "IDL:omg.org/CORBA/IDLType:1.0", 109 "IDL:omg.org/CORBA/IRObject:1.0"}; 110 111 public String [] _ids () 112 { 113 return (String [])__ids.clone (); 114 } 115 116 private void readObject (java.io.ObjectInputStream s) 117 { 118 try 119 { 120 String str = s.readUTF (); 121 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init ().string_to_object (str); 122 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 123 _set_delegate (delegate); 124 } catch (java.io.IOException e) {} 125 } 126 127 private void writeObject (java.io.ObjectOutputStream s) 128 { 129 try 130 { 131 String str = org.omg.CORBA.ORB.init ().object_to_string (this); 132 s.writeUTF (str); 133 } catch (java.io.IOException e) {} 134 } 135 } | Popular Tags |