|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.rss.Image
public class Image
Specifies a GIF, JPEG or PNG image that can be displayed with the channel.
Constructor Summary | |
---|---|
Image()
|
Method Summary | |
---|---|
String |
getDescription()
Returns the text that is included in the TITLE attribute of the link formed around the image in the HTML rendering. |
Integer |
getHeight()
Returns the number indicating the height of the image in pixels. |
URI |
getLink()
Returns the URL of the site, when the channel is rendered, the image is a link to the site. |
String |
getLinkString()
Returns the URL of the site, when the channel is rendered, the image is a link to the site. |
String |
getTitle()
Describes the image, it's used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML. |
URI |
getURL()
Returns the URL of a GIF, JPEG or PNG image that represents the channel. |
String |
getURLString()
Returns the URL of a GIF, JPEG or PNG image that represents the channel. |
Integer |
getWidth()
Returns the number indicating the width of the image in pixels. |
void |
setDescription(String description)
Initializes the text that is included in the TITLE attribute of the link formed around the image in the HTML rendering. |
void |
setHeight(Integer height)
Initializes the number indicating the height of the image in pixels. |
void |
setLink(URI link)
Initializes the URL of the site, when the channel is rendered, the image is a link to the site. |
void |
setLinkString(String link)
Initializes the URL of the site, when the channel is rendered, the image is a link to the site. |
void |
setTitle(String title)
Describes the image, it's used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML. |
void |
setURL(URI url)
Initializes the URL of a GIF, JPEG or PNG image that represents the channel. |
void |
setURLString(String url)
Initializes the URL of a GIF, JPEG or PNG image that represents the channel. |
void |
setWidth(Integer width)
Initializes the number indicating the width of the image in pixels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Image()
Method Detail |
---|
public void setURLString(String url) throws URISyntaxException
url
- an URL as a string. Shall not be null
.
NullPointerException
- if url
is null
.
URISyntaxException
- if the given string violates RFC 2396, as augmented by the URI
deviations.getURLString()
,
setURL(java.net.URI)
public String getURLString()
null
.
NullPointerException
- if no URL has been defined in this image description.setURLString(java.lang.String)
,
getURL()
public void setURL(URI url)
url
- an URL. Shall not be null
.
NullPointerException
- if url
is null
.getURL()
,
setURLString(java.lang.String)
public URI getURL()
null
if not yet initialized.setURL(java.net.URI)
,
getURLString()
public void setTitle(String title)
title
- the image's title. Shall not be null
.
NullPointerException
- if title
is null
.getTitle()
public String getTitle()
null
if not yet initialized.setTitle(java.lang.String)
public String getLinkString()
null
.
NullPointerException
- if no link has been defined in this image description.setLinkString(java.lang.String)
,
getLink()
public void setLinkString(String link) throws URISyntaxException
link
- an URL as a string. Shall not be null
.
NullPointerException
- if link
is null
.
URISyntaxException
- if the given string violates RFC 2396, as augmented by the URI
deviations.getLinkString()
,
setLink(java.net.URI)
public void setLink(URI link)
link
- an URL. Shall not be null
.
NullPointerException
- if link
is null
.getLink()
,
setLinkString(java.lang.String)
public URI getLink()
null
if not yet initialized.setLink(java.net.URI)
,
getLinkString()
public Integer getWidth()
null
.setWidth(java.lang.Integer)
public void setWidth(Integer width)
width
- a width. May be null
.getWidth()
public Integer getHeight()
null
.setHeight(java.lang.Integer)
public void setHeight(Integer height)
height
- a height. May be null
.getHeight()
public String getDescription()
null
.setDescription(java.lang.String)
public void setDescription(String description)
description
- the image's description. May be null
.getDescription()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |