|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wink.common.model.rss.RssImage
public class RssImage
Java class for "image" element of RSS 2.0 Specification.
The following schema fragment specifies the expected content contained within this class.
<complexType name="rssImage">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<all>
<element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="link" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
<element name="width" minOccurs="0">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}int">
<maxInclusive value="144"/>
</restriction>
</simpleType>
</element>
<element name="height" minOccurs="0">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}int">
<maxInclusive value="400"/>
</restriction>
</simpleType>
</element>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
</all>
</restriction>
</complexContent>
</complexType>
<image> is an optional sub-element of <channel>, which contains three required and three optional sub-elements.
<url> is the URL of a GIF, JPEG or PNG image that represents the channel.
<title> describes the image, it's used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML.
<link> is the URL of the site, when the channel is rendered, the image is a link to the site. (Note, in practice the image <title> and <link> should have the same value as the channel's <title> and <link>.)
Optional elements include <width> and <height>, numbers, indicating the width and height of the image in pixels. <description> contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.
Maximum value for width is 144, default value is 88.
Maximum value for height is 400, default value is 31.
| Field Summary | |
|---|---|
protected String |
description
|
protected Integer |
height
|
protected String |
link
|
protected String |
title
|
protected String |
url
|
protected Integer |
width
|
| Constructor Summary | |
|---|---|
RssImage()
|
|
| Method Summary | |
|---|---|
String |
getDescription()
Gets the value of the description property. |
Integer |
getHeight()
Gets the value of the height property. |
String |
getLink()
Gets the value of the link property. |
String |
getTitle()
Gets the value of the title property. |
String |
getUrl()
Gets the value of the url property. |
Integer |
getWidth()
Gets the value of the width property. |
void |
setDescription(String value)
Sets the value of the description property. |
void |
setHeight(Integer value)
Sets the value of the height property. |
void |
setLink(String value)
Sets the value of the link property. |
void |
setTitle(String value)
Sets the value of the title property. |
void |
setUrl(String value)
Sets the value of the url property. |
void |
setWidth(Integer 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 url
protected String title
protected String link
protected Integer width
protected Integer height
protected String description
| Constructor Detail |
|---|
public RssImage()
| Method Detail |
|---|
public String getUrl()
Stringpublic void setUrl(String value)
value - allowed object is Stringpublic String getTitle()
Stringpublic void setTitle(String value)
value - allowed object is Stringpublic String getLink()
Stringpublic void setLink(String value)
value - allowed object is Stringpublic Integer getWidth()
Integerpublic void setWidth(Integer value)
value - allowed object is Integerpublic Integer getHeight()
Integerpublic void setHeight(Integer value)
value - allowed object is Integerpublic String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||