|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wink.common.model.opensearch.OpenSearchImage
public class OpenSearchImage
The "Image" element per OpenSearch specification
The "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".
Parent: OpenSearchDescription
Attributes:
height - Contains the height, in pixels, of this image.
Restrictions: The value must be a non-negative integer.
Requirements: This attribute is optional.
width - Contains the width, in pixels, of this image.
Restrictions: The value must be a non-negative integer.
Requirements: This attribute is optional.
type - Contains the the MIME type of this image.
Restrictions: The value must be a valid MIME type.
Requirements: This attribute is optional.
Restrictions: The value must be a URI.
Requirements: This element may appear zero, one, or more times.
Examples:
<Image height="16" width="16" type="image/x-icon">http://example.com/favicon.ico</Image>
<Image height="64" width="64" type="image/png">http://example.com/websearch.png</Image>
| Field Summary | |
|---|---|
protected BigInteger |
height
|
protected String |
type
|
protected String |
value
|
protected BigInteger |
width
|
| Constructor Summary | |
|---|---|
OpenSearchImage()
Default Constructor |
|
| Method Summary | |
|---|---|
BigInteger |
getHeight()
Gets the value of the height property. |
String |
getType()
Gets the value of the type property. |
String |
getValue()
Gets the value of the value property. |
BigInteger |
getWidth()
Gets the value of the width property. |
void |
setHeight(BigInteger value)
Sets the value of the height property. |
void |
setType(String value)
Sets the value of the type property. |
void |
setValue(String value)
Sets the value of the value property. |
void |
setWidth(BigInteger value)
Sets the value of the width property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String value
protected BigInteger height
protected BigInteger width
protected String type
| Constructor Detail |
|---|
public OpenSearchImage()
| Method Detail |
|---|
public String getValue()
Stringpublic void setValue(String value)
value - allowed object is Stringpublic BigInteger getHeight()
BigIntegerpublic void setHeight(BigInteger value)
value - allowed object is BigIntegerpublic BigInteger getWidth()
BigIntegerpublic void setWidth(BigInteger value)
value - allowed object is BigIntegerpublic String getType()
Stringpublic void setType(String value)
value - allowed object is String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||