Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 2 (11.2.1.0.0)

E17597-02


oracle.search.query.webservice.client
Class ResultElement

java.lang.Object
  extended by oracle.search.query.webservice.client.ResultElement

All Implemented Interfaces:
Serializable

public class ResultElement
extends Object
implements Serializable

ResultElement encapsulates an element (document) information in the hit-list.

See Also:
Serialized Form

Constructor Summary
ResultElement()
           
ResultElement(String author, String description, String url, String snippet, String title, Date lastModified, String mimetype, Integer score, Integer docID, String language, Integer contentLength, Long signature, String infoSourceID, String infoSourcePath, DataGroup[] groups, Boolean isDuplicate, Boolean hasDuplicate, CustomAttribute[] customAttributes, String fedID)
           

 

Method Summary
 String getAuthor()
          Returns the author of the document.
 Integer getContentLength()
          Returns the content length of the document.
 CustomAttribute[] getCustomAttributes()
          Returns the non-default attributes of the document requested in the search methods.
 String getDescription()
          Returns the description of the document.
 Integer getDocID()
          Returns the ID of the document.
 String getFedID()
          Returns the ID of the federated instance to which the document belongs.
 DataGroup[] getGroups()
          Returns the data groups to which the document belongs.
 Boolean getHasDuplicate()
          Returns a Boolean value indicating if the document has one or more duplicate documents in the hit-list.
 String getInfoSourceID()
          Returns the infosource ID of the document.
 String getInfoSourcePath()
          Returns the infosource path of the document.
 Boolean getIsDuplicate()
          Returns a Boolean value indicating if the document is a duplicate document of another document in the hit-list.
 String getLanguage()
          Returns the language of the document.
 Date getLastModified()
          Returns the last modified date of the document.
 String getMimetype()
          Returns the MIME type of the document.
 Integer getScore()
          Returns the relevance score of the document.
 Long getSignature()
          Returns the signature of the document.
 String getSnippet()
          Returns keywords in context (KWIC) of the document for the given query.
 String getTitle()
          Returns the title of the document.
 String getUrl()
          Returns the URL to access the document.
 Boolean isHasDuplicate()
           
 Boolean isIsDuplicate()
           
 void setAuthor(String author)
          Sets the author for the document.
 void setContentLength(Integer contentLength)
          Sets the content length of the document.
 void setCustomAttributes(CustomAttribute[] customAttributes)
          Sets custom (non-default) attributes of the document.
 void setDescription(String description)
          Sets the description of the document.
 void setDocID(Integer docID)
          Sets the ID of the document.
 void setFedID(String fedID)
          Sets the ID of the federated instance to which the document belongs.
 void setGroups(DataGroup[] groups)
          Sets the data groups to which the document belongs.
 void setHasDuplicate(Boolean hasDuplicate)
          Sets the Boolean value indicating if the document has one or more duplicate documents in the hit-list.
 void setInfoSourceID(String infoSourceID)
          Sets the infosource ID of the document.
 void setInfoSourcePath(String infoSourcePath)
          Sets the infosource path of the document.
 void setIsDuplicate(Boolean isDuplicate)
          Sets the Boolean value indicating if the document is duplicate of another document in the hit-list.
 void setLanguage(String language)
          Sets the language of the document.
 void setLastModified(Date lastModified)
          Sets the last modified date for the document.
 void setMimetype(String mimetype)
          Sets the MIME type of the document.
 void setScore(Integer score)
          Sets the relevance score of the document.
 void setSignature(Long signature)
          Sets the signature of the document.
 void setSnippet(String snippet)
          Sets the keywords in context (KWIC) of the document for a given query.
 void setTitle(String title)
          Sets the title for the document.
 void setUrl(String url)
          Sets the URL to access the document.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ResultElement

public ResultElement()

ResultElement

public ResultElement(String author,
                     String description,
                     String url,
                     String snippet,
                     String title,
                     Date lastModified,
                     String mimetype,
                     Integer score,
                     Integer docID,
                     String language,
                     Integer contentLength,
                     Long signature,
                     String infoSourceID,
                     String infoSourcePath,
                     DataGroup[] groups,
                     Boolean isDuplicate,
                     Boolean hasDuplicate,
                     CustomAttribute[] customAttributes,
                     String fedID)
Parameters:
author - author of the document
description - description of the document
url - URL to access the document
title - title of the document
lastModified - last modified date of the document
mimetype - MIME type of the document
score - relevance score of the document
docID - ID of the document
language - language of the document
contentLength - size of the document
signature - signature of the document
infoSourceID - infosource ID of the document
infoSourcePath - infosource path of the document
groups - source groups to which the documents belongs
isDuplicate - Boolean value indicating if the document is a duplicate of another document in the hit list
hasDuplicate - Boolean value indicating if the document has one or more duplicates in the hit list
customAttributes - custom (non-default) attributes of the document that were requested in the search methods
fedID - ID of the federated instance to which the document belongs

