|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgd.comapi.QueryResultSet
public class QueryResultSet
Class for representing a set of search-results -entries from a GD query
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface jgd.jaxb.ResultsType |
---|
ResultsType.ResultType |
Field Summary | |
---|---|
private int |
availableCount
|
protected java.lang.Integer |
count
|
protected java.util.List<GoogleDesktopIndexable> |
queryResultItems
|
private java.lang.String |
queryString
|
private int |
readyState
|
Constructor Summary | |
---|---|
QueryResultSet()
Sets the counter and the current set of QueryResultItem(s) both to null |
|
QueryResultSet(int count)
Sets the current set of QueryResultItem(s) to null |
|
QueryResultSet(java.lang.Integer count)
|
|
QueryResultSet(java.lang.Integer count,
java.util.List<GoogleDesktopIndexable> queryResultItems)
|
Method Summary | |
---|---|
int |
getAvailableCount()
|
int |
getCount()
See the section Result Objects under http://desktop.google.com/queryapi.html#queryex |
java.util.List<GoogleDesktopIndexable> |
getQueryResultItems()
|
java.lang.String |
getQueryString()
|
int |
getReadyState()
|
java.util.List |
getResult()
Result of search from document http://desktop.google.com/queryapi.html . |
void |
setAvailableCount(int availableCount)
|
void |
setCount(int value)
|
void |
setCount(java.lang.Integer newCount)
See the section Result Objects under http://desktop.google.com/queryapi.html#queryex |
void |
setQueryResultItems(java.util.List<GoogleDesktopIndexable> queryResultItems2)
Should only be used internally during query.execute() |
void |
setReadyState(int readyState)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Integer count
protected java.util.List<GoogleDesktopIndexable> queryResultItems
private int readyState
private int availableCount
private java.lang.String queryString
Constructor Detail |
---|
public QueryResultSet()
jgd.comapi.QueryResultSet(Integer,List)
public QueryResultSet(int count)
jgd.comapi.QueryResultSet(Integer,List)
public QueryResultSet(java.lang.Integer count)
jgd.comapi.QueryResultSet(Integer,List)
public QueryResultSet(java.lang.Integer count, java.util.List<GoogleDesktopIndexable> queryResultItems)
setCount(Integer)
,
jgd.comapi.QueryResultSet#setQueryResultItems(List)
Method Detail |
---|
public int getCount()
getCount
in interface ResultsType
public void setCount(java.lang.Integer newCount)
public java.util.List<GoogleDesktopIndexable> getQueryResultItems()
public void setQueryResultItems(java.util.List<GoogleDesktopIndexable> queryResultItems2)
QueryCOM.execute()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List getResult()
ResultsType
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the Result property.
For example, to add a new item, do as follows:
getResult().add(newItem);
Objects of the following type(s) are allowed in the list
ResultsType.ResultType
getResult
in interface ResultsType
public void setCount(int value)
public int getAvailableCount()
getAvailableCount
in interface IJGDResults
public int getReadyState()
getReadyState
in interface IJGDResults
public void setReadyState(int readyState)
public void setAvailableCount(int availableCount)
public java.lang.String getQueryString()
getQueryString
in interface IJGDResults
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |