Class TLcdOpenSearchQuery
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
- Since:
- 2017.0
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to thecount
attribute.static final TLcdDataProperty
Data property that maps to theinputEncoding
attribute.static final TLcdDataProperty
Data property that maps to thelanguage
attribute.static final TLcdDataProperty
Data property that maps to theoutputEncoding
attribute.static final TLcdDataProperty
Data property that maps to therole
attribute.static final TLcdDataProperty
Data property that maps to thesearchTerms
attribute.static final TLcdDataProperty
Data property that maps to thestartIndex
attribute.static final TLcdDataProperty
Data property that maps to thestartPage
attribute.static final TLcdDataProperty
Data property that maps to thetitle
attribute.static final TLcdDataProperty
Data property that maps to thetotalResults
attribute. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCount()
Returns the value of the property that maps to thecount
attribute.Returns the value of the property that maps to theinputEncoding
attribute.Returns the value of the property that maps to thelanguage
attribute.Returns the value of the property that maps to theoutputEncoding
attribute.getRole()
Returns the value of the property that maps to therole
attribute.Returns the value of the property that maps to thesearchTerms
attribute.Returns the value of the property that maps to thestartIndex
attribute.Returns the value of the property that maps to thestartPage
attribute.getTitle()
Returns the value of the property that maps to thetitle
attribute.Returns the value of the property that maps to thetotalResults
attribute.void
Sets the value of the property that maps to thecount
attribute.void
setInputEncoding
(String aValue) Sets the value of the property that maps to theinputEncoding
attribute.void
setLanguage
(String aValue) Sets the value of the property that maps to thelanguage
attribute.void
setOutputEncoding
(String aValue) Sets the value of the property that maps to theoutputEncoding
attribute.void
setRole
(TLcdOpenSearchQuery.Role aValue) Sets the value of the property that maps to therole
attribute.void
setSearchTerms
(String aValue) Sets the value of the property that maps to thesearchTerms
attribute.void
setStartIndex
(Long aValue) Sets the value of the property that maps to thestartIndex
attribute.void
setStartPage
(Long aValue) Sets the value of the property that maps to thestartPage
attribute.void
Sets the value of the property that maps to thetitle
attribute.void
setTotalResults
(Long aValue) Sets the value of the property that maps to thetotalResults
attribute.
-
Field Details
-
COUNT_PROPERTY
Data property that maps to thecount
attribute. The possible values for this property are instances ofLong
. -
INPUT_ENCODING_PROPERTY
Data property that maps to theinputEncoding
attribute. The possible values for this property are instances ofString
. -
LANGUAGE_PROPERTY
Data property that maps to thelanguage
attribute. The possible values for this property are instances ofString
. -
OUTPUT_ENCODING_PROPERTY
Data property that maps to theoutputEncoding
attribute. The possible values for this property are instances ofString
. -
ROLE_PROPERTY
Data property that maps to therole
attribute. The possible values for this property are instances ofRole
. -
SEARCH_TERMS_PROPERTY
Data property that maps to thesearchTerms
attribute. The possible values for this property are instances ofString
. -
START_INDEX_PROPERTY
Data property that maps to thestartIndex
attribute. The possible values for this property are instances ofLong
. -
START_PAGE_PROPERTY
Data property that maps to thestartPage
attribute. The possible values for this property are instances ofLong
. -
TITLE_PROPERTY
Data property that maps to thetitle
attribute. The possible values for this property are instances ofString
. -
TOTAL_RESULTS_PROPERTY
Data property that maps to thetotalResults
attribute. The possible values for this property are instances ofLong
.
-
-
Constructor Details
-
TLcdOpenSearchQuery
public TLcdOpenSearchQuery() -
TLcdOpenSearchQuery
-
-
Method Details
-
getCount
Returns the value of the property that maps to thecount
attribute.Contains the value representing the "count" as a OpenSearch 1.1 parameter. Search clients should anticipate that the value of the "count" parameter may not be honored by the search engine, and should rely exclusively on the contents of the "itemsPerPage" response element in calculating actual page size.
- Returns:
- the value of the
COUNT_PROPERTY
property.
-
setCount
Sets the value of the property that maps to thecount
attribute.Contains the value representing the "count" as a OpenSearch 1.1 parameter. Search clients should anticipate that the value of the "count" parameter may not be honored by the search engine, and should rely exclusively on the contents of the "itemsPerPage" response element in calculating actual page size.
- Parameters:
aValue
- the value to set for theCOUNT_PROPERTY
property.
-
getInputEncoding
Returns the value of the property that maps to theinputEncoding
attribute.Contains the value representing the "inputEncoding" as an OpenSearch 1.1 parameter. Replaced with a string that indicates that the search client is performing the search request encoded with the specified character encoding. An OpenSearch description document should include one "InputEncoding" element for each character encoding that can be used to encode search requests. The "inputEncoding" template parameter in the OpenSearch URL template can be used to require the search client to identify which encoding is being used to encode the current search request. Restrictions: The value must conform to the XML 1.0 Character Encodings, as specified by the IANA Character Set Assignments.
- Returns:
- the value of the
INPUT_ENCODING_PROPERTY
property.
-
setInputEncoding
Sets the value of the property that maps to theinputEncoding
attribute.Contains the value representing the "inputEncoding" as an OpenSearch 1.1 parameter. Replaced with a string that indicates that the search client is performing the search request encoded with the specified character encoding. An OpenSearch description document should include one "InputEncoding" element for each character encoding that can be used to encode search requests. The "inputEncoding" template parameter in the OpenSearch URL template can be used to require the search client to identify which encoding is being used to encode the current search request. Restrictions: The value must conform to the XML 1.0 Character Encodings, as specified by the IANA Character Set Assignments.
- Parameters:
aValue
- the value to set for theINPUT_ENCODING_PROPERTY
property.
-
getLanguage
Returns the value of the property that maps to thelanguage
attribute.Contains the value representing the "language" as an OpenSearch 1.1 parameter. Replaced with a string that indicates that the search client desires search results in the specified language. An OpenSearch description document should include one "Language" element for each language that the search engine supports. If the search engine also supports queries for any arbitrary language then the OpenSearch description document should include a Language element with a value of "*". The "language" template parameter in the OpenSearch URL template can be used to allow the search client to choose among the available languages. Restrictions: The value must conform to the XML 1.0 Language Identification, as specified by RFC 3066. In addition, a value of "*" will signify that the search client desires search results in any language.
- Returns:
- the value of the
LANGUAGE_PROPERTY
property.
-
setLanguage
Sets the value of the property that maps to thelanguage
attribute.Contains the value representing the "language" as an OpenSearch 1.1 parameter. Replaced with a string that indicates that the search client desires search results in the specified language. An OpenSearch description document should include one "Language" element for each language that the search engine supports. If the search engine also supports queries for any arbitrary language then the OpenSearch description document should include a Language element with a value of "*". The "language" template parameter in the OpenSearch URL template can be used to allow the search client to choose among the available languages. Restrictions: The value must conform to the XML 1.0 Language Identification, as specified by RFC 3066. In addition, a value of "*" will signify that the search client desires search results in any language.
- Parameters:
aValue
- the value to set for theLANGUAGE_PROPERTY
property.
-
getOutputEncoding
Returns the value of the property that maps to theoutputEncoding
attribute.Replaced with a string that indicates that the search client desires a search response encoding with the specified character encoding. An OpenSearch description document should include one "OutputEncoding" element for each character encoding that can be used to encode search responses. The "outputEncoding" template parameter in the OpenSearch URL template can be used to allow the search client to choose a character encoding in the search response. Restrictions: The value must conform to the XML 1.0 Character Encodings, as specified by the IANA Character Set Assignments.
- Returns:
- the value of the
OUTPUT_ENCODING_PROPERTY
property.
-
setOutputEncoding
Sets the value of the property that maps to theoutputEncoding
attribute.Replaced with a string that indicates that the search client desires a search response encoding with the specified character encoding. An OpenSearch description document should include one "OutputEncoding" element for each character encoding that can be used to encode search responses. The "outputEncoding" template parameter in the OpenSearch URL template can be used to allow the search client to choose a character encoding in the search response. Restrictions: The value must conform to the XML 1.0 Character Encodings, as specified by the IANA Character Set Assignments.
- Parameters:
aValue
- the value to set for theOUTPUT_ENCODING_PROPERTY
property.
-
getRole
Returns the value of the property that maps to therole
attribute.role - Contains a string identifying how the search client should interpret the search request defined by this Query element. Role values: A role value consists of an optional prefix followed by the local role value. If the prefix is present it will be separated from the local role value with the ":" character. All role values are associated with a namespace, either implicitly in the case of local role values, or explicitly via a prefix in the case of fully qualified role values. Role extensibility: The role attribute may take on values beyond those specified in this document provided they are fully qualified with a prefix and associated with a declared namespace. Clients that encounter unrecognized role values should continue to process the document as if the Query element containing the unrecognized role value did not appear. Role prefix: A role prefix associates a local role name with a namespace. All prefixes must be previously declared as an XML namespace prefix on the containing Query element or ancestor elements. Local role values: Local role values are not preceded by a prefix. Local role values are associated with the OpenSearch 1.1 namespace. The following role values are identified with the OpenSearch 1.1 namespace. The list is exhaustive; only the role values listed below may appear in the OpenSearch 1.1 namespace. Role values:
- Returns:
- the value of the
ROLE_PROPERTY
property.
-
setRole
Sets the value of the property that maps to therole
attribute.role - Contains a string identifying how the search client should interpret the search request defined by this Query element. Role values: A role value consists of an optional prefix followed by the local role value. If the prefix is present it will be separated from the local role value with the ":" character. All role values are associated with a namespace, either implicitly in the case of local role values, or explicitly via a prefix in the case of fully qualified role values. Role extensibility: The role attribute may take on values beyond those specified in this document provided they are fully qualified with a prefix and associated with a declared namespace. Clients that encounter unrecognized role values should continue to process the document as if the Query element containing the unrecognized role value did not appear. Role prefix: A role prefix associates a local role name with a namespace. All prefixes must be previously declared as an XML namespace prefix on the containing Query element or ancestor elements. Local role values: Local role values are not preceded by a prefix. Local role values are associated with the OpenSearch 1.1 namespace. The following role values are identified with the OpenSearch 1.1 namespace. The list is exhaustive; only the role values listed below may appear in the OpenSearch 1.1 namespace. Role values:
- Parameters:
aValue
- the value to set for theROLE_PROPERTY
property.
-
getSearchTerms
Returns the value of the property that maps to thesearchTerms
attribute.Contains the value representing the "searchTerms" as an OpenSearch 1.1 parameter. Restrictions: The value must be URL-encoded.
- Returns:
- the value of the
SEARCH_TERMS_PROPERTY
property.
-
setSearchTerms
Sets the value of the property that maps to thesearchTerms
attribute.Contains the value representing the "searchTerms" as an OpenSearch 1.1 parameter. Restrictions: The value must be URL-encoded.
- Parameters:
aValue
- the value to set for theSEARCH_TERMS_PROPERTY
property.
-
getStartIndex
Returns the value of the property that maps to thestartIndex
attribute.Contains the value representing the "startIndex" as an OpenSearch 1.1 parameter. Replaced with the index of the first search result desired by the search client. Default: The value specified by the "indexOffset" attribute of the containing Url element.
- Returns:
- the value of the
START_INDEX_PROPERTY
property.
-
setStartIndex
Sets the value of the property that maps to thestartIndex
attribute.Contains the value representing the "startIndex" as an OpenSearch 1.1 parameter. Replaced with the index of the first search result desired by the search client. Default: The value specified by the "indexOffset" attribute of the containing Url element.
- Parameters:
aValue
- the value to set for theSTART_INDEX_PROPERTY
property.
-
getStartPage
Returns the value of the property that maps to thestartPage
attribute.Contains the value representing the "startPage" as an OpenSearch 1.1 parameter. Replaced with the page number of the set of search results desired by the search client. Default: The value specified by the "pageOffset" attribute of the containing Url element.
- Returns:
- the value of the
START_PAGE_PROPERTY
property.
-
setStartPage
Sets the value of the property that maps to thestartPage
attribute.Contains the value representing the "startPage" as an OpenSearch 1.1 parameter. Replaced with the page number of the set of search results desired by the search client. Default: The value specified by the "pageOffset" attribute of the containing Url element.
- Parameters:
aValue
- the value to set for theSTART_PAGE_PROPERTY
property.
-
getTitle
Returns the value of the property that maps to thetitle
attribute.Contains a human-readable plain text string describing the search request.
- Returns:
- the value of the
TITLE_PROPERTY
property.
-
setTitle
Sets the value of the property that maps to thetitle
attribute.Contains a human-readable plain text string describing the search request.
- Parameters:
aValue
- the value to set for theTITLE_PROPERTY
property.
-
getTotalResults
Returns the value of the property that maps to thetotalResults
attribute.Contains the expected number of results to be found if the search request were made.
- Returns:
- the value of the
TOTAL_RESULTS_PROPERTY
property.
-
setTotalResults
Sets the value of the property that maps to thetotalResults
attribute.Contains the expected number of results to be found if the search request were made.
- Parameters:
aValue
- the value to set for theTOTAL_RESULTS_PROPERTY
property.
-