1 7 package org.omg.CORBA; 8 9 10 19 20 public class _PolicyStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.Policy 21 { 22 27 public _PolicyStub () 28 { 29 super (); 30 } 31 32 37 public _PolicyStub (org.omg.CORBA.portable.Delegate delegate) 38 { 39 super (); 40 _set_delegate (delegate); 41 } 42 43 44 54 public int policy_type () 55 { 56 org.omg.CORBA.portable.InputStream _in = null; 57 try { 58 org.omg.CORBA.portable.OutputStream _out = _request ("_get_policy_type", true); 59 _in = _invoke (_out); 60 int __result = org.omg.CORBA.PolicyTypeHelper.read (_in); 61 return __result; 62 } catch (org.omg.CORBA.portable.ApplicationException _ex) { 63 _in = _ex.getInputStream (); 64 String _id = _ex.getId (); 65 throw new org.omg.CORBA.MARSHAL (_id); 66 } catch (org.omg.CORBA.portable.RemarshalException _rm) { 67 return policy_type (); 68 } finally { 69 _releaseReply (_in); 70 } 71 } 73 74 78 public org.omg.CORBA.Policy copy () 79 { 80 org.omg.CORBA.portable.InputStream _in = null; 81 try { 82 org.omg.CORBA.portable.OutputStream _out = _request ("copy", true); 83 _in = _invoke (_out); 84 org.omg.CORBA.Policy __result = org.omg.CORBA.PolicyHelper.read (_in); 85 return __result; 86 } catch (org.omg.CORBA.portable.ApplicationException _ex) { 87 _in = _ex.getInputStream (); 88 String _id = _ex.getId (); 89 throw new org.omg.CORBA.MARSHAL (_id); 90 } catch (org.omg.CORBA.portable.RemarshalException _rm) { 91 return copy (); 92 } finally { 93 _releaseReply (_in); 94 } 95 } 97 98 101 public void destroy () 102 { 103 org.omg.CORBA.portable.InputStream _in = null; 104 try { 105 org.omg.CORBA.portable.OutputStream _out = _request ("destroy", true); 106 _in = _invoke (_out); 107 } catch (org.omg.CORBA.portable.ApplicationException _ex) { 108 _in = _ex.getInputStream (); 109 String _id = _ex.getId (); 110 throw new org.omg.CORBA.MARSHAL (_id); 111 } catch (org.omg.CORBA.portable.RemarshalException _rm) { 112 destroy (); 113 } finally { 114 _releaseReply (_in); 115 } 116 } 118 private static String [] __ids = { 120 "IDL:omg.org/CORBA/Policy:1.0"}; 121 122 public String [] _ids () 123 { 124 return (String [])__ids.clone (); 125 } 126 127 private void readObject (java.io.ObjectInputStream s) 128 { 129 try 130 { 131 String str = s.readUTF (); 132 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init ().string_to_object (str); 133 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 134 _set_delegate (delegate); 135 } catch (java.io.IOException e) {} 136 } 137 138 private void writeObject (java.io.ObjectOutputStream s) 139 { 140 try 141 { 142 String str = org.omg.CORBA.ORB.init ().object_to_string (this); 143 s.writeUTF (str); 144 } catch (java.io.IOException e) {} 145 } 146 } | Popular Tags |