|
Copyright (c) 2000-2002 ChurchillObjects.com | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--churchillobjects.rss4j.RssChannelImage
Encapsulates the data and some minor logic regarding an image in the RSS object model. The image contains only those attributes pertaining to a single image and an optional dublin core object.
Field Summary | |
private churchillobjects.rss4j.RssDublinCore |
dublinCore
The image's dublin core. |
private int |
imageHeight
The image's height (zero is unset). |
private java.lang.String |
imageLink
The image's link url. |
private java.lang.String |
imageTitle
The image's title. |
private java.lang.String |
imageUrl
The image's source url. |
private int |
imageWidth
The image's width (zero is unset). |
Constructor Summary | |
RssChannelImage()
default constructor. |
|
RssChannelImage(java.lang.String title,
java.lang.String url,
java.lang.String link)
Overloaded constructor to set initial values for title, url and link. |
|
RssChannelImage(java.lang.String title,
java.lang.String url,
java.lang.String link,
int width,
int height)
Overloaded constructor to set initial values for title, url, link and size. |
Method Summary | |
java.lang.Object |
clone()
Public clone method to allow cloning. |
boolean |
equals(java.lang.Object obj)
Canonical equals method. |
churchillobjects.rss4j.RssDublinCore |
getDublinCore()
Returns the dublin core for the channel image. |
java.lang.String |
getImageDescription()
Returns the description for the channel image. |
int |
getImageHeight()
Returns the height of the image, in pixels |
java.lang.String |
getImageLink()
Returns the link of the image (where the browser should go if the user clicks on the image) |
java.lang.String |
getImageTitle()
Returns the title of the image (can be used as ALT attribute) |
java.lang.String |
getImageUrl()
Returns the url of the image (the image source) |
int |
getImageWidth()
Returns the width of the image, in pixels |
int |
hashCode()
Computes the hashcode of this object based on the hashcodes of the objects it contains. |
void |
setDublinCore(churchillobjects.rss4j.RssDublinCore dc)
Sets the dublin core for the channel image. |
void |
setImageDescription(java.lang.String d)
Sets the description for the channel image. |
void |
setImageHeight(int i)
Sets the height of the image, in pixels. |
void |
setImageLink(java.lang.String l)
Sets the link of the image (where the browser should go if the user clicks on the image) |
void |
setImageTitle(java.lang.String t)
Sets the title of the image (can be used as ALT attribute) |
void |
setImageUrl(java.lang.String s)
Sets the url of the image (the image source) |
void |
setImageWidth(int i)
Sets the width of the image, in pixels. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String imageTitle
private java.lang.String imageUrl
private java.lang.String imageLink
private int imageWidth
private int imageHeight
private churchillobjects.rss4j.RssDublinCore dublinCore
Constructor Detail |
public RssChannelImage()
public RssChannelImage(java.lang.String title, java.lang.String url, java.lang.String link)
title
- url
- link
- public RssChannelImage(java.lang.String title, java.lang.String url, java.lang.String link, int width, int height)
title
- url
- link
- width
- height
- Method Detail |
public void setImageTitle(java.lang.String t)
public java.lang.String getImageTitle()
public void setImageUrl(java.lang.String s)
s
- public java.lang.String getImageUrl()
public void setImageLink(java.lang.String l)
public java.lang.String getImageLink()
public void setImageWidth(int i)
i
- public int getImageWidth()
public void setImageHeight(int i)
i
- public int getImageHeight()
public void setImageDescription(java.lang.String d)
d
- public java.lang.String getImageDescription()
public void setDublinCore(churchillobjects.rss4j.RssDublinCore dc)
setDublinCore
in interface IUsesDublinCore
dc
- public churchillobjects.rss4j.RssDublinCore getDublinCore()
getDublinCore
in interface IUsesDublinCore
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The other object
public java.lang.Object clone()
clone
in class java.lang.Object
|
Copyright (c) 2000-2002 ChurchillObjects.com | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |