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>
Modifier and Type | Field and Description |
---|---|
protected List<SearchResult> |
searchResults |
protected String |
template |
links
Constructor and Description |
---|
SearchResults() |
Modifier and Type | Method and 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) |
getLinks
protected List<SearchResult> searchResults
protected String template
public List<SearchResult> getSearchResults()
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
public String getTemplate()
String
public void setTemplate(String value)
value
- allowed object is
String
public SearchResults withSearchResults(SearchResult... values)
public SearchResults withSearchResults(Collection<SearchResult> values)
public SearchResults withTemplate(String value)
public SearchResults withLinks(Link... values)
withLinks
in class LinkCollection
public SearchResults withLinks(Collection<Link> values)
withLinks
in class LinkCollection
Copyright © 2004–2021 XWiki. All rights reserved.