public class SearchContentHandlerDebugger extends Object implements SearchContentHandler
| Constructor and Description |
|---|
SearchContentHandlerDebugger()
Create an instance that dumps to System.out.
|
SearchContentHandlerDebugger(PrintStream pStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHitProperty(Object key,
Object value)
The
addHitProperty method adds a key/value pair
containing some property of a particular hit. |
void |
addSearchProperty(Object key,
Object value)
The
addSearchProperty method adds a key/value pair
containing some property of the overall search result. |
void |
addSubHitProperty(Object key,
Object value)
The
addSubHitProperty method adds a key/value pair
containing some property of a particular subhit. |
void |
endHeader()
The
endHeader method indicates the end of a
formatted header. |
void |
endHit()
The
endHit method indicates the end of a formatted
hit. |
void |
endSearch()
The
endSearch method indicates the end of useful
search information. |
void |
endSubHit()
The
endSubHit method indicates the end of a
formatted subhit. |
boolean |
getMoreSearches()
getMoreSearches returns the state of the
SearchContentHandler with respect to further
searches from its data source. |
void |
setDatabaseID(String databaseID)
setDatabaseID identifies the database searched by
a name, ID or URN. |
void |
setMoreSearches(boolean value)
setMoreSearches sets the state of the
SearchContentHandler's expectation of receiving
more results. |
void |
setQueryID(String queryID)
setQueryID identifies the query sequence by a
name, ID or URN. |
void |
startHeader()
The
startHeader method indicates the start of a
formatted header. |
void |
startHit()
The
startHit method indicates the start of a
formatted hit. |
void |
startSearch()
The
startSearch method indicates the start of
useful search information. |
void |
startSubHit()
The
startSubHit method indicates the start of a
formatted subhit. |
public SearchContentHandlerDebugger()
public SearchContentHandlerDebugger(PrintStream pStream)
pStream - Stream to dump output to.public void addHitProperty(Object key, Object value)
SearchContentHandleraddHitProperty method adds a key/value pair
containing some property of a particular hit.addHitProperty in interface SearchContentHandlerkey - an Object.value - an Object.public void addSubHitProperty(Object key, Object value)
SearchContentHandleraddSubHitProperty method adds a key/value pair
containing some property of a particular subhit.addSubHitProperty in interface SearchContentHandlerkey - an Object.value - an Object.public void addSearchProperty(Object key, Object value)
SearchContentHandleraddSearchProperty method adds a key/value pair
containing some property of the overall search result.addSearchProperty in interface SearchContentHandlerkey - an Object.value - an Object.public void setMoreSearches(boolean value)
SearchContentHandlersetMoreSearches sets the state of the
SearchContentHandler's expectation of receiving
more results. Used for handling streams of search results.setMoreSearches in interface SearchContentHandlervalue - a boolean value.public boolean getMoreSearches()
SearchContentHandlergetMoreSearches returns the state of the
SearchContentHandler with respect to further
searches from its data source. Used for handling streams of
search results.getMoreSearches in interface SearchContentHandlerboolean value.public void endHeader()
SearchContentHandlerendHeader method indicates the end of a
formatted header.endHeader in interface SearchContentHandlerpublic void endHit()
SearchContentHandlerendHit method indicates the end of a formatted
hit.endHit in interface SearchContentHandlerpublic void endSearch()
SearchContentHandlerendSearch method indicates the end of useful
search information.endSearch in interface SearchContentHandlerpublic void endSubHit()
SearchContentHandlerendSubHit method indicates the end of a
formatted subhit.endSubHit in interface SearchContentHandlerpublic void setDatabaseID(String databaseID)
SearchContentHandlersetDatabaseID identifies the database searched by
a name, ID or URN.setDatabaseID in interface SearchContentHandlerdatabaseID - a String which should be an unique
identifier for the database searched.public void setQueryID(String queryID)
SearchContentHandlersetQueryID identifies the query sequence by a
name, ID or URN.setQueryID in interface SearchContentHandlerqueryID - a String which should be an unique
identifer for the sequence.public void startHeader()
SearchContentHandlerstartHeader method indicates the start of a
formatted header. This usually contains information relevant to
the search as a whole.startHeader in interface SearchContentHandlerpublic void startHit()
SearchContentHandlerstartHit method indicates the start of a
formatted hit. This could be a single line, or a block of
lines.startHit in interface SearchContentHandlerpublic void startSearch()
SearchContentHandlerstartSearch method indicates the start of
useful search information.startSearch in interface SearchContentHandlerpublic void startSubHit()
SearchContentHandlerstartSubHit method indicates the start of a
formatted subhit. There may be zero or more of these per hit.startSubHit in interface SearchContentHandlerCopyright © 2014 BioJava. All rights reserved.