com.aelitis.azureus.core.metasearch
Class Result

java.lang.Object
  extended by com.aelitis.azureus.core.metasearch.Result
Direct Known Subclasses:
PluginResult, WebResult

public abstract class Result
extends java.lang.Object


Constructor Summary
protected Result(Engine _engine)
           
 
Method Summary
static java.lang.String adjustLink(java.lang.String link)
           
static void adjustRelativeTerms(java.util.Map map)
           
protected  float applyRankBias(float _rank)
           
abstract  float getAccuracy()
           
abstract  java.lang.String getCategory()
           
abstract  java.lang.String getCDPLink()
           
abstract  int getComments()
           
abstract  java.lang.String getContentType()
           
abstract  java.lang.String getDownloadButtonLink()
           
abstract  java.lang.String getDownloadLink()
           
abstract  java.lang.String getDRMKey()
           
 Engine getEngine()
           
abstract  java.lang.String getHash()
           
abstract  java.lang.String getName()
           
abstract  int getNbPeers()
           
abstract  int getNbSeeds()
           
abstract  int getNbSuperSeeds()
           
abstract  java.lang.String getPlayLink()
           
abstract  java.util.Date getPublishedDate()
           
 float getRank()
           
abstract  java.lang.String getSearchQuery()
           
abstract  long getSize()
           
abstract  java.lang.String getTorrentLink()
           
abstract  java.lang.String getUID()
           
abstract  int getVotes()
           
abstract  int getVotesDown()
           
protected  java.lang.String guessContentTypeFromCategory(java.lang.String category)
           
abstract  boolean isPrivate()
           
protected static java.lang.String removeHTMLTags(java.lang.String input)
           
abstract  void setCategory(java.lang.String category)
           
abstract  void setContentType(java.lang.String contentType)
           
 java.util.Map toJSONMap()
           
 java.lang.String toString()
           
protected static java.lang.String unescapeEntities(java.lang.String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Result

protected Result(Engine _engine)
Method Detail

getPublishedDate

public abstract java.util.Date getPublishedDate()

getCategory

public abstract java.lang.String getCategory()

setCategory

public abstract void setCategory(java.lang.String category)

getContentType

public abstract java.lang.String getContentType()

setContentType

public abstract void setContentType(java.lang.String contentType)

getName

public abstract java.lang.String getName()

getSize

public abstract long getSize()

getNbPeers

public abstract int getNbPeers()

getNbSeeds

public abstract int getNbSeeds()

getNbSuperSeeds

public abstract int getNbSuperSeeds()

getComments

public abstract int getComments()

getVotes

public abstract int getVotes()

getVotesDown

public abstract int getVotesDown()

isPrivate

public abstract boolean isPrivate()

getDRMKey

public abstract java.lang.String getDRMKey()

getDownloadLink

public abstract java.lang.String getDownloadLink()

getTorrentLink

public abstract java.lang.String getTorrentLink()

getDownloadButtonLink

public abstract java.lang.String getDownloadButtonLink()

getCDPLink

public abstract java.lang.String getCDPLink()

getPlayLink

public abstract java.lang.String getPlayLink()

getAccuracy

public abstract float getAccuracy()

getSearchQuery

public abstract java.lang.String getSearchQuery()

getUID

public abstract java.lang.String getUID()

getHash

public abstract java.lang.String getHash()

getEngine

public Engine getEngine()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getRank

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

applyRankBias

protected float applyRankBias(float _rank)

toJSONMap

public java.util.Map toJSONMap()

guessContentTypeFromCategory

protected java.lang.String guessContentTypeFromCategory(java.lang.String category)

adjustLink

public static java.lang.String adjustLink(java.lang.String link)

adjustRelativeTerms

public static void adjustRelativeTerms(java.util.Map map)

removeHTMLTags

protected static final java.lang.String removeHTMLTags(java.lang.String input)

unescapeEntities

protected static final java.lang.String unescapeEntities(java.lang.String input)