net.ivoa.registry.search
Class Identifiers

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

public class Identifiers
extends SearchResults

this class provides iterator access to a list of identifiers returned as part of a registry search.


Method Summary
 java.lang.String next()
          return the next identifier in the list of results.
 java.lang.String previous()
          return the previous identifier.
 
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 java.lang.String next()
                      throws RegistryServiceException,
                             RegistryFormatException,
                             RegistryCommException
return the next identifier 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 java.lang.String previous()
                          throws RegistryServiceException,
                                 RegistryFormatException,
                                 RegistryCommException
return the previous identifier. 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.