com.aelitis.azureus.core.metasearch.impl.plugin
Class PluginResult

java.lang.Object
  extended by com.aelitis.azureus.core.metasearch.Result
      extended by com.aelitis.azureus.core.metasearch.impl.plugin.PluginResult

public class PluginResult
extends Result


Constructor Summary
protected PluginResult(PluginEngine _engine, SearchResult _result, java.lang.String _search_term)
           
 
Method Summary
 float getAccuracy()
           
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.aelitis.azureus.core.metasearch.Result
adjustLink, adjustRelativeTerms, applyRankBias, getEngine, guessContentTypeFromCategory, removeHTMLTags, toJSONMap, toString, unescapeEntities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class Result

getCategory

public java.lang.String getCategory()
Specified by:
getCategory in class Result

setCategory

public void setCategory(java.lang.String category)
Specified by:
setCategory in class Result

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in class Result

setContentType

public void setContentType(java.lang.String contentType)
Specified by:
setContentType in class Result

getName

public java.lang.String getName()
Specified by:
getName in class Result

getSize

public long getSize()
Specified by:
getSize in class Result

getNbPeers

public int getNbPeers()
Specified by:
getNbPeers in class Result

getNbSeeds

public int getNbSeeds()
Specified by:
getNbSeeds in class Result

getNbSuperSeeds

public int getNbSuperSeeds()
Specified by:
getNbSuperSeeds in class Result

getComments

public int getComments()
Specified by:
getComments in class Result

getVotes

public int getVotes()
Specified by:
getVotes in class Result

getVotesDown

public int getVotesDown()
Specified by:
getVotesDown in class Result

isPrivate

public boolean isPrivate()
Specified by:
isPrivate in class Result

getDRMKey

public java.lang.String getDRMKey()
Specified by:
getDRMKey in class Result

getDownloadLink

public java.lang.String getDownloadLink()
Specified by:
getDownloadLink in class Result

getDownloadButtonLink

public java.lang.String getDownloadButtonLink()
Specified by:
getDownloadButtonLink in class Result

getCDPLink

public java.lang.String getCDPLink()
Specified by:
getCDPLink in class Result

getPlayLink

public java.lang.String getPlayLink()
Specified by:
getPlayLink in class Result

getTorrentLink

public java.lang.String getTorrentLink()
Specified by:
getTorrentLink in class Result

getUID

public java.lang.String getUID()
Specified by:
getUID in class Result

getHash

public java.lang.String getHash()
Specified by:
getHash in class Result

getRank

public float getRank()
Overrides:
getRank in class Result
Returns:
a value between 0 and 1 representing the rank of the result

getAccuracy

public float getAccuracy()
Specified by:
getAccuracy in class Result

getSearchQuery

public java.lang.String getSearchQuery()
Specified by:
getSearchQuery in class Result

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)