001 package org.omg.CORBA; 002 003 004 /** 005 * org/omg/CORBA/_PolicyStub.java . 006 * Generated by the IDL-to-Java compiler (portable), version "3.2" 007 * from /builddir/build/BUILD/geronimo-specs-1.6/geronimo-spec-corba/src/main/idl/geronimo-orb.idl 008 * Monday, June 18, 2012 10:36:15 AM CEST 009 */ 010 011 public class _PolicyStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CORBA.Policy 012 { 013 014 public int policy_type () 015 { 016 org.omg.CORBA.portable.InputStream $in = null; 017 try { 018 org.omg.CORBA.portable.OutputStream $out = _request ("_get_policy_type", true); 019 $in = _invoke ($out); 020 int $result = org.omg.CORBA.PolicyTypeHelper.read ($in); 021 return $result; 022 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 023 $in = $ex.getInputStream (); 024 String _id = $ex.getId (); 025 throw new org.omg.CORBA.MARSHAL (_id); 026 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 027 return policy_type ( ); 028 } finally { 029 _releaseReply ($in); 030 } 031 } // policy_type 032 033 public org.omg.CORBA.Policy copy () 034 { 035 org.omg.CORBA.portable.InputStream $in = null; 036 try { 037 org.omg.CORBA.portable.OutputStream $out = _request ("copy", true); 038 $in = _invoke ($out); 039 org.omg.CORBA.Policy $result = org.omg.CORBA.PolicyHelper.read ($in); 040 return $result; 041 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 042 $in = $ex.getInputStream (); 043 String _id = $ex.getId (); 044 throw new org.omg.CORBA.MARSHAL (_id); 045 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 046 return copy ( ); 047 } finally { 048 _releaseReply ($in); 049 } 050 } // copy 051 052 public void destroy () 053 { 054 org.omg.CORBA.portable.InputStream $in = null; 055 try { 056 org.omg.CORBA.portable.OutputStream $out = _request ("destroy", true); 057 $in = _invoke ($out); 058 return; 059 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 060 $in = $ex.getInputStream (); 061 String _id = $ex.getId (); 062 throw new org.omg.CORBA.MARSHAL (_id); 063 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 064 destroy ( ); 065 } finally { 066 _releaseReply ($in); 067 } 068 } // destroy 069 070 // Type-specific CORBA::Object operations 071 private static String[] __ids = { 072 "IDL:CORBA/Policy:1.0"}; 073 074 public String[] _ids () 075 { 076 return (String[])__ids.clone (); 077 } 078 079 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 080 { 081 String str = s.readUTF (); 082 String[] args = null; 083 java.util.Properties props = null; 084 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 085 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate (); 086 _set_delegate (delegate); 087 } 088 089 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 090 { 091 String[] args = null; 092 java.util.Properties props = null; 093 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 094 s.writeUTF (str); 095 } 096 } // class _PolicyStub