Oracle Content Management SDK

oracle.ifs.beans
Class SearchResultObject

java.lang.Object
  |
  +--oracle.ifs.beans.SearchResultObject

public final class SearchResultObject
extends java.lang.Object

The SearchResultObject encapsulates a row of a Search result. A Result row contains one or more LibraryObjects. It also contains the scores of any ContextQualifications if your search was interMedia search.


Method Summary
 LibraryObject getLibraryObject()
          Returns the first object in the SearchResult.
 LibraryObject getLibraryObject(java.lang.String className)
          Returns the result object for the class.
 int getScore(java.lang.String ctxClauseName)
          Returns the score associated with a ContextQualification.
 

Method Detail


getLibraryObject

public LibraryObject getLibraryObject(java.lang.String className)
                               throws IfsException
Returns the result object for the class. If an alias was used in the SearchClassSpecification, it must be specified here.
Parameters:
className - name of the class or alias of the class in the result
Returns:
LibraryObject if present; null otherwise.
Throws:
IfsExceptionm - if the operation fails

getLibraryObject

public LibraryObject getLibraryObject()
                               throws IfsException
Returns the first object in the SearchResult.
Returns:
first object in SearchResult.
Throws:
IfsException - if the operation fails

getScore

public int getScore(java.lang.String ctxClauseName)
             throws IfsException
Returns the score associated with a ContextQualification. The ctxClauseName should be the same as the name specified for the ContextQualification.
Parameters:
ctxClauseName - name of ContextQualification whose score is required.
Returns:
the interMedia score for this row of result.
Throws:
IfeException - if the operation fails.

Oracle Content Management SDK

(c) 2002 Copyright Oracle Corporation. All rights reserved.