public class OpenSearchModuleImpl extends ModuleImpl implements OpenSearchModule, Serializable
URI| Constructor and Description |
|---|
OpenSearchModuleImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addQuery(OSQuery query)
Adds a query to the module.
|
void |
copyFrom(CopyFrom obj) |
Class<OpenSearchModule> |
getInterface() |
int |
getItemsPerPage()
# itemsPerPage – the maximum number of items that can appear in one page of results.
|
Link |
getLink()
# link – a reference back to the OpenSearch Description file
* Attributes: This is a clone of the link element in Atom, including href, hreflang, rel, and
type attributes.
|
List<OSQuery> |
getQueries()
Query – in an OpenSearch Response, can be used both to echo back the original
query and to suggest new searches. |
int |
getStartIndex()
# startIndex – the index of the first item returned in the result.
|
int |
getTotalResults()
# totalResults – the maximum number of results available for these search terms
* Restrictions: An integer greater than or equal to 0.
|
void |
setItemsPerPage(int itemsPerPage)
# itemsPerPage – the maximum number of items that can appear in one page of results.
|
void |
setLink(Link link)
# link – a reference back to the OpenSearch Description file
* Attributes: This is a clone of the link element in Atom, including href, hreflang, rel, and
type attributes.
|
void |
setQueries(List<OSQuery> queries)
Query – in an OpenSearch Response, can be used both to echo back the original
query and to suggest new searches. |
void |
setStartIndex(int startIndex)
# startIndex – the index of the first item returned in the result.
|
void |
setTotalResults(int totalResults)
# totalResults – the maximum number of results available for these search terms
* Restrictions: An integer greater than or equal to 0.
|
clone, equals, getUri, hashCode, toStringpublic int getItemsPerPage()
OpenSearchResponsegetItemsPerPage in interface OpenSearchResponsepublic void setItemsPerPage(int itemsPerPage)
OpenSearchResponsesetItemsPerPage in interface OpenSearchResponseitemsPerPage - The itemsPerPage to set.public Link getLink()
OpenSearchResponsegetLink in interface OpenSearchResponsepublic void setLink(Link link)
OpenSearchResponsesetLink in interface OpenSearchResponselink - The link to set.public List<OSQuery> getQueries()
OpenSearchResponseQuery – in an OpenSearch Response, can be used both to echo back the original
query and to suggest new searches. Please see the OpenSearch Query
specification for more information.
getQueries in interface OpenSearchResponsepublic void setQueries(List<OSQuery> queries)
OpenSearchResponseQuery – in an OpenSearch Response, can be used both to echo back the original
query and to suggest new searches. Please see the OpenSearch Query
specification for more information.
setQueries in interface OpenSearchResponsequeries - The queries to set.public void addQuery(OSQuery query)
OpenSearchResponseaddQuery in interface OpenSearchResponsequery - OSQuery object to add.public int getStartIndex()
OpenSearchResponsegetStartIndex in interface OpenSearchResponsepublic void setStartIndex(int startIndex)
OpenSearchResponsesetStartIndex in interface OpenSearchResponsestartIndex - The startIndex to set.public int getTotalResults()
OpenSearchResponsegetTotalResults in interface OpenSearchResponsepublic void setTotalResults(int totalResults)
OpenSearchResponsesetTotalResults in interface OpenSearchResponsetotalResults - The totalResults to set.public Class<OpenSearchModule> getInterface()
getInterface in interface CopyFromCopyright © 2021. All rights reserved.