net.ivoa.registry.search
Class Records

java.lang.Object
  extended by net.ivoa.registry.search.SearchResults
      extended by net.ivoa.registry.search.Records

public class Records
extends SearchResults

this class provides iterator access to the VOResource records returned by a registry search


Method Summary
 VOResource next()
          return the next resource description in the list of results.
 VOResource previous()
          return the previous resource description.
 
Methods inherited from class net.ivoa.registry.search.SearchResults
getRetrievedCount, hasNext, hasPrevious, isCountFinal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

next

public VOResource next()
                throws RegistryServiceException,
                       RegistryFormatException,
                       RegistryCommException
return the next resource description in the list of results. This call may recontact the registry to get the next set of results; thus, some exceptions may be thrown.

Throws:
RegistryServiceException - if the service encounters an error (i.e. on the server side).
RegistryCommException - if an unexpected protocol error is encountered.
RegistryFormatException - if the XML response is non-compliant in some way.

previous

public VOResource previous()
                    throws RegistryServiceException,
                           RegistryFormatException,
                           RegistryCommException
return the previous resource description. This call may recontact the registry to re-fetch the previous set of results; thus, some exceptions may be thrown.

Throws:
RegistryServiceException - if the service encounters an error (i.e. on the server side).
RegistryCommException - if an unexpected protocol error is encountered.
RegistryFormatException - if the XML response is non-compliant in some way.