org.omg.CosNaming
Interface BindingIterator

All Superinterfaces:
BindingIteratorOperations, IDLEntity, Object, Serializable
All Known Implementing Classes:
_BindingIteratorImplBase, _BindingIteratorStub

public interface BindingIterator
extends BindingIteratorOperations, Object, Serializable, IDLEntity

The iterator for seing the available bindings.


Method Summary
 void destroy()
          Destroy the iterator on the server side.
 boolean next_n(int amount, BindingListHolder a_list)
          Return the desired amount of bindings.
 boolean next_one(BindingHolder a_binding)
          Return the next binding.
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Method Detail

destroy

void destroy()
Destroy the iterator on the server side. This must always be called, as otherwise the iterator will remain on the server even after the client application terminates.

Specified by:
destroy in interface BindingIteratorOperations

next_n

boolean next_n(int amount,
               BindingListHolder a_list)
Return the desired amount of bindings.

Specified by:
next_n in interface BindingIteratorOperations
Parameters:
amount - the maximal number of bindings to return.
a_list - a holder to store the returned bindings.
Returns:
false if there are no more bindings available, true otherwise.

next_one

boolean next_one(BindingHolder a_binding)
Return the next binding.

Specified by:
next_one in interface BindingIteratorOperations
Parameters:
a_binding - a holder, where the next binding will be stored.
Returns:
false if there are no more bindings available, true otherwise.