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 Object


Constructor Summary
protected Result(Engine _engine)
           
 
Method Summary
static String adjustLink(String link)
           
static void adjustRelativeTerms(Map map)
           
protected  float applyRankBias(float _rank)
           
abstract  float getAccuracy()
           
abstract  String getCategory()
           
abstract  String getCDPLink()
           
abstract  int getComments()
           
abstract  String getContentType()
           
abstract  String getDownloadButtonLink()
           
abstract  String getDownloadLink()
           
abstract  String getDRMKey()
           
 Engine getEngine()
           
abstract  String getHash()
           
abstract  String getName()
           
abstract  int getNbPeers()
           
abstract  int getNbSeeds()
           
abstract  int getNbSuperSeeds()
           
abstract  String getPlayLink()
           
abstract  Date getPublishedDate()
           
 float getRank()
           
abstract  String getSearchQuery()
           
abstract  long getSize()
           
abstract  String getUID()
           
abstract  int getVotes()
           
abstract  int getVotesDown()
           
protected  String guessContentTypeFromCategory(String category)
           
abstract  boolean isPrivate()
           
protected static String removeHTMLTags(String input)
           
abstract  void setCategory(String category)
           
abstract  void setContentType(String contentType)
           
 Map toJSONMap()
           
 String toString()
           
protected static String unescapeEntities(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 Date getPublishedDate()

getCategory

public abstract String getCategory()

setCategory

public abstract void setCategory(String category)

getContentType

public abstract String getContentType()

setContentType

public abstract void setContentType(String contentType)

getName

public abstract 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 String getDRMKey()

getDownloadLink

public abstract String getDownloadLink()

getDownloadButtonLink

public abstract String getDownloadButtonLink()

getCDPLink

public abstract String getCDPLink()

getPlayLink

public abstract String getPlayLink()

getAccuracy

public abstract float getAccuracy()

getSearchQuery

public abstract String getSearchQuery()

getUID

public abstract String getUID()

getHash

public abstract String getHash()

getEngine

public Engine getEngine()

toString

public String toString()
Overrides:
toString in class 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 Map toJSONMap()

guessContentTypeFromCategory

protected String guessContentTypeFromCategory(String category)

adjustLink

public static String adjustLink(String link)

adjustRelativeTerms

public static void adjustRelativeTerms(Map map)

removeHTMLTags

protected static final String removeHTMLTags(String input)

unescapeEntities

protected static final String unescapeEntities(String input)