public class FilteringContentHandler extends SearchContentAdapter implements BlastLikeSearchFilter.Node
Modifier and Type | Class and Description |
---|---|
class |
FilteringContentHandler.FilterVisitor
Visitor class that parses the filter tree
|
Constructor and Description |
---|
FilteringContentHandler(BlastLikeSearchFilter filter) |
FilteringContentHandler(BlastLikeSearchFilter filter,
SearchContentHandler delegate) |
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. |
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. |
getMoreSearches, setMoreSearches
public FilteringContentHandler(BlastLikeSearchFilter filter, SearchContentHandler delegate) throws BioException
BioException
public FilteringContentHandler(BlastLikeSearchFilter filter) throws BioException
BioException
public Object getSearchProperty(Object key)
getSearchProperty
in interface BlastLikeSearchFilter.Node
public Object getHitProperty(Object key)
getHitProperty
in interface BlastLikeSearchFilter.Node
public Object getSubHitProperty(Object key)
getSubHitProperty
in interface BlastLikeSearchFilter.Node
public void setSearchContentHandler(SearchContentHandler delegate)
public void startHeader()
SearchContentHandler
startHeader
method indicates the start of a
formatted header. This usually contains information relevant to
the search as a whole.startHeader
in interface SearchContentHandler
startHeader
in class SearchContentAdapter
public void setDatabaseID(String id)
SearchContentHandler
setDatabaseID
identifies the database searched by
a name, ID or URN.setDatabaseID
in interface SearchContentHandler
setDatabaseID
in class SearchContentAdapter
id
- a String
which should be an unique
identifier for the database searched.public void endHeader()
SearchContentHandler
endHeader
method indicates the end of a
formatted header.endHeader
in interface SearchContentHandler
endHeader
in class SearchContentAdapter
public void startSearch()
SearchContentHandler
startSearch
method indicates the start of
useful search information.startSearch
in interface SearchContentHandler
startSearch
in class SearchContentAdapter
public void setQueryID(String queryID)
SearchContentHandler
setQueryID
identifies the query sequence by a
name, ID or URN.setQueryID
in interface SearchContentHandler
setQueryID
in class SearchContentAdapter
queryID
- a String
which should be an unique
identifer for the sequence.public void addSearchProperty(Object key, Object value)
SearchContentHandler
addSearchProperty
method adds a key/value pair
containing some property of the overall search result.addSearchProperty
in interface SearchContentHandler
addSearchProperty
in class SearchContentAdapter
key
- an Object
.value
- an Object
.public void startHit()
SearchContentHandler
startHit
method indicates the start of a
formatted hit. This could be a single line, or a block of
lines.startHit
in interface SearchContentHandler
startHit
in class SearchContentAdapter
public void addHitProperty(Object key, Object value)
SearchContentHandler
addHitProperty
method adds a key/value pair
containing some property of a particular hit.addHitProperty
in interface SearchContentHandler
addHitProperty
in class SearchContentAdapter
key
- an Object
.value
- an Object
.public void startSubHit()
SearchContentHandler
startSubHit
method indicates the start of a
formatted subhit. There may be zero or more of these per hit.startSubHit
in interface SearchContentHandler
startSubHit
in class SearchContentAdapter
public void addSubHitProperty(Object key, Object value)
SearchContentHandler
addSubHitProperty
method adds a key/value pair
containing some property of a particular subhit.addSubHitProperty
in interface SearchContentHandler
addSubHitProperty
in class SearchContentAdapter
key
- an Object
.value
- an Object
.public void endSubHit()
SearchContentHandler
endSubHit
method indicates the end of a
formatted subhit.endSubHit
in interface SearchContentHandler
endSubHit
in class SearchContentAdapter
public void endHit()
SearchContentHandler
endHit
method indicates the end of a formatted
hit.endHit
in interface SearchContentHandler
endHit
in class SearchContentAdapter
public void endSearch()
SearchContentHandler
endSearch
method indicates the end of useful
search information.endSearch
in interface SearchContentHandler
endSearch
in class SearchContentAdapter
Copyright © 2014 BioJava. All rights reserved.