|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.search.MetaInfoFileSearchResult
public class MetaInfoFileSearchResult
This class stores a local search result.
Field Summary | |
---|---|
static javax.swing.Icon |
ICON
|
Fields inherited from interface org.xnap.search.SearchResult |
---|
BITRATE, FREQUENCY, HIDE_PREFIX, LENGTH, MD5, SHA1, URN |
Constructor Summary | |
---|---|
MetaInfoFileSearchResult(MetaInfoFile file)
|
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. |
java.io.File[] |
getFiles()
Invoked by an action to query the selected File objects. |
long |
getFilesize()
Returns the filesize. |
java.lang.Object |
getHash()
Used for grouping of results. |
javax.swing.Icon |
getIcon()
Returns null; |
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 name of the file. |
int |
getSourcesCount()
Returns the number of sources. |
java.util.Iterator |
keys()
Returns the keys of the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static javax.swing.Icon ICON
Constructor Detail |
---|
public MetaInfoFileSearchResult(MetaInfoFile file)
Method Detail |
---|
public boolean canGroup(SearchResult result)
SearchResult
result
can be grouped
together.
canGroup
in interface SearchResult
public SearchResultContainer createContainer()
SearchResult
createContainer
in interface SearchResult
public java.lang.Object get(java.lang.String key)
SearchResult
get
in interface SearchResult
key
- anything like BITRATE, LENGTH...public javax.swing.Action[] getActions()
SearchResult
getActions
in interface SearchResult
public int getAvailability()
SearchResult
getAvailability
in interface SearchResult
public java.io.File[] getFiles()
FileProvider
File
objects.
getFiles
in interface FileProvider
public java.lang.String getFilename()
SearchResult
SearchFilter
for
matching.
getFilename
in interface SearchResult
xnap.search.SearchFilter
public long getFilesize()
SearchResult
getFilesize
in interface SearchResult
public java.lang.Object getHash()
SearchResult
getHash
in interface SearchResult
public javax.swing.Icon getIcon()
getIcon
in interface SearchResult
public java.lang.String[] getPath()
SearchResult
new String[] { "C:", "Files", "Share" }
getPath
in interface SearchResult
public Plugin getPlugin()
SearchResult
getPlugin
in interface SearchResult
public int getSourcesCount()
SearchResult
getSourcesCount
in interface SearchResult
public java.lang.String getShortFilename()
getShortFilename
in interface SearchResult
public Peer getPeer()
SearchResult
getPeer
in interface SearchResult
public java.util.Iterator keys()
keys
in interface SearchResult
MetaInfoFile.keys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |