public class SearchResult
extends java.lang.Object
SearchResultCollection
Constructor and Description |
---|
SearchResult()
Create a new instance
|
SearchResult(int scopeId,
java.lang.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.
|
java.lang.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.
|
void |
setType(java.lang.Class<? extends DataObject> type)
Set the type (class) of objects to search for see
DataObject |
java.lang.String |
toString() |
public SearchResult()
public SearchResult(int scopeId, java.lang.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 java.lang.Class<? extends DataObject> getType()
DataObject
public void setType(java.lang.Class<? extends DataObject> type)
DataObject
type
- 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.public java.lang.String toString()
toString
in class java.lang.Object