< prev index next >

src/java.corba/share/classes/com/sun/corba/se/impl/naming/cosnaming/BindingIteratorImpl.java

Print this page




  75 
  76     /**
  77      * Return the next binding. It also returns true or false, indicating
  78      * whether there were more bindings.
  79      * @param b The Binding as an out parameter.
  80      * @return true if there were more bindings.
  81      * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
  82      * system exceptions.
  83      * @see NextOne
  84      */
  85     public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
  86     {
  87         // NextOne actually returns the next one
  88         return NextOne(b);
  89     }
  90 
  91     /**
  92      * Return the next n bindings. It also returns true or false, indicating
  93      * whether there were more bindings.
  94      * @param how_many The number of requested bindings in the BindingList.
  95      * @param bl The BindingList as an out parameter.
  96      * @return true if there were more bindings.
  97      * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
  98      * system exceptions.
  99      * @see NextOne
 100      */
 101     public synchronized boolean next_n(int how_many,
 102         org.omg.CosNaming.BindingListHolder blh)
 103     {
 104         if( how_many == 0 ) {
 105             throw new BAD_PARAM( " 'how_many' parameter is set to 0 which is" +
 106             " invalid" );
 107         }
 108         return list( how_many, blh );
 109     }
 110 
 111     /**
 112      * lists next n bindings. It returns true or false, indicating
 113      * whether there were more bindings. This method has the package private
 114      * scope, It will be called from NamingContext.list() operation or
 115      * this.next_n().




  75 
  76     /**
  77      * Return the next binding. It also returns true or false, indicating
  78      * whether there were more bindings.
  79      * @param b The Binding as an out parameter.
  80      * @return true if there were more bindings.
  81      * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
  82      * system exceptions.
  83      * @see NextOne
  84      */
  85     public synchronized boolean next_one(org.omg.CosNaming.BindingHolder b)
  86     {
  87         // NextOne actually returns the next one
  88         return NextOne(b);
  89     }
  90 
  91     /**
  92      * Return the next n bindings. It also returns true or false, indicating
  93      * whether there were more bindings.
  94      * @param how_many The number of requested bindings in the BindingList.
  95      * @param blh The BindingList as an out parameter.
  96      * @return true if there were more bindings.
  97      * @exception org.omg.CORBA.SystemException One of a fixed set of CORBA
  98      * system exceptions.
  99      * @see NextOne
 100      */
 101     public synchronized boolean next_n(int how_many,
 102         org.omg.CosNaming.BindingListHolder blh)
 103     {
 104         if( how_many == 0 ) {
 105             throw new BAD_PARAM( " 'how_many' parameter is set to 0 which is" +
 106             " invalid" );
 107         }
 108         return list( how_many, blh );
 109     }
 110 
 111     /**
 112      * lists next n bindings. It returns true or false, indicating
 113      * whether there were more bindings. This method has the package private
 114      * scope, It will be called from NamingContext.list() operation or
 115      * this.next_n().


< prev index next >