de.fh_mannheim.mm.dms.framework
Class SearchResult

java.lang.Object
  extended byde.fh_mannheim.mm.dms.framework.Upload
      extended byde.fh_mannheim.mm.dms.framework.SearchResult
All Implemented Interfaces:
IElement

public class SearchResult
extends Upload
implements IElement

Discribes a search result corresponding to a found upload.

Version:
$Revision: 1.8 $
Author:
Jan Löffler

Field Summary
 
Fields inherited from class de.fh_mannheim.mm.dms.framework.Upload
FILESTATE_COUNT, FILESTATE_EXTERNAL, FILESTATE_MISSING, FILESTATE_OK, FILETYPE_ALL, FILETYPE_CHM, FILETYPE_COUNT, FILETYPE_DOC, FILETYPE_HTML, FILETYPE_PDF, FILETYPE_PPT, FILETYPE_PS, FILETYPE_RAR, FILETYPE_RTF, FILETYPE_TXT, FILETYPE_XLS, FILETYPE_XML, FILETYPE_ZIP, LANGUAGE_COUNT, LANGUAGE_ENGLISH, LANGUAGE_FRENCH, LANGUAGE_GERMAN, LANGUAGE_MULTILINGUAL, NEW_DAYRANGE, PRIORITY_COUNT, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_REALTIME, strEXTENSION_ALL, strEXTENSION_BMP, strEXTENSION_CHM, strEXTENSION_CLASS, strEXTENSION_CSS, strEXTENSION_DOC, strEXTENSION_GIF, strEXTENSION_HTM, strEXTENSION_HTML, strEXTENSION_JPG, strEXTENSION_JS, strEXTENSION_PDF, strEXTENSION_PNG, strEXTENSION_PPS, strEXTENSION_PPT, strEXTENSION_PS, strEXTENSION_RAR, strEXTENSION_RTF, strEXTENSION_TXT, strEXTENSION_XLS, strEXTENSION_XML, strEXTENSION_ZIP, strUNKNOWN, UNKNOWN
 
Constructor Summary
SearchResult()
          Constructor.
SearchResult(Upload upload, double dRelevance)
          Constructor.
 
Method Summary
 double getRelevance()
          Get relevance of search.
 void setRelevance(double dRelevance)
          Set relevance of search.
 org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
          Write information of user in a xml element.
 org.w3c.dom.Element toElement(org.w3c.dom.Element element, org.w3c.dom.Document doc)
          Write information of user in a xml element.
 java.lang.String toString()
          Write information of uploadorder in a string.
 
Methods inherited from class de.fh_mannheim.mm.dms.framework.Upload
equals, getAuthorID, getAuthorname, getAvailableLanguages, getCategory, getDescription, getExtension, getFilename, getFiletype, getFiletype, getFiletypeByName, getFiletypeShortText, getFiletypeShortText, getFiletypeText, getFiletypeText, getID, getLanguage, getLanguage, getLanguageText, getLanguageText, getPath, getPriority, getPriority, getPriorityText, getPriorityText, getSize, getSize, getState, getState, getStateText, getStateText, getStateText, getTitle, getUploadDate, isKnownLanguage, isKnownLanguage, isNew, isOptionalFiletype, isOptionalFiletype, isURL, isValidFiletype, isValidFiletype, setAuthor, setAuthorname, setCategory, setDescription, setFilename, setID, setLanguage, setPriority, setSize, setSize, setState, setState, setTitle, setUploadDate, setUploadDate
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchResult

public SearchResult()
Constructor.


SearchResult

public SearchResult(Upload upload,
                    double dRelevance)
Constructor.

Parameters:
upload - Upload data
dRelevance - Relevance of search result
Method Detail

getRelevance

public double getRelevance()
Get relevance of search.

Returns:
Relevance of search

setRelevance

public void setRelevance(double dRelevance)
Set relevance of search.

Parameters:
dRelevance - Relevance of search

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
Write information of user in a xml element.

Specified by:
toElement in interface IElement
Overrides:
toElement in class Upload
Parameters:
doc - XML Document
Returns:
element

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Element element,
                                     org.w3c.dom.Document doc)
Write information of user in a xml element.

Specified by:
toElement in interface IElement
Overrides:
toElement in class Upload
Parameters:
element - Root element
doc - XML Document
Returns:
element

toString

public java.lang.String toString()
Write information of uploadorder in a string.

Specified by:
toString in interface IElement
Overrides:
toString in class Upload
Returns:
information