Novell exteNd Messaging Platform 5.2

org.omg.CosNaming
Interface BindingIteratorOperations


public interface BindingIteratorOperations

The BindingIterator interface allows a client to iterate through the binding using next_one, and next_n operations.

The BindingIterator is returned by the list method on the NamingContext.

See Also:
NamingContextOperations.list(int, org.omg.CosNaming.BindingListHolder, org.omg.CosNaming.BindingIteratorHolder)

Method Summary
 void destroy()
          Destroy the BindingIterator.
 boolean next_n(int how_many, BindingListHolder bl)
          Get atmost the specified number of bindings.
 boolean next_one(BindingHolder b)
          Get the next binding.
 

Method Detail

next_one

public boolean next_one(BindingHolder b)
Get the next binding. The binding is in the BindingHolder

Returns:
If there are no more bindings, then false is returned. Otherwise true is returned.

next_n

public boolean next_n(int how_many,
                      BindingListHolder bl)
Get atmost the specified number of bindings. The BindingListHolder contains an array of bindings.

Returns:
If there are no more bindings, then false is returned. Otherwise true is returned.

destroy

public void destroy()
Destroy the BindingIterator. It is a good programming practice to destroy the iterator once you are done using it.


Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.