Class TLcdOpenSearchDescription
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
- Since:
- 2017.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theAdultContentelement.static final TLcdDataPropertyData property that maps to theAttributionelement.static final TLcdDataPropertyData property that maps to theContactelement.static final TLcdDataPropertyData property that maps to theDescriptionelement.static final TLcdDataPropertyData property that maps to theDeveloperelement.static final TLcdDataPropertyData property that maps to theImageelement.static final TLcdDataPropertyData property that maps to theInputEncodingelement.static final TLcdDataPropertyData property that maps to theLanguageelement.static final TLcdDataPropertyData property that maps to theLongNameelement.static final TLcdDataPropertyData property that maps to theOutputEncodingelement.static final TLcdDataPropertyData property that maps to theQueryelement.static final TLcdDataPropertyData property that maps to theShortNameelement.static final TLcdDataPropertyData property that maps to theSyndicationRightelement.static final TLcdDataPropertyData property that maps to theTagselement.static final TLcdDataPropertyData property that maps to theUrlelement. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property that maps to theAdultContentelement.Returns the value of the property that maps to theAttributionelement.Returns the value of the property that maps to theContactelement.Returns the value of the property that maps to theDescriptionelement.Returns the value of the property that maps to theDeveloperelement.getImage()Returns the value of the property that maps to theImageelement.Returns the value of the property that maps to theInputEncodingelement.Returns the value of the property that maps to theLanguageelement.Returns the value of the property that maps to theLongNameelement.Returns the value of the property that maps to theOutputEncodingelement.getQuery()Returns the value of the property that maps to theQueryelement.Returns the value of the property that maps to theShortNameelement.Returns the value of the property that maps to theSyndicationRightelement.getTags()Returns the value of the property that maps to theTagselement.getUrls()Returns the value of the property that maps to theUrlelement.voidsetAdultContent(Object aValue) Sets the value of the property that maps to theAdultContentelement.voidsetAttribution(String aValue) Sets the value of the property that maps to theAttributionelement.voidsetContact(Object aValue) Sets the value of the property that maps to theContactelement.voidsetDescription(String aValue) Sets the value of the property that maps to theDescriptionelement.voidsetDeveloper(String aValue) Sets the value of the property that maps to theDeveloperelement.voidSets the value of the property that maps to theImageelement.voidsetInputEncoding(Object aValue) Sets the value of the property that maps to theInputEncodingelement.voidsetLanguage(Object aValue) Sets the value of the property that maps to theLanguageelement.voidsetLongName(String aValue) Sets the value of the property that maps to theLongNameelement.voidsetOutputEncoding(Object aValue) Sets the value of the property that maps to theOutputEncodingelement.voidsetQuery(TLcdOpenSearchQuery aValue) Sets the value of the property that maps to theQueryelement.voidsetShortName(String aValue) Sets the value of the property that maps to theShortNameelement.voidSets the value of the property that maps to theSyndicationRightelement.voidSets the value of the property that maps to theTagselement.
-
Field Details
-
SHORT_NAME_PROPERTY
Data property that maps to theShortNameelement. The possible values for this property are instances ofString. -
DESCRIPTION_PROPERTY
Data property that maps to theDescriptionelement. The possible values for this property are instances ofString. -
URLS_PROPERTY
Data property that maps to theUrlelement. The possible values for this property are instances ofList<Url>. -
CONTACT_PROPERTY
Data property that maps to theContactelement. The possible values for this property are instances ofObject. -
TAGS_PROPERTY
Data property that maps to theTagselement. The possible values for this property are instances ofString. -
LONG_NAME_PROPERTY
Data property that maps to theLongNameelement. The possible values for this property are instances ofString. -
IMAGE_PROPERTY
Data property that maps to theImageelement. The possible values for this property are instances ofImage. -
QUERY_PROPERTY
Data property that maps to theQueryelement. The possible values for this property are instances ofTLcdOpenSearchQuery. -
DEVELOPER_PROPERTY
Data property that maps to theDeveloperelement. The possible values for this property are instances ofString. -
ATTRIBUTION_PROPERTY
Data property that maps to theAttributionelement. The possible values for this property are instances ofString. -
SYNDICATION_RIGHT_PROPERTY
Data property that maps to theSyndicationRightelement. The possible values for this property are instances ofSyndicationRight. -
ADULT_CONTENT_PROPERTY
Data property that maps to theAdultContentelement. The possible values for this property are instances ofObject. -
LANGUAGE_PROPERTY
Data property that maps to theLanguageelement. The possible values for this property are instances ofObject. -
INPUT_ENCODING_PROPERTY
Data property that maps to theInputEncodingelement. The possible values for this property are instances ofObject. -
OUTPUT_ENCODING_PROPERTY
Data property that maps to theOutputEncodingelement. 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 theShortNameelement.- Returns:
- the value of the
SHORT_NAME_PROPERTYproperty.
-
setShortName
Sets the value of the property that maps to theShortNameelement.- Parameters:
aValue- the value to set for theSHORT_NAME_PROPERTYproperty.
-
getDescription
Returns the value of the property that maps to theDescriptionelement.Contains a human-readable text description of the search engine.
- Returns:
- the value of the
DESCRIPTION_PROPERTYproperty.
-
setDescription
Sets the value of the property that maps to theDescriptionelement.Contains a human-readable text description of the search engine.
- Parameters:
aValue- the value to set for theDESCRIPTION_PROPERTYproperty.
-
getUrls
Returns the value of the property that maps to theUrlelement.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_PROPERTYproperty.
-
getContact
Returns the value of the property that maps to theContactelement.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_PROPERTYproperty.
-
setContact
Sets the value of the property that maps to theContactelement.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_PROPERTYproperty.
-
getTags
Returns the value of the property that maps to theTagselement.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_PROPERTYproperty.
-
setTags
Sets the value of the property that maps to theTagselement.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_PROPERTYproperty.
-
getLongName
Returns the value of the property that maps to theLongNameelement.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_PROPERTYproperty.
-
setLongName
Sets the value of the property that maps to theLongNameelement.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_PROPERTYproperty.
-
getImage
Returns the value of the property that maps to theImageelement.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_PROPERTYproperty.
-
setImage
Sets the value of the property that maps to theImageelement.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_PROPERTYproperty.
-
getQuery
Returns the value of the property that maps to theQueryelement.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_PROPERTYproperty.
-
setQuery
Sets the value of the property that maps to theQueryelement.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_PROPERTYproperty.
-
getDeveloper
Returns the value of the property that maps to theDeveloperelement.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_PROPERTYproperty.
-
setDeveloper
Sets the value of the property that maps to theDeveloperelement.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_PROPERTYproperty.
-
getAttribution
Returns the value of the property that maps to theAttributionelement.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_PROPERTYproperty.
-
setAttribution
Sets the value of the property that maps to theAttributionelement.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_PROPERTYproperty.
-
getSyndicationRight
Returns the value of the property that maps to theSyndicationRightelement.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_PROPERTYproperty.
-
setSyndicationRight
Sets the value of the property that maps to theSyndicationRightelement.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_PROPERTYproperty.
-
getAdultContent
Returns the value of the property that maps to theAdultContentelement.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_PROPERTYproperty.
-
setAdultContent
Sets the value of the property that maps to theAdultContentelement.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_PROPERTYproperty.
-
getLanguage
Returns the value of the property that maps to theLanguageelement.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_PROPERTYproperty.
-
setLanguage
Sets the value of the property that maps to theLanguageelement.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_PROPERTYproperty.
-
getInputEncoding
Returns the value of the property that maps to theInputEncodingelement.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_PROPERTYproperty.
-
setInputEncoding
Sets the value of the property that maps to theInputEncodingelement.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_PROPERTYproperty.
-
getOutputEncoding
Returns the value of the property that maps to theOutputEncodingelement.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_PROPERTYproperty.
-
setOutputEncoding
Sets the value of the property that maps to theOutputEncodingelement.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_PROPERTYproperty.
-