Method Detail

getAuthor

public String getAuthor()
Returns the author of the document.

setAuthor

public void setAuthor(String author)
Sets the author for the document.
Parameters:
author - author of the document

getDescription

public String getDescription()
Returns the description of the document.

setDescription

public void setDescription(String description)
Sets the description of the document.
Parameters:
description - description of the document

getUrl

public String getUrl()
Returns the URL to access the document.

setUrl

public void setUrl(String url)
Sets the URL to access the document.
Parameters:
url - URL of the document

getSnippet

public String getSnippet()
Returns keywords in context (KWIC) of the document for the given query.

setSnippet

public void setSnippet(String snippet)
Sets the keywords in context (KWIC) of the document for a given query.
Parameters:
snippet - keywords in context of the document for a given query

getTitle

public String getTitle()
Returns the title of the document.

setTitle

public void setTitle(String title)
Sets the title for the document.
Parameters:
title - title of the document

getLastModified

public Date getLastModified()
Returns the last modified date of the document.

setLastModified

public void setLastModified(Date lastModified)
Sets the last modified date for the document.
Parameters:
lastModified - last modifed date of the document

getMimetype

public String getMimetype()
Returns the MIME type of the document.

setMimetype

public void setMimetype(String mimetype)
Sets the MIME type of the document.
Parameters:
mimetype - MIME type of the document

getScore

public Integer getScore()
Returns the relevance score of the document.

setScore

public void setScore(Integer score)
Sets the relevance score of the document.
Parameters:
score - relevance score of the document

getDocID

public Integer getDocID()
Returns the ID of the document.

setDocID

public void setDocID(Integer docID)
Sets the ID of the document.
Parameters:
docID - ID of the document

getLanguage

public String getLanguage()
Returns the language of the document.

setLanguage

public void setLanguage(String language)
Sets the language of the document.
Parameters:
language - language of the document

getContentLength

public Integer getContentLength()
Returns the content length of the document.

setContentLength

public void setContentLength(Integer contentLength)
Sets the content length of the document.
Parameters:
contentLength - content length of the document

getSignature

public Long getSignature()
Returns the signature of the document.

setSignature

public void setSignature(Long signature)
Sets the signature of the document.
Parameters:
signature - signature of the document

getInfoSourceID

public String getInfoSourceID()
Returns the infosource ID of the document.

setInfoSourceID

public void setInfoSourceID(String infoSourceID)
Sets the infosource ID of the document.
Parameters:
infoSourceID - infosource ID of the document

getInfoSourcePath

public String getInfoSourcePath()
Returns the infosource path of the document.

setInfoSourcePath

public void setInfoSourcePath(String infoSourcePath)
Sets the infosource path of the document.
Parameters:
infoSourcePath - infosource path of the document

getGroups

public DataGroup[] getGroups()
Returns the data groups to which the document belongs.

setGroups

public void setGroups(DataGroup[] groups)
Sets the data groups to which the document belongs.
Parameters:
groups - data groups to which the document belongs

getIsDuplicate

public Boolean getIsDuplicate()
Returns a Boolean value indicating if the document is a duplicate document of another document in the hit-list.

isIsDuplicate

public Boolean isIsDuplicate()

setIsDuplicate

public void setIsDuplicate(Boolean isDuplicate)
Sets the Boolean value indicating if the document is duplicate of another document in the hit-list.
Parameters:
isDuplicate - Boolean value indicating if the document is duplicate of another document in the hit-list

getHasDuplicate

public Boolean getHasDuplicate()
Returns a Boolean value indicating if the document has one or more duplicate documents in the hit-list.

isHasDuplicate

public Boolean isHasDuplicate()

setHasDuplicate

public void setHasDuplicate(Boolean hasDuplicate)
Sets the Boolean value indicating if the document has one or more duplicate documents in the hit-list.
Parameters:
hasDuplicate - a Boolean value indicating if the document has one or more duplicate documents in the hit-list

getFedID

public String getFedID()
Returns the ID of the federated instance to which the document belongs.

setFedID

public void setFedID(String fedID)
Sets the ID of the federated instance to which the document belongs.
Parameters:
fedID - ID of the federated instance to which document belongs.

getCustomAttributes

public CustomAttribute[] getCustomAttributes()
Returns the non-default attributes of the document requested in the search methods.

setCustomAttributes

public void setCustomAttributes(CustomAttribute[] customAttributes)
Sets custom (non-default) attributes of the document.
Parameters:
customAttributes - array of custom (non-default) attributes for the document

Skip navigation links

Oracle Secure Enterprise Search Java API Reference
11g Release 2 (11.2.1.0.0)

E17597-02


Copyright © 2006, 2011, Oracle and/or its affiliates. All rights reserved.