|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchResult
Defines the requirements for an object that can be used as result in a search (table).
Field Summary | |
---|---|
static java.lang.String |
BITRATE
The bitrate key. |
static java.lang.String |
FREQUENCY
The length key. |
static java.lang.String |
HIDE_PREFIX
If a key is prefixed with the HIDE_PREFIX string, it is not displayed. |
static java.lang.String |
LENGTH
The length key. |
static java.lang.String |
MD5
SHA1 hash (hidden). |
static java.lang.String |
SHA1
SHA1 hash (hidden). |
static java.lang.String |
URN
URN, see RFC 2141 (hidden). |
Method Summary | |
---|---|
boolean |
canGroup(SearchResult result)
Returns true, if this object and result can be grouped
together. |
SearchResultContainer |
createContainer()
Creates a group root that has this object's properties. |
java.lang.Object |
get(java.lang.String key)
Returns a value. |
javax.swing.Action[] |
getActions()
Returns the actions for this search result. |
int |
getAvailability()
Returns a score between 1 and 255. |
java.lang.String |
getFilename()
Returns the full filename. |
long |
getFilesize()
Returns the filesize. |
java.lang.Object |
getHash()
Used for grouping of results. |
javax.swing.Icon |
getIcon()
Returns a 16x16 icon that is displayed next to the filename. |
java.lang.String[] |
getPath()
Returns the tokenized path without delimeters. |
Peer |
getPeer()
Returns the peer that offer this result for download. |
Plugin |
getPlugin()
Returns the originating plugin. |
java.lang.String |
getShortFilename()
Returns the filename presented to the user. |
int |
getSourcesCount()
Returns the number of sources. |
java.util.Iterator |
keys()
Returns an iterator for all keys that can be retreived by calling get(String) . |
Field Detail |
---|
static final java.lang.String HIDE_PREFIX
static final java.lang.String BITRATE
static final java.lang.String FREQUENCY
static final java.lang.String LENGTH
static final java.lang.String SHA1
static final java.lang.String MD5
static final java.lang.String URN
Method Detail |
---|
boolean canGroup(SearchResult result)
result
can be grouped
together.
SearchResultContainer createContainer()
javax.swing.Action[] getActions()
int getAvailability()
java.lang.Object get(java.lang.String key)
key
- anything like BITRATE, LENGTH...java.lang.String getFilename()
SearchFilter
for
matching.
xnap.search.SearchFilter
long getFilesize()
java.lang.Object getHash()
javax.swing.Icon getIcon()
java.lang.String[] getPath()
new String[] { "C:", "Files", "Share" }
Plugin getPlugin()
java.lang.String getShortFilename()
int getSourcesCount()
Peer getPeer()
java.util.Iterator keys()
get(String)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |