1. /*
  2. * @(#)BindingIterator.java 1.7 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. /*
  8. * File: ./org/omg/CosNaming/BindingIterator.java
  9. * From: nameservice.idl
  10. * Date: Tue Aug 11 03:12:09 1998
  11. * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
  12. */
  13. package org.omg.CosNaming;
  14. /**
  15. * The BindingIterator interface allows a client to iterate through
  16. * the bindings using the next_one or next_n operations.
  17. ** The bindings iterator is obtained by using the <tt>list</tt>
  18. * method on the <tt>NamingContext</tt>.
  19. * @see org.omg.CosNaming.NamingContext#list
  20. */public interface BindingIterator
  21. extends org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity {
  22. /**
  23. * This operation returns the next binding. If there are no more
  24. * bindings, false is returned.
  25. ** @param b the returned binding
  26. */
  27. boolean next_one(org.omg.CosNaming.BindingHolder b)
  28. ;
  29. /**
  30. * This operation returns at most the requested number of bindings.
  31. ** @param how_many the maximum number of bindings tro return <p>
  32. ** @param bl the returned bindings
  33. */
  34. boolean next_n(int how_many, org.omg.CosNaming.BindingListHolder bl)
  35. ;
  36. /**
  37. * This operation destroys the iterator.
  38. */
  39. void destroy()
  40. ;
  41. }