com.k_int.IR
Class DefaultSearchResult

java.lang.Object
  |
  +--java.util.Observable
        |
        +--com.k_int.IR.DefaultSearchResult
All Implemented Interfaces:
InformationFragmentSource, InformationFragmentStore

public class DefaultSearchResult
extends java.util.Observable
implements InformationFragmentStore, InformationFragmentSource


Constructor Summary
DefaultSearchResult()
           
 
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 addInformationFragment(InformationFragmentSource source, InformationFragment fragment)
           
 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.
 void notifyAvailableFragmentCount(int num_fragments)
           
 void notifyAvailableSourceFragments(long num_fragments, InformationFragmentSource source)
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSearchResult

public DefaultSearchResult()
Method Detail

getFragment

public InformationFragment getFragment(java.lang.String handle)
Description copied from interface: InformationFragmentSource
Allow access to the set of objects based on a handle system (DOI?)
Specified by:
getFragment in interface InformationFragmentSource

addInformationFragment

public void addInformationFragment(InformationFragmentSource source,
                                   InformationFragment fragment)
Specified by:
addInformationFragment in interface InformationFragmentStore

addFragmentSourceObserver

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

getFragmentCount

public int getFragmentCount()
Description copied from interface: InformationFragmentSource
Current number of fragments available
Specified by:
getFragmentCount in interface InformationFragmentSource

notifyAvailableSourceFragments

public void notifyAvailableSourceFragments(long num_fragments,
                                           InformationFragmentSource source)

getFragment

public InformationFragment getFragment(int index)
Description copied from interface: InformationFragmentSource
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!
Specified by:
getFragment in interface InformationFragmentSource

getFragment

public InformationFragment[] getFragment(int starting_fragment,
                                         int count)
Description copied from interface: InformationFragmentSource
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!
Specified by:
getFragment in interface InformationFragmentSource

notifyAvailableFragmentCount

public void notifyAvailableFragmentCount(int num_fragments)

destroy

public void destroy()
Description copied from interface: InformationFragmentSource
Release all resources and shut down the object
Specified by:
destroy in interface InformationFragmentSource

getStatusReport

public java.lang.String getStatusReport()
Description copied from interface: InformationFragmentSource
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.
Specified by:
getStatusReport in interface InformationFragmentSource


Copyright © 2001 Knowledge Integration Ltd. All Rights Reserved.