public class SingleSearchResult extends PlatformObject implements IDeferredWorkbenchAdapter
Constructor and Description |
---|
SingleSearchResult(org.apache.axiom.om.OMElement resultDocument,
boolean isTextQuery,
boolean wantKwic,
boolean isComplete)
The Constructor.
|
SingleSearchResult(TextGridObject tgo,
Integer count,
KWICEntry[] kwicEntries)
Deprecated.
use the other constructor
|
Modifier and Type | Method and Description |
---|---|
void |
fetchDeferredChildren(Object object,
IElementCollector collector,
IProgressMonitor monitor)
contains the logic of how to populate, on demand, the children list
|
String |
getAuthors() |
Object[] |
getChildren() |
Object[] |
getChildren(Object o) |
Integer |
getCount() |
ImageDescriptor |
getImageDescriptor(Object object) |
String |
getLabel(Object o) |
Object |
getParent(Object o) |
String |
getProjectName() |
ISchedulingRule |
getRule(Object object) |
String |
getTGMD() |
TextGridObject |
getTGO() |
String |
getURI() |
boolean |
isContainer() |
static KWICEntry[] |
parse_kwicResult(org.apache.axiom.om.OMElement result) |
String |
toString() |
getAdapter
public SingleSearchResult(org.apache.axiom.om.OMElement resultDocument, boolean isTextQuery, boolean wantKwic, boolean isComplete)
resultDocument
- an OMElement
as returned by the
TGSearchRestClient
representing one result document.isTextQuery
- if true, matches will be shown in front of the titlewantKwic
- if true, the result XPath will be evaluated for the KWIC
entries.isComplete
- whether the objects' metadata in the resultDocument
represent a complete
metadata record.public SingleSearchResult(TextGridObject tgo, Integer count, KWICEntry[] kwicEntries)
tgo
- count
- kwicEntries
- public TextGridObject getTGO()
public Integer getCount()
public Object[] getChildren()
public String getURI()
public String getTGMD()
public String getProjectName()
public String getAuthors()
public String toString()
public static KWICEntry[] parse_kwicResult(org.apache.axiom.om.OMElement result)
public void fetchDeferredChildren(Object object, IElementCollector collector, IProgressMonitor monitor)
fetchDeferredChildren
in interface IDeferredWorkbenchAdapter
public ISchedulingRule getRule(Object object)
getRule
in interface IDeferredWorkbenchAdapter
public boolean isContainer()
isContainer
in interface IDeferredWorkbenchAdapter
public Object[] getChildren(Object o)
getChildren
in interface IWorkbenchAdapter
public ImageDescriptor getImageDescriptor(Object object)
getImageDescriptor
in interface IWorkbenchAdapter
public String getLabel(Object o)
getLabel
in interface IWorkbenchAdapter
public Object getParent(Object o)
getParent
in interface IWorkbenchAdapter