org.openorb.trader.kernel
Class OfferIterator

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosTrading.OfferIteratorPOA
          extended by org.openorb.trader.kernel.OfferIterator
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, OfferIteratorOperations

public class OfferIterator
extends OfferIteratorPOA

This class provides the OfferIterator interface implementation.

Author:
Jerome Daniel

Constructor Summary
OfferIterator(Offer[] values)
           
 
Method Summary
 void destroy()
          Destroys the iterator
 int max_left()
          The max_left operation returns the number of service offers remaining in the iterator.
 boolean next_n(int n, OfferSeqHolder offers)
          The next_n operation returns a set of service offers in the output parameter offers.
 
Methods inherited from class org.omg.CosTrading.OfferIteratorPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfferIterator

public OfferIterator(Offer[] values)
Method Detail

max_left

public int max_left()
             throws UnknownMaxLeft
Description copied from interface: OfferIteratorOperations
The max_left operation returns the number of service offers remaining in the iterator. The exception UnknownMaxLeft is raised if the iterator cannot determine the remaining number of service offers (e.g., if the iterator determines its set of service offers through lazy evaluation).

Throws:
UnknownMaxLeft

next_n

public boolean next_n(int n,
                      OfferSeqHolder offers)
Description copied from interface: OfferIteratorOperations
The next_n operation returns a set of service offers in the output parameter offers. The operation returns n service offers if there are at least n service offers remaining in the iterator. If there are fewer than n service offers in the iterator, then all remaining service offers are returned. The actual number of service offers returned can be determined from the length of the offers sequence. The next_n operation returns TRUE if there are further service offers to be extracted from the iterator. It returns FALSE if there are no further service offers to be extracted.


destroy

public void destroy()
Destroys the iterator