|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.bio.search.SearchContentAdapter
org.biojava.bio.search.FilteringContentHandler
public class FilteringContentHandler
| Nested Class Summary | |
|---|---|
class |
FilteringContentHandler.FilterVisitor
Visitor class that parses the filter tree |
| Constructor Summary | |
|---|---|
FilteringContentHandler(BlastLikeSearchFilter filter)
|
|
FilteringContentHandler(BlastLikeSearchFilter filter,
SearchContentHandler delegate)
|
|
| Method Summary | |
|---|---|
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. |
Object |
getHitProperty(Object key)
|
Object |
getSearchProperty(Object key)
|
Object |
getSubHitProperty(Object key)
|
void |
setDatabaseID(String id)
setDatabaseID identifies the database searched by
a name, ID or URN. |
void |
setQueryID(String queryID)
setQueryID identifies the query sequence by a
name, ID or URN. |
void |
setSearchContentHandler(SearchContentHandler delegate)
|
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. |
| Methods inherited from class org.biojava.bio.search.SearchContentAdapter |
|---|
getMoreSearches, setMoreSearches |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilteringContentHandler(BlastLikeSearchFilter filter,
SearchContentHandler delegate)
throws BioException
BioException
public FilteringContentHandler(BlastLikeSearchFilter filter)
throws BioException
BioException| Method Detail |
|---|
public Object getSearchProperty(Object key)
getSearchProperty in interface BlastLikeSearchFilter.Nodepublic Object getHitProperty(Object key)
getHitProperty in interface BlastLikeSearchFilter.Nodepublic Object getSubHitProperty(Object key)
getSubHitProperty in interface BlastLikeSearchFilter.Nodepublic void setSearchContentHandler(SearchContentHandler delegate)
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 SearchContentHandlerstartHeader in class SearchContentAdapterpublic void setDatabaseID(String id)
SearchContentHandlersetDatabaseID identifies the database searched by
a name, ID or URN.
setDatabaseID in interface SearchContentHandlersetDatabaseID in class SearchContentAdapterid - a String which should be an unique
identifier for the database searched.public void endHeader()
SearchContentHandlerendHeader method indicates the end of a
formatted header.
endHeader in interface SearchContentHandlerendHeader in class SearchContentAdapterpublic void startSearch()
SearchContentHandlerstartSearch method indicates the start of
useful search information.
startSearch in interface SearchContentHandlerstartSearch in class SearchContentAdapterpublic void setQueryID(String queryID)
SearchContentHandlersetQueryID identifies the query sequence by a
name, ID or URN.
setQueryID in interface SearchContentHandlersetQueryID in class SearchContentAdapterqueryID - a String which should be an unique
identifer for the sequence.
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 SearchContentHandleraddSearchProperty in class SearchContentAdapterkey - an Object.value - an Object.public 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 SearchContentHandlerstartHit in class SearchContentAdapter
public void addHitProperty(Object key,
Object value)
SearchContentHandleraddHitProperty method adds a key/value pair
containing some property of a particular hit.
addHitProperty in interface SearchContentHandleraddHitProperty in class SearchContentAdapterkey - an Object.value - an Object.public void startSubHit()
SearchContentHandlerstartSubHit method indicates the start of a
formatted subhit. There may be zero or more of these per hit.
startSubHit in interface SearchContentHandlerstartSubHit in class SearchContentAdapter
public void addSubHitProperty(Object key,
Object value)
SearchContentHandleraddSubHitProperty method adds a key/value pair
containing some property of a particular subhit.
addSubHitProperty in interface SearchContentHandleraddSubHitProperty in class SearchContentAdapterkey - an Object.value - an Object.public void endSubHit()
SearchContentHandlerendSubHit method indicates the end of a
formatted subhit.
endSubHit in interface SearchContentHandlerendSubHit in class SearchContentAdapterpublic void endHit()
SearchContentHandlerendHit method indicates the end of a formatted
hit.
endHit in interface SearchContentHandlerendHit in class SearchContentAdapterpublic void endSearch()
SearchContentHandlerendSearch method indicates the end of useful
search information.
endSearch in interface SearchContentHandlerendSearch in class SearchContentAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||