Class TLcdOpenSearchDescription
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
- Since:
- 2017.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theAdultContent
element.static final TLcdDataProperty
Data property that maps to theAttribution
element.static final TLcdDataProperty
Data property that maps to theContact
element.static final TLcdDataProperty
Data property that maps to theDescription
element.static final TLcdDataProperty
Data property that maps to theDeveloper
element.static final TLcdDataProperty
Data property that maps to theImage
element.static final TLcdDataProperty
Data property that maps to theInputEncoding
element.static final TLcdDataProperty
Data property that maps to theLanguage
element.static final TLcdDataProperty
Data property that maps to theLongName
element.static final TLcdDataProperty
Data property that maps to theOutputEncoding
element.static final TLcdDataProperty
Data property that maps to theQuery
element.static final TLcdDataProperty
Data property that maps to theShortName
element.static final TLcdDataProperty
Data property that maps to theSyndicationRight
element.static final TLcdDataProperty
Data property that maps to theTags
element.static final TLcdDataProperty
Data property that maps to theUrl
element. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property that maps to theAdultContent
element.Returns the value of the property that maps to theAttribution
element.Returns the value of the property that maps to theContact
element.Returns the value of the property that maps to theDescription
element.Returns the value of the property that maps to theDeveloper
element.getImage()
Returns the value of the property that maps to theImage
element.Returns the value of the property that maps to theInputEncoding
element.Returns the value of the property that maps to theLanguage
element.Returns the value of the property that maps to theLongName
element.Returns the value of the property that maps to theOutputEncoding
element.getQuery()
Returns the value of the property that maps to theQuery
element.Returns the value of the property that maps to theShortName
element.Returns the value of the property that maps to theSyndicationRight
element.getTags()
Returns the value of the property that maps to theTags
element.getUrls()
Returns the value of the property that maps to theUrl
element.void
setAdultContent
(Object aValue) Sets the value of the property that maps to theAdultContent
element.void
setAttribution
(String aValue) Sets the value of the property that maps to theAttribution
element.void
setContact
(Object aValue) Sets the value of the property that maps to theContact
element.void
setDescription
(String aValue) Sets the value of the property that maps to theDescription
element.void
setDeveloper
(String aValue) Sets the value of the property that maps to theDeveloper
element.void
Sets the value of the property that maps to theImage
element.void
setInputEncoding
(Object aValue) Sets the value of the property that maps to theInputEncoding
element.void
setLanguage
(Object aValue) Sets the value of the property that maps to theLanguage
element.void
setLongName
(String aValue) Sets the value of the property that maps to theLongName
element.void
setOutputEncoding
(Object aValue) Sets the value of the property that maps to theOutputEncoding
element.void
setQuery
(TLcdOpenSearchQuery aValue) Sets the value of the property that maps to theQuery
element.void
setShortName
(String aValue) Sets the value of the property that maps to theShortName
element.void
Sets the value of the property that maps to theSyndicationRight
element.void
Sets the value of the property that maps to theTags
element.
-
Field Details
-
SHORT_NAME_PROPERTY
Data property that maps to theShortName
element. The possible values for this property are instances ofString
. -
DESCRIPTION_PROPERTY
Data property that maps to theDescription
element. The possible values for this property are instances ofString
. -
URLS_PROPERTY
Data property that maps to theUrl
element. The possible values for this property are instances ofList<Url>
. -
CONTACT_PROPERTY
Data property that maps to theContact
element. The possible values for this property are instances ofObject
. -
TAGS_PROPERTY
Data property that maps to theTags
element. The possible values for this property are instances ofString
. -
LONG_NAME_PROPERTY
Data property that maps to theLongName
element. The possible values for this property are instances ofString
. -
IMAGE_PROPERTY
Data property that maps to theImage
element. The possible values for this property are instances ofImage
. -
QUERY_PROPERTY
Data property that maps to theQuery
element. The possible values for this property are instances ofTLcdOpenSearchQuery
. -
DEVELOPER_PROPERTY
Data property that maps to theDeveloper
element. The possible values for this property are instances ofString
. -
ATTRIBUTION_PROPERTY
Data property that maps to theAttribution
element. The possible values for this property are instances ofString
. -
SYNDICATION_RIGHT_PROPERTY
Data property that maps to theSyndicationRight
element. The possible values for this property are instances ofSyndicationRight
. -
ADULT_CONTENT_PROPERTY
Data property that maps to theAdultContent
element. The possible values for this property are instances ofObject
. -
LANGUAGE_PROPERTY
Data property that maps to theLanguage
element. The possible values for this property are instances ofObject
. -
INPUT_ENCODING_PROPERTY
Data property that maps to theInputEncoding
element. The possible values for this property are instances ofObject
. -
OUTPUT_ENCODING_PROPERTY
Data property that maps to theOutputEncoding
element. The possible values for this property are instances ofObject
.
-
-
Constructor Details
-
TLcdOpenSearchDescription
public TLcdOpenSearchDescription() -
TLcdOpenSearchDescription
-
-
Method Details
-
getShortName
Returns the value of the property that maps to theShortName
element.- Returns:
- the value of the
SHORT_NAME_PROPERTY
property.
-
setShortName
Sets the value of the property that maps to theShortName
element.- Parameters:
aValue
- the value to set for theSHORT_NAME_PROPERTY
property.
-
getDescription
Returns the value of the property that maps to theDescription
element.Contains a human-readable text description of the search engine.
- Returns:
- the value of the
DESCRIPTION_PROPERTY
property.
-
setDescription
Sets the value of the property that maps to theDescription
element.Contains a human-readable text description of the search engine.
- Parameters:
aValue
- the value to set for theDESCRIPTION_PROPERTY
property.
-
getUrls
Returns the value of the property that maps to theUrl
element.Describes an interface by which a search client can make search requests of the search engine. OpenSearch provides support for both index-based and page-based search engines. By default, both the first search result and the first page of search results are numbered "1". Search engines can use the "indexOffset" and "pageOffset" attributes to inform search clients of different starting values.
- Returns:
- the value of the
URLS_PROPERTY
property.
-
getContact
Returns the value of the property that maps to theContact
element.Contains an email address at which the maintainer of the description document can be reached. Restrictions: The value must conform to the requirements of Section 3.4.1 "Addr-spec specification" in RFC 2822.
- Returns:
- the value of the
CONTACT_PROPERTY
property.
-
setContact
Sets the value of the property that maps to theContact
element.Contains an email address at which the maintainer of the description document can be reached. Restrictions: The value must conform to the requirements of Section 3.4.1 "Addr-spec specification" in RFC 2822.
- Parameters:
aValue
- the value to set for theCONTACT_PROPERTY
property.
-
getTags
Returns the value of the property that maps to theTags
element.Contains a set of words that are used as keywords to identify and categorize this search content. Tags must be a single word and are delimited by the space character (' '). Restriction: The value must not contain HTML or other markup.
- Returns:
- the value of the
TAGS_PROPERTY
property.
-
setTags
Sets the value of the property that maps to theTags
element.Contains a set of words that are used as keywords to identify and categorize this search content. Tags must be a single word and are delimited by the space character (' '). Restriction: The value must not contain HTML or other markup.
- Parameters:
aValue
- the value to set for theTAGS_PROPERTY
property.
-
getLongName
Returns the value of the property that maps to theLongName
element.Contains an extended human-readable title that identifies this search engine. Search clients should use the value of the ShortName element if this element is not available. Restrictions: The value must not contain HTML or other markup.
- Returns:
- the value of the
LONG_NAME_PROPERTY
property.
-
setLongName
Sets the value of the property that maps to theLongName
element.Contains an extended human-readable title that identifies this search engine. Search clients should use the value of the ShortName element if this element is not available. Restrictions: The value must not contain HTML or other markup.
- Parameters:
aValue
- the value to set for theLONG_NAME_PROPERTY
property.
-
getImage
Returns the value of the property that maps to theImage
element.Contains a URL that identifies the location of an image that can be used in association with this search content. Image sizes are offered as a hint to the search client. The search client will chose the most appropriate image for the available space and should give preference to those listed first in the OpenSearch description document. Square aspect ratios are recommended. When possible, search engines should offer a 16x16 image of type "image/x-icon" or "image/vnd.microsoft.icon" (the Microsoft ICON format) and a 64x64 image of type "image/jpeg" or "image/png". Restrictions: The value must be a URI.
- Returns:
- the value of the
IMAGE_PROPERTY
property.
-
setImage
Sets the value of the property that maps to theImage
element.Contains a URL that identifies the location of an image that can be used in association with this search content. Image sizes are offered as a hint to the search client. The search client will chose the most appropriate image for the available space and should give preference to those listed first in the OpenSearch description document. Square aspect ratios are recommended. When possible, search engines should offer a 16x16 image of type "image/x-icon" or "image/vnd.microsoft.icon" (the Microsoft ICON format) and a 64x64 image of type "image/jpeg" or "image/png". Restrictions: The value must be a URI.
- Parameters:
aValue
- the value to set for theIMAGE_PROPERTY
property.
-
getQuery
Returns the value of the property that maps to theQuery
element.Defines a search query that can be performed by search clients. Please see the OpenSearch Query element specification for more information. OpenSearch description documents should include at least one Query element of role="example" that is expected to return search results. Search clients may use this example query to validate that the search engine is working properly.
- Returns:
- the value of the
QUERY_PROPERTY
property.
-
setQuery
Sets the value of the property that maps to theQuery
element.Defines a search query that can be performed by search clients. Please see the OpenSearch Query element specification for more information. OpenSearch description documents should include at least one Query element of role="example" that is expected to return search results. Search clients may use this example query to validate that the search engine is working properly.
- Parameters:
aValue
- the value to set for theQUERY_PROPERTY
property.
-
getDeveloper
Returns the value of the property that maps to theDeveloper
element.Contains the human-readable name or identifier of the creator or maintainer of the description document. The developer is the person or entity that created the description document, and may or may not be the owner, author, or copyright holder of the source of the content itself. Restrictions: The value must not contain HTML or other markup.
- Returns:
- the value of the
DEVELOPER_PROPERTY
property.
-
setDeveloper
Sets the value of the property that maps to theDeveloper
element.Contains the human-readable name or identifier of the creator or maintainer of the description document. The developer is the person or entity that created the description document, and may or may not be the owner, author, or copyright holder of the source of the content itself. Restrictions: The value must not contain HTML or other markup.
- Parameters:
aValue
- the value to set for theDEVELOPER_PROPERTY
property.
-
getAttribution
Returns the value of the property that maps to theAttribution
element.Contains a list of all sources or entities that should be credited for the content contained in the search feed. Restrictions: The value must not contain HTML or other markup.
- Returns:
- the value of the
ATTRIBUTION_PROPERTY
property.
-
setAttribution
Sets the value of the property that maps to theAttribution
element.Contains a list of all sources or entities that should be credited for the content contained in the search feed. Restrictions: The value must not contain HTML or other markup.
- Parameters:
aValue
- the value to set for theATTRIBUTION_PROPERTY
property.
-
getSyndicationRight
Returns the value of the property that maps to theSyndicationRight
element.Contains a value that indicates the degree to which the search results provided by this search engine can be queried, displayed, and redistributed.
- Returns:
- the value of the
SYNDICATION_RIGHT_PROPERTY
property.
-
setSyndicationRight
Sets the value of the property that maps to theSyndicationRight
element.Contains a value that indicates the degree to which the search results provided by this search engine can be queried, displayed, and redistributed.
- Parameters:
aValue
- the value to set for theSYNDICATION_RIGHT_PROPERTY
property.
-
getAdultContent
Returns the value of the property that maps to theAdultContent
element.Contains a boolean value that should be set to true if the search results may contain material intended only for adults. As there are no universally applicable guidelines as to what constitutes "adult" content, the search engine should make a good faith effort to indicate when there is a possibility that search results may contain material inappropriate for all audiences. The values "false", "FALSE", "0", "no", and "NO" will be considered boolean FALSE; all other strings will be considered boolean TRUE.
- Returns:
- the value of the
ADULT_CONTENT_PROPERTY
property.
-
setAdultContent
Sets the value of the property that maps to theAdultContent
element.Contains a boolean value that should be set to true if the search results may contain material intended only for adults. As there are no universally applicable guidelines as to what constitutes "adult" content, the search engine should make a good faith effort to indicate when there is a possibility that search results may contain material inappropriate for all audiences. The values "false", "FALSE", "0", "no", and "NO" will be considered boolean FALSE; all other strings will be considered boolean TRUE.
- Parameters:
aValue
- the value to set for theADULT_CONTENT_PROPERTY
property.
-
getLanguage
Returns the value of the property that maps to theLanguage
element.Contains a string that indicates that the search engine supports 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, the value of "*" will signify that the search engine does not restrict search results to any particular language.
- Returns:
- the value of the
LANGUAGE_PROPERTY
property.
-
setLanguage
Sets the value of the property that maps to theLanguage
element.Contains a string that indicates that the search engine supports 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, the value of "*" will signify that the search engine does not restrict search results to any particular language.
- Parameters:
aValue
- the value to set for theLANGUAGE_PROPERTY
property.
-
getInputEncoding
Returns the value of the property that maps to theInputEncoding
element.Contains a string that indicates that the search engine supports search requests 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
element.Contains a string that indicates that the search engine supports search requests 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.
-
getOutputEncoding
Returns the value of the property that maps to theOutputEncoding
element.Contains a string that indicates that the search engine supports search responses encoded 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
element.Contains a string that indicates that the search engine supports search responses encoded 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.
-