Class TLcdOpenSearchQuery
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
- Since:
- 2017.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to thecountattribute.static final TLcdDataPropertyData property that maps to theinputEncodingattribute.static final TLcdDataPropertyData property that maps to thelanguageattribute.static final TLcdDataPropertyData property that maps to theoutputEncodingattribute.static final TLcdDataPropertyData property that maps to theroleattribute.static final TLcdDataPropertyData property that maps to thesearchTermsattribute.static final TLcdDataPropertyData property that maps to thestartIndexattribute.static final TLcdDataPropertyData property that maps to thestartPageattribute.static final TLcdDataPropertyData property that maps to thetitleattribute.static final TLcdDataPropertyData property that maps to thetotalResultsattribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCount()Returns the value of the property that maps to thecountattribute.Returns the value of the property that maps to theinputEncodingattribute.Returns the value of the property that maps to thelanguageattribute.Returns the value of the property that maps to theoutputEncodingattribute.getRole()Returns the value of the property that maps to theroleattribute.Returns the value of the property that maps to thesearchTermsattribute.Returns the value of the property that maps to thestartIndexattribute.Returns the value of the property that maps to thestartPageattribute.getTitle()Returns the value of the property that maps to thetitleattribute.Returns the value of the property that maps to thetotalResultsattribute.voidSets the value of the property that maps to thecountattribute.voidsetInputEncoding(String aValue) Sets the value of the property that maps to theinputEncodingattribute.voidsetLanguage(String aValue) Sets the value of the property that maps to thelanguageattribute.voidsetOutputEncoding(String aValue) Sets the value of the property that maps to theoutputEncodingattribute.voidsetRole(TLcdOpenSearchQuery.Role aValue) Sets the value of the property that maps to theroleattribute.voidsetSearchTerms(String aValue) Sets the value of the property that maps to thesearchTermsattribute.voidsetStartIndex(Long aValue) Sets the value of the property that maps to thestartIndexattribute.voidsetStartPage(Long aValue) Sets the value of the property that maps to thestartPageattribute.voidSets the value of the property that maps to thetitleattribute.voidsetTotalResults(Long aValue) Sets the value of the property that maps to thetotalResultsattribute.
-
Field Details
-
COUNT_PROPERTY
Data property that maps to thecountattribute. The possible values for this property are instances ofLong. -
INPUT_ENCODING_PROPERTY
Data property that maps to theinputEncodingattribute. The possible values for this property are instances ofString. -
LANGUAGE_PROPERTY
Data property that maps to thelanguageattribute. The possible values for this property are instances ofString. -
OUTPUT_ENCODING_PROPERTY
Data property that maps to theoutputEncodingattribute. The possible values for this property are instances ofString. -
ROLE_PROPERTY
Data property that maps to theroleattribute. The possible values for this property are instances ofRole. -
SEARCH_TERMS_PROPERTY
Data property that maps to thesearchTermsattribute. The possible values for this property are instances ofString. -
START_INDEX_PROPERTY
Data property that maps to thestartIndexattribute. The possible values for this property are instances ofLong. -
START_PAGE_PROPERTY
Data property that maps to thestartPageattribute. The possible values for this property are instances ofLong. -
TITLE_PROPERTY
Data property that maps to thetitleattribute. The possible values for this property are instances ofString. -
TOTAL_RESULTS_PROPERTY
Data property that maps to thetotalResultsattribute. 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 thecountattribute.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_PROPERTYproperty.
-
setCount
Sets the value of the property that maps to thecountattribute.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_PROPERTYproperty.
-
getInputEncoding
Returns the value of the property that maps to theinputEncodingattribute.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_PROPERTYproperty.
-
setInputEncoding
Sets the value of the property that maps to theinputEncodingattribute.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_PROPERTYproperty.
-
getLanguage
Returns the value of the property that maps to thelanguageattribute.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_PROPERTYproperty.
-
setLanguage
Sets the value of the property that maps to thelanguageattribute.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_PROPERTYproperty.
-
getOutputEncoding
Returns the value of the property that maps to theoutputEncodingattribute.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_PROPERTYproperty.
-
setOutputEncoding
Sets the value of the property that maps to theoutputEncodingattribute.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_PROPERTYproperty.
-
getRole
Returns the value of the property that maps to theroleattribute.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_PROPERTYproperty.
-
setRole
Sets the value of the property that maps to theroleattribute.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_PROPERTYproperty.
-
getSearchTerms
Returns the value of the property that maps to thesearchTermsattribute.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_PROPERTYproperty.
-
setSearchTerms
Sets the value of the property that maps to thesearchTermsattribute.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_PROPERTYproperty.
-
getStartIndex
Returns the value of the property that maps to thestartIndexattribute.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_PROPERTYproperty.
-
setStartIndex
Sets the value of the property that maps to thestartIndexattribute.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_PROPERTYproperty.
-
getStartPage
Returns the value of the property that maps to thestartPageattribute.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_PROPERTYproperty.
-
setStartPage
Sets the value of the property that maps to thestartPageattribute.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_PROPERTYproperty.
-
getTitle
Returns the value of the property that maps to thetitleattribute.Contains a human-readable plain text string describing the search request.
- Returns:
- the value of the
TITLE_PROPERTYproperty.
-
setTitle
Sets the value of the property that maps to thetitleattribute.Contains a human-readable plain text string describing the search request.
- Parameters:
aValue- the value to set for theTITLE_PROPERTYproperty.
-
getTotalResults
Returns the value of the property that maps to thetotalResultsattribute.Contains the expected number of results to be found if the search request were made.
- Returns:
- the value of the
TOTAL_RESULTS_PROPERTYproperty.
-
setTotalResults
Sets the value of the property that maps to thetotalResultsattribute.Contains the expected number of results to be found if the search request were made.
- Parameters:
aValue- the value to set for theTOTAL_RESULTS_PROPERTYproperty.
-