1 package org.omg.CosNaming; 2 3 4 10 11 12 20 public class _BindingIteratorStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CosNaming.BindingIterator 21 { 22 23 24 30 public boolean next_one (org.omg.CosNaming.BindingHolder b) 31 { 32 org.omg.CORBA.portable.InputStream $in = null; 33 try { 34 org.omg.CORBA.portable.OutputStream $out = _request ("next_one", true); 35 $in = _invoke ($out); 36 boolean $result = $in.read_boolean (); 37 b.value = org.omg.CosNaming.BindingHelper.read ($in); 38 return $result; 39 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 40 $in = $ex.getInputStream (); 41 String _id = $ex.getId (); 42 throw new org.omg.CORBA.MARSHAL (_id); 43 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 44 return next_one (b ); 45 } finally { 46 _releaseReply ($in); 47 } 48 } 50 51 58 public boolean next_n (int how_many, org.omg.CosNaming.BindingListHolder bl) 59 { 60 org.omg.CORBA.portable.InputStream $in = null; 61 try { 62 org.omg.CORBA.portable.OutputStream $out = _request ("next_n", true); 63 $out.write_ulong (how_many); 64 $in = _invoke ($out); 65 boolean $result = $in.read_boolean (); 66 bl.value = org.omg.CosNaming.BindingListHelper.read ($in); 67 return $result; 68 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 69 $in = $ex.getInputStream (); 70 String _id = $ex.getId (); 71 throw new org.omg.CORBA.MARSHAL (_id); 72 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 73 return next_n (how_many, bl ); 74 } finally { 75 _releaseReply ($in); 76 } 77 } 79 80 83 public void destroy () 84 { 85 org.omg.CORBA.portable.InputStream $in = null; 86 try { 87 org.omg.CORBA.portable.OutputStream $out = _request ("destroy", true); 88 $in = _invoke ($out); 89 return; 90 } catch (org.omg.CORBA.portable.ApplicationException $ex) { 91 $in = $ex.getInputStream (); 92 String _id = $ex.getId (); 93 throw new org.omg.CORBA.MARSHAL (_id); 94 } catch (org.omg.CORBA.portable.RemarshalException $rm) { 95 destroy ( ); 96 } finally { 97 _releaseReply ($in); 98 } 99 } 101 private static String [] __ids = { 103 "IDL:omg.org/CosNaming/BindingIterator:1.0"}; 104 105 public String [] _ids () 106 { 107 return (String [])__ids.clone (); 108 } 109 110 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 111 { 112 String str = s.readUTF (); 113 String [] args = null; 114 java.util.Properties props = null; 115 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 116 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 117 _set_delegate (delegate); 118 } 119 120 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 121 { 122 String [] args = null; 123 java.util.Properties props = null; 124 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 125 s.writeUTF (str); 126 } 127 } | Popular Tags |