public final class SearchResultObject extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
m_DefaultResultClass |
protected Hashtable |
m_Objects |
protected Hashtable |
m_Scores |
Constructor and Description |
---|
SearchResultObject(LibrarySession sess,
S_SearchResultObjectData sData)
Constructs a SearchResultObject from SearchResultObjectData.
|
Modifier and Type | Method and Description |
---|---|
LibraryObject |
getLibraryObject()
Returns the first object in the SearchResult.
|
LibraryObject |
getLibraryObject(String className)
Returns the result object for the class.
|
int |
getScore(String ctxClauseName)
Returns the score associated with a ContextQualification.
|
protected Hashtable m_Objects
protected Hashtable m_Scores
protected String m_DefaultResultClass
public SearchResultObject(LibrarySession sess, S_SearchResultObjectData sData) throws IfsException
sess
- LibrarySession used for constructing LibrarYObjects from Dats objectssData
- SearchResultObjectData structureIfsException
- if constructing of elements of SearchResult failspublic LibraryObject getLibraryObject(String className) throws IfsException
className
- name of the class or alias of the class in the resultIfsExceptionm
- if the operation failsIfsException
public LibraryObject getLibraryObject() throws IfsException
IfsException
- if the operation failspublic int getScore(String ctxClauseName) throws IfsException
ctxClauseName
- name of ContextQualification whose score is required.IfeException
- if the operation fails.IfsException
Copyright © 2023. All rights reserved.