org.xwiki.rest.model.jaxb
Class SearchResults

java.lang.Object
  extended by org.xwiki.rest.model.jaxb.LinkCollection
      extended by org.xwiki.rest.model.jaxb.SearchResults

public class SearchResults
extends LinkCollection

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <extension base="{http://www.xwiki.org}LinkCollection">
       <sequence>
         <element name="searchResult" type="{http://www.xwiki.org}SearchResult" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="template" type="{http://www.w3.org/2001/XMLSchema}string" />
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.util.List<SearchResult> searchResults
           
protected  java.lang.String template
           
 
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
 
Constructor Summary
SearchResults()
           
 
Method Summary
 java.util.List<SearchResult> getSearchResults()
          Gets the value of the searchResults property.
 java.lang.String getTemplate()
          Gets the value of the template property.
 void setTemplate(java.lang.String value)
          Sets the value of the template property.
 SearchResults withLinks(java.util.Collection<Link> values)
           
 SearchResults withLinks(Link... values)
           
 SearchResults withSearchResults(java.util.Collection<SearchResult> values)
           
 SearchResults withSearchResults(SearchResult... values)
           
 SearchResults withTemplate(java.lang.String value)
           
 
Methods inherited from class org.xwiki.rest.model.jaxb.LinkCollection
getLinks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searchResults

protected java.util.List<SearchResult> searchResults

template

protected java.lang.String template
Constructor Detail

SearchResults

public SearchResults()
Method Detail

getSearchResults

public java.util.List<SearchResult> getSearchResults()
Gets the value of the searchResults 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 searchResults property.

For example, to add a new item, do as follows:

    getSearchResults().add(newItem);
 

Objects of the following type(s) are allowed in the list SearchResult


getTemplate

public java.lang.String getTemplate()
Gets the value of the template property.

Returns:
possible object is String

setTemplate

public void setTemplate(java.lang.String value)
Sets the value of the template property.

Parameters:
value - allowed object is String

withSearchResults

public SearchResults withSearchResults(SearchResult... values)

withSearchResults

public SearchResults withSearchResults(java.util.Collection<SearchResult> values)

withTemplate

public SearchResults withTemplate(java.lang.String value)

withLinks

public SearchResults withLinks(Link... values)
Overrides:
withLinks in class LinkCollection

withLinks

public SearchResults withLinks(java.util.Collection<Link> values)
Overrides:
withLinks in class LinkCollection


Copyright © 2004-2010 XWiki. All Rights Reserved.