Package org.xwiki.rest.model.jaxb
Class SearchResults
- java.lang.Object
-
- org.xwiki.rest.model.jaxb.LinkCollection
-
- 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
Fields Modifier and Type Field Description protected List<SearchResult>
searchResults
protected String
template
-
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
-
-
Constructor Summary
Constructors Constructor Description SearchResults()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SearchResult>
getSearchResults()
Gets the value of the searchResults property.String
getTemplate()
Gets the value of the template property.void
setTemplate(String value)
Sets the value of the template property.SearchResults
withLinks(Collection<Link> values)
SearchResults
withLinks(Link... values)
SearchResults
withSearchResults(Collection<SearchResult> values)
SearchResults
withSearchResults(SearchResult... values)
SearchResults
withTemplate(String value)
-
Methods inherited from class org.xwiki.rest.model.jaxb.LinkCollection
getLinks
-
-
-
-
Field Detail
-
searchResults
protected List<SearchResult> searchResults
-
template
protected String template
-
-
Method Detail
-
getSearchResults
public 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 String getTemplate()
Gets the value of the template property.- Returns:
- possible object is
String
-
setTemplate
public void setTemplate(String value)
Sets the value of the template property.- Parameters:
value
- allowed object isString
-
withSearchResults
public SearchResults withSearchResults(SearchResult... values)
-
withSearchResults
public SearchResults withSearchResults(Collection<SearchResult> values)
-
withTemplate
public SearchResults withTemplate(String value)
-
withLinks
public SearchResults withLinks(Link... values)
- Overrides:
withLinks
in classLinkCollection
-
withLinks
public SearchResults withLinks(Collection<Link> values)
- Overrides:
withLinks
in classLinkCollection
-
-