jgd.jaxb
Interface ResultsType

All Known Subinterfaces:
IJGDResults, Results
All Known Implementing Classes:
QueryResultSet, ResultsIteratorCOM

public interface ResultsType

Java content class for anonymous complex type.

The following schema fragment specifies the expected content contained within this java content object. (defined at file:/D:/traballo/sourceforge/gdapi/src/gdsdk.xsd line 12)

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="result" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <all>
                   <element name="category" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="id" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" minOccurs="0"/>
                   <element name="doc_id" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" minOccurs="0"/>
                   <element name="event_id" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" minOccurs="0"/>
                   <element name="title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="from" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="time" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" minOccurs="0"/>
                   <element name="snippet" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="thumbnail" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="icon" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="cache_url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="flags" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   <element name="message_id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                 </all>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
       <attribute name="count" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
     </restriction>
   </complexContent>
 </complexType>
 


Nested Class Summary
static interface ResultsType.ResultType
          Java content class for anonymous complex type.
 
Method Summary
 int getCount()
          Gets the value of the count property.
 java.util.List getResult()
          Result of search from document http://desktop.google.com/queryapi.html .
 

Method Detail

getResult

java.util.List getResult()
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


getCount

int getCount()
Gets the value of the count property.



Copyright © 2007