com.k_int.IR
Interface InformationFragmentSource

All Known Implementing Classes:
DefaultSearchResult, AggregateFragmentSource, Z3950SearchTask, DemoSearchTask

public interface InformationFragmentSource


Method Summary
 void addFragmentSourceObserver(java.util.Observer o)
          For notification of events This object to be used by objects only interested in being notified about the changing numbers of available records
 void destroy()
          Release all resources and shut down the object
 InformationFragment getFragment(int index)
          Position based access to the result set.
 InformationFragment[] getFragment(int starting_fragment, int count)
          Position based range access to the result set.
 InformationFragment getFragment(java.lang.String handle)
          Allow access to the set of objects based on a handle system (DOI?)
 int getFragmentCount()
          Current number of fragments available
 java.lang.String getStatusReport()
          Return a string based status report intended for display to the user Typical FragmentSource states include EMPTY, FILLING, COMPLETE, and SOURCE_NO_LONGER_AVAILABLE these should be presented in a human readable form.
 

Method Detail

addFragmentSourceObserver

public void addFragmentSourceObserver(java.util.Observer o)
For notification of events This object to be used by objects only interested in being notified about the changing numbers of available records

getFragment

public InformationFragment getFragment(java.lang.String handle)
                                throws PresentException
Allow access to the set of objects based on a handle system (DOI?)

getFragment

public InformationFragment getFragment(int index)
                                throws PresentException
Position based access to the result set. Implementation must be 1 based: IE, First record in result set is 1 not 0. Local mappings (e.g to vector) must account for this!

getFragment

public InformationFragment[] getFragment(int starting_fragment,
                                         int count)
                                  throws PresentException
Position based range access to the result set. Implementation must be 1 based: IE, First record in result set is 1 not 0. Local mappings (e.g to vector) must account for this!

getFragmentCount

public int getFragmentCount()
Current number of fragments available

destroy

public void destroy()
Release all resources and shut down the object

getStatusReport

public java.lang.String getStatusReport()
Return a string based status report intended for display to the user Typical FragmentSource states include EMPTY, FILLING, COMPLETE, and SOURCE_NO_LONGER_AVAILABLE these should be presented in a human readable form.


Copyright © 2001 Knowledge Integration Ltd. All Rights Reserved.