public class TLcdOpenSearchDescription extends TLcdDataObject
Modifier and Type | Class and Description |
---|---|
static class |
TLcdOpenSearchDescription.Image |
static class |
TLcdOpenSearchDescription.SyndicationRight |
static class |
TLcdOpenSearchDescription.Url |
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
ADULT_CONTENT_PROPERTY
Data property that maps to the
AdultContent element. |
static TLcdDataProperty |
ATTRIBUTION_PROPERTY
Data property that maps to the
Attribution element. |
static TLcdDataProperty |
CONTACT_PROPERTY
Data property that maps to the
Contact element. |
static TLcdDataProperty |
DESCRIPTION_PROPERTY
Data property that maps to the
Description element. |
static TLcdDataProperty |
DEVELOPER_PROPERTY
Data property that maps to the
Developer element. |
static TLcdDataProperty |
IMAGE_PROPERTY
Data property that maps to the
Image element. |
static TLcdDataProperty |
INPUT_ENCODING_PROPERTY
Data property that maps to the
InputEncoding element. |
static TLcdDataProperty |
LANGUAGE_PROPERTY
Data property that maps to the
Language element. |
static TLcdDataProperty |
LONG_NAME_PROPERTY
Data property that maps to the
LongName element. |
static TLcdDataProperty |
OUTPUT_ENCODING_PROPERTY
Data property that maps to the
OutputEncoding element. |
static TLcdDataProperty |
QUERY_PROPERTY
Data property that maps to the
Query element. |
static TLcdDataProperty |
SHORT_NAME_PROPERTY
Data property that maps to the
ShortName element. |
static TLcdDataProperty |
SYNDICATION_RIGHT_PROPERTY
Data property that maps to the
SyndicationRight element. |
static TLcdDataProperty |
TAGS_PROPERTY
Data property that maps to the
Tags element. |
static TLcdDataProperty |
URLS_PROPERTY
Data property that maps to the
Url element. |
Constructor and Description |
---|
TLcdOpenSearchDescription() |
TLcdOpenSearchDescription(TLcdDataType aType) |
Modifier and Type | Method and Description |
---|---|
Object |
getAdultContent()
Returns the value of the property that maps to the
AdultContent element. |
String |
getAttribution()
Returns the value of the property that maps to the
Attribution element. |
Object |
getContact()
Returns the value of the property that maps to the
Contact element. |
String |
getDescription()
Returns the value of the property that maps to the
Description element. |
String |
getDeveloper()
Returns the value of the property that maps to the
Developer element. |
TLcdOpenSearchDescription.Image |
getImage()
Returns the value of the property that maps to the
Image element. |
Object |
getInputEncoding()
Returns the value of the property that maps to the
InputEncoding element. |
Object |
getLanguage()
Returns the value of the property that maps to the
Language element. |
String |
getLongName()
Returns the value of the property that maps to the
LongName element. |
Object |
getOutputEncoding()
Returns the value of the property that maps to the
OutputEncoding element. |
TLcdOpenSearchQuery |
getQuery()
Returns the value of the property that maps to the
Query element. |
String |
getShortName()
Returns the value of the property that maps to the
ShortName element. |
TLcdOpenSearchDescription.SyndicationRight |
getSyndicationRight()
Returns the value of the property that maps to the
SyndicationRight element. |
String |
getTags()
Returns the value of the property that maps to the
Tags element. |
List<TLcdOpenSearchDescription.Url> |
getUrls()
Returns the value of the property that maps to the
Url element. |
void |
setAdultContent(Object aValue)
Sets the value of the property that maps to the
AdultContent element. |
void |
setAttribution(String aValue)
Sets the value of the property that maps to the
Attribution element. |
void |
setContact(Object aValue)
Sets the value of the property that maps to the
Contact element. |
void |
setDescription(String aValue)
Sets the value of the property that maps to the
Description element. |
void |
setDeveloper(String aValue)
Sets the value of the property that maps to the
Developer element. |
void |
setImage(TLcdOpenSearchDescription.Image aValue)
Sets the value of the property that maps to the
Image element. |
void |
setInputEncoding(Object aValue)
Sets the value of the property that maps to the
InputEncoding element. |
void |
setLanguage(Object aValue)
Sets the value of the property that maps to the
Language element. |
void |
setLongName(String aValue)
Sets the value of the property that maps to the
LongName element. |
void |
setOutputEncoding(Object aValue)
Sets the value of the property that maps to the
OutputEncoding element. |
void |
setQuery(TLcdOpenSearchQuery aValue)
Sets the value of the property that maps to the
Query element. |
void |
setShortName(String aValue)
Sets the value of the property that maps to the
ShortName element. |
void |
setSyndicationRight(TLcdOpenSearchDescription.SyndicationRight aValue)
Sets the value of the property that maps to the
SyndicationRight element. |
void |
setTags(String aValue)
Sets the value of the property that maps to the
Tags element. |
public static final TLcdDataProperty SHORT_NAME_PROPERTY
ShortName
element.
The possible values for this property are instances of String
.public static final TLcdDataProperty DESCRIPTION_PROPERTY
Description
element.
The possible values for this property are instances of String
.public static final TLcdDataProperty URLS_PROPERTY
Url
element.
The possible values for this property are instances of List<Url>
.public static final TLcdDataProperty CONTACT_PROPERTY
Contact
element.
The possible values for this property are instances of Object
.public static final TLcdDataProperty TAGS_PROPERTY
Tags
element.
The possible values for this property are instances of String
.public static final TLcdDataProperty LONG_NAME_PROPERTY
LongName
element.
The possible values for this property are instances of String
.public static final TLcdDataProperty IMAGE_PROPERTY
Image
element.
The possible values for this property are instances of Image
.public static final TLcdDataProperty QUERY_PROPERTY
Query
element.
The possible values for this property are instances of TLcdOpenSearchQuery
.public static final TLcdDataProperty DEVELOPER_PROPERTY
Developer
element.
The possible values for this property are instances of String
.public static final TLcdDataProperty ATTRIBUTION_PROPERTY
Attribution
element.
The possible values for this property are instances of String
.public static final TLcdDataProperty SYNDICATION_RIGHT_PROPERTY
SyndicationRight
element.
The possible values for this property are instances of SyndicationRight
.public static final TLcdDataProperty ADULT_CONTENT_PROPERTY
AdultContent
element.
The possible values for this property are instances of Object
.public static final TLcdDataProperty LANGUAGE_PROPERTY
Language
element.
The possible values for this property are instances of Object
.public static final TLcdDataProperty INPUT_ENCODING_PROPERTY
InputEncoding
element.
The possible values for this property are instances of Object
.public static final TLcdDataProperty OUTPUT_ENCODING_PROPERTY
OutputEncoding
element.
The possible values for this property are instances of Object
.public TLcdOpenSearchDescription()
public TLcdOpenSearchDescription(TLcdDataType aType)
public String getShortName()
ShortName
element.SHORT_NAME_PROPERTY
property.public void setShortName(String aValue)
ShortName
element.aValue
- the value to set for the SHORT_NAME_PROPERTY
property.public String getDescription()
Description
element.
Contains a human-readable text description of the search engine.
DESCRIPTION_PROPERTY
property.public void setDescription(String aValue)
Description
element.
Contains a human-readable text description of the search engine.
aValue
- the value to set for the DESCRIPTION_PROPERTY
property.public List<TLcdOpenSearchDescription.Url> getUrls()
Url
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.
URLS_PROPERTY
property.public Object getContact()
Contact
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.
CONTACT_PROPERTY
property.public void setContact(Object aValue)
Contact
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.
aValue
- the value to set for the CONTACT_PROPERTY
property.public String getTags()
Tags
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.
TAGS_PROPERTY
property.public void setTags(String aValue)
Tags
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.
aValue
- the value to set for the TAGS_PROPERTY
property.public String getLongName()
LongName
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.
LONG_NAME_PROPERTY
property.public void setLongName(String aValue)
LongName
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.
aValue
- the value to set for the LONG_NAME_PROPERTY
property.public TLcdOpenSearchDescription.Image getImage()
Image
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.
IMAGE_PROPERTY
property.public void setImage(TLcdOpenSearchDescription.Image aValue)
Image
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.
aValue
- the value to set for the IMAGE_PROPERTY
property.public TLcdOpenSearchQuery getQuery()
Query
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.
QUERY_PROPERTY
property.public void setQuery(TLcdOpenSearchQuery aValue)
Query
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.
aValue
- the value to set for the QUERY_PROPERTY
property.public String getDeveloper()
Developer
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.
DEVELOPER_PROPERTY
property.public void setDeveloper(String aValue)
Developer
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.
aValue
- the value to set for the DEVELOPER_PROPERTY
property.public String getAttribution()
Attribution
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.
ATTRIBUTION_PROPERTY
property.public void setAttribution(String aValue)
Attribution
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.
aValue
- the value to set for the ATTRIBUTION_PROPERTY
property.public TLcdOpenSearchDescription.SyndicationRight getSyndicationRight()
SyndicationRight
element.
Contains a value that indicates the degree to which the search results provided by this search engine can be queried, displayed, and redistributed.
SYNDICATION_RIGHT_PROPERTY
property.public void setSyndicationRight(TLcdOpenSearchDescription.SyndicationRight aValue)
SyndicationRight
element.
Contains a value that indicates the degree to which the search results provided by this search engine can be queried, displayed, and redistributed.
aValue
- the value to set for the SYNDICATION_RIGHT_PROPERTY
property.public Object getAdultContent()
AdultContent
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.
ADULT_CONTENT_PROPERTY
property.public void setAdultContent(Object aValue)
AdultContent
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.
aValue
- the value to set for the ADULT_CONTENT_PROPERTY
property.public Object getLanguage()
Language
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.
LANGUAGE_PROPERTY
property.public void setLanguage(Object aValue)
Language
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.
aValue
- the value to set for the LANGUAGE_PROPERTY
property.public Object getInputEncoding()
InputEncoding
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.
INPUT_ENCODING_PROPERTY
property.public void setInputEncoding(Object aValue)
InputEncoding
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.
aValue
- the value to set for the INPUT_ENCODING_PROPERTY
property.public Object getOutputEncoding()
OutputEncoding
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.
OUTPUT_ENCODING_PROPERTY
property.public void setOutputEncoding(Object aValue)
OutputEncoding
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.
aValue
- the value to set for the OUTPUT_ENCODING_PROPERTY
property.