Class PluginResult
- java.lang.Object
-
- com.biglybt.core.metasearch.Result
-
- com.biglybt.core.metasearch.impl.plugin.PluginResult
-
- All Implemented Interfaces:
FilterableResult
public class PluginResult extends Result
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Object
NULL_OBJECT
private java.util.Map
property_cache
private SearchResult
result
private java.lang.String
search_term
-
Constructor Summary
Constructors Modifier Constructor Description protected
PluginResult(PluginEngine _engine, SearchResult _result, java.lang.String _search_term)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getAccuracy()
java.util.Date
getAssetDate()
protected boolean
getBooleanProperty(int name)
protected boolean
getBooleanProperty(int name, boolean def)
protected byte[]
getByteArrayProperty(int name)
java.lang.String
getCategory()
java.lang.String
getCDPLink()
int
getComments()
java.lang.String
getContentType()
java.lang.String
getDownloadButtonLink()
java.lang.String
getDownloadLink()
java.lang.String
getDRMKey()
java.lang.String
getHash()
protected int
getIntProperty(int name)
protected long
getLongProperty(int name)
protected long
getLongProperty(int name, long def)
java.lang.String
getName()
int
getNbPeers()
int
getNbSeeds()
int
getNbSuperSeeds()
java.lang.String
getPlayLink()
java.util.Date
getPublishedDate()
float
getRank()
protected java.lang.Object
getResultProperty(int prop)
java.lang.String
getSearchQuery()
long
getSize()
protected java.lang.String
getStringProperty(int name)
protected java.lang.String
getStringProperty(int name, java.lang.String def)
java.lang.String
getTorrentLink()
java.lang.String
getUID()
int
getVotes()
int
getVotesDown()
boolean
isPrivate()
void
setCategory(java.lang.String category)
void
setContentType(java.lang.String contentType)
-
Methods inherited from class com.biglybt.core.metasearch.Result
adjustLink, adjustRelativeTerms, applyRankBias, getEngine, getTime, guessContentTypeFromCategory, removeHTMLTags, toJSONMap, toString, unescapeEntities
-
-
-
-
Field Detail
-
NULL_OBJECT
private static final java.lang.Object NULL_OBJECT
-
result
private SearchResult result
-
search_term
private java.lang.String search_term
-
property_cache
private java.util.Map property_cache
-
-
Constructor Detail
-
PluginResult
protected PluginResult(PluginEngine _engine, SearchResult _result, java.lang.String _search_term)
-
-
Method Detail
-
getPublishedDate
public java.util.Date getPublishedDate()
- Specified by:
getPublishedDate
in classResult
-
getAssetDate
public java.util.Date getAssetDate()
- Specified by:
getAssetDate
in classResult
-
getCategory
public java.lang.String getCategory()
- Specified by:
getCategory
in interfaceFilterableResult
- Specified by:
getCategory
in classResult
-
setCategory
public void setCategory(java.lang.String category)
- Specified by:
setCategory
in classResult
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in classResult
-
setContentType
public void setContentType(java.lang.String contentType)
- Specified by:
setContentType
in classResult
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceFilterableResult
- Specified by:
getName
in classResult
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceFilterableResult
- Specified by:
getSize
in classResult
-
getNbPeers
public int getNbPeers()
- Specified by:
getNbPeers
in classResult
-
getNbSeeds
public int getNbSeeds()
- Specified by:
getNbSeeds
in interfaceFilterableResult
- Specified by:
getNbSeeds
in classResult
-
getNbSuperSeeds
public int getNbSuperSeeds()
- Specified by:
getNbSuperSeeds
in classResult
-
getComments
public int getComments()
- Specified by:
getComments
in classResult
-
getVotesDown
public int getVotesDown()
- Specified by:
getVotesDown
in classResult
-
getDownloadLink
public java.lang.String getDownloadLink()
- Specified by:
getDownloadLink
in classResult
-
getDownloadButtonLink
public java.lang.String getDownloadButtonLink()
- Specified by:
getDownloadButtonLink
in classResult
-
getCDPLink
public java.lang.String getCDPLink()
- Specified by:
getCDPLink
in classResult
-
getPlayLink
public java.lang.String getPlayLink()
- Specified by:
getPlayLink
in classResult
-
getTorrentLink
public java.lang.String getTorrentLink()
- Specified by:
getTorrentLink
in classResult
-
getRank
public float getRank()
-
getAccuracy
public float getAccuracy()
- Specified by:
getAccuracy
in classResult
-
getSearchQuery
public java.lang.String getSearchQuery()
- Specified by:
getSearchQuery
in classResult
-
getIntProperty
protected int getIntProperty(int name)
-
getLongProperty
protected long getLongProperty(int name)
-
getLongProperty
protected long getLongProperty(int name, long def)
-
getBooleanProperty
protected boolean getBooleanProperty(int name)
-
getBooleanProperty
protected boolean getBooleanProperty(int name, boolean def)
-
getStringProperty
protected java.lang.String getStringProperty(int name)
-
getStringProperty
protected java.lang.String getStringProperty(int name, java.lang.String def)
-
getByteArrayProperty
protected byte[] getByteArrayProperty(int name)
-
getResultProperty
protected java.lang.Object getResultProperty(int prop)
-
-