jgd.comapi
Class ResultsIteratorCOM

java.lang.Object
  extended by jgd.comapi.ResultsIteratorCOM
All Implemented Interfaces:
java.util.Iterator, IJGDResults, IJGDResultsIterator, Results, ResultsType

public class ResultsIteratorCOM
extends java.lang.Object
implements java.util.Iterator, IJGDResults, IJGDResultsIterator


Nested Class Summary
 
Nested classes/interfaces inherited from interface jgd.jaxb.ResultsType
ResultsType.ResultType
 
Field Summary
private static java.lang.Class[] CONSTRUCTOR_ITEMS_ARGS
           
(package private)  boolean empty
           
(package private)  int itemCount
           
private  java.lang.String queryString
           
(package private)  com.jacob.com.Variant searchResultVariant
           
 
Constructor Summary
protected ResultsIteratorCOM(com.jacob.com.Variant searchResultVariant, java.lang.String querString)
           
 
Method Summary
private  GoogleDesktopIndexable generateIndexable(java.lang.String schema, com.jacob.com.Variant searchResultEntryVariant)
           
private  GoogleDesktopIndexable generateResultItem(int i, com.jacob.com.Variant searchResultEntryVariant)
           
 int getAvailableCount()
           
 int getCount()
          Gets the value of the count property.
 java.lang.String getQueryString()
           
 int getReadyState()
           
 java.util.List getResult()
          Result of search from document http://desktop.google.com/queryapi.html .
 boolean hasNext()
           
 java.lang.Object next()
           
 GoogleDesktopIndexable nextResultItem()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itemCount

int itemCount

CONSTRUCTOR_ITEMS_ARGS

private static final java.lang.Class[] CONSTRUCTOR_ITEMS_ARGS

empty

boolean empty

searchResultVariant

com.jacob.com.Variant searchResultVariant

queryString

private java.lang.String queryString
Constructor Detail

ResultsIteratorCOM

protected ResultsIteratorCOM(com.jacob.com.Variant searchResultVariant,
                             java.lang.String querString)
Method Detail

nextResultItem

public GoogleDesktopIndexable nextResultItem()
Specified by:
nextResultItem in interface IJGDResultsIterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in interface IJGDResultsIterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Specified by:
next in interface IJGDResultsIterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator
Specified by:
remove in interface IJGDResultsIterator

getAvailableCount

public int getAvailableCount()
Specified by:
getAvailableCount in interface IJGDResults
Specified by:
getAvailableCount in interface IJGDResultsIterator

getReadyState

public int getReadyState()
Specified by:
getReadyState in interface IJGDResults
Specified by:
getReadyState in interface IJGDResultsIterator

getCount

public int getCount()
Description copied from interface: ResultsType
Gets the value of the count property.

Specified by:
getCount in interface IJGDResultsIterator
Specified by:
getCount in interface ResultsType

getResult

public java.util.List getResult()
Description copied from interface: ResultsType
Result of search from document http://desktop.google.com/queryapi.html . Each "result" may include the following fields, which may appear in any order. Which fields appear will depend on the result type; for example, the "from" entry should only show up in email or chat results. Each tag will contain a value; any tags not containing a value are not shown. Gets the value of the Result property.

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

Specified by:
getResult in interface ResultsType

generateIndexable

private GoogleDesktopIndexable generateIndexable(java.lang.String schema,
                                                 com.jacob.com.Variant searchResultEntryVariant)

generateResultItem

private GoogleDesktopIndexable generateResultItem(int i,
                                                  com.jacob.com.Variant searchResultEntryVariant)

getQueryString

public java.lang.String getQueryString()
Specified by:
getQueryString in interface IJGDResults


Copyright 2007