public class SearchResult extends Object
SearchResultCollection| Constructor and Description |
|---|
SearchResult()
Create a new instance
|
SearchResult(int scopeId,
Class<? extends DataObject> type,
long objectId,
long groupId)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
long |
getGroupId()
Get the group id of the object
|
DataObject |
getObject()
Get the found object
|
long |
getObjectId()
Get the Id of the found object
|
int |
getScopeId()
The Id of the search scope, e.g. name, description, ...
|
Class<? extends DataObject> |
getType()
Get the type (class) of objects to search for see
DataObject |
boolean |
isIdMatch()
Indicates if this result is an ID match
|
void |
setGroupId(long groupId)
Set the group id of the object
|
void |
setIdMatch(boolean idMatch)
Set to
true if this result is an ID match. |
void |
setObject(DataObject object)
Set the found object
|
void |
setObjectId(long objectId)
Set the Id of the found object
|
void |
setScopeId(int scopeId)
Set the id of the search scope, e.g. name, description, ...
|
void |
setType(Class<? extends DataObject> type)
Set the type (class) of objects to search for see
DataObject |
String |
toString() |
public SearchResult()
public SearchResult(int scopeId,
Class<? extends DataObject> type,
long objectId,
long groupId)
scopeId - Id of the search scope.type - Type of the object to searchobjectId - Id of the found objectgroupId - Id of the group.public int getScopeId()
public void setScopeId(int scopeId)
scopeId - The id of the search scope.public Class<? extends DataObject> getType()
DataObjectpublic void setType(Class<? extends DataObject> type)
DataObjecttype - The type of object to search for.public long getObjectId()
public void setObjectId(long objectId)
objectId - The id of the found object.public DataObject getObject()
public long getGroupId()
public void setGroupId(long groupId)
groupId - The value to set.public boolean isIdMatch()
public void setIdMatch(boolean idMatch)
true if this result is an ID match.idMatch - The value to set.public void setObject(DataObject object)
object - The value to set.
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.