1 package org.omg.CosNaming; 2 3 4 10 11 12 20 public abstract class BindingIteratorPOA extends org.omg.PortableServer.Servant 21 implements org.omg.CosNaming.BindingIteratorOperations , org.omg.CORBA.portable.InvokeHandler 22 { 23 24 26 private static java.util.Hashtable _methods = new java.util.Hashtable (); 27 static 28 { 29 _methods.put ("next_one", new java.lang.Integer (0)); 30 _methods.put ("next_n", new java.lang.Integer (1)); 31 _methods.put ("destroy", new java.lang.Integer (2)); 32 } 33 34 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 35 org.omg.CORBA.portable.InputStream in, 36 org.omg.CORBA.portable.ResponseHandler $rh) 37 { 38 org.omg.CORBA.portable.OutputStream out = null; 39 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 40 if (__method == null) 41 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 42 43 switch (__method.intValue ()) 44 { 45 46 52 case 0: { 54 org.omg.CosNaming.BindingHolder b = new org.omg.CosNaming.BindingHolder (); 55 boolean $result = false; 56 $result = this.next_one (b); 57 out = $rh.createReply(); 58 out.write_boolean ($result); 59 org.omg.CosNaming.BindingHelper.write (out, b.value); 60 break; 61 } 62 63 64 71 case 1: { 73 int how_many = in.read_ulong (); 74 org.omg.CosNaming.BindingListHolder bl = new org.omg.CosNaming.BindingListHolder (); 75 boolean $result = false; 76 $result = this.next_n (how_many, bl); 77 out = $rh.createReply(); 78 out.write_boolean ($result); 79 org.omg.CosNaming.BindingListHelper.write (out, bl.value); 80 break; 81 } 82 83 84 87 case 2: { 89 this.destroy (); 90 out = $rh.createReply(); 91 break; 92 } 93 94 default: 95 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 96 } 97 98 return out; 99 } 101 private static String [] __ids = { 103 "IDL:omg.org/CosNaming/BindingIterator:1.0"}; 104 105 public String [] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId) 106 { 107 return (String [])__ids.clone (); 108 } 109 110 public BindingIterator _this() 111 { 112 return BindingIteratorHelper.narrow( 113 super._this_object()); 114 } 115 116 public BindingIterator _this(org.omg.CORBA.ORB orb) 117 { 118 return BindingIteratorHelper.narrow( 119 super._this_object(orb)); 120 } 121 122 123 } | Popular Tags |