Copyright (c) 2000-2002 ChurchillObjects.com

churchillobjects.rss4j
Class RssChannelItem

java.lang.Object
  |
  +--churchillobjects.rss4j.RssChannelItem
All Implemented Interfaces:
java.lang.Cloneable, IUsesDublinCore, java.io.Serializable

public class RssChannelItem
extends java.lang.Object
implements IUsesDublinCore, java.lang.Cloneable, java.io.Serializable

Encapsulates the data and some minor logic regarding an item in the RSS object model. The item contains only those attributes pertaining to a single item and an optional dublin core object.

See Also:
Serialized Form

Field Summary
private  churchillobjects.rss4j.RssDublinCore dublinCore
          The dublin core for the item.
private  java.lang.String itemDescription
          The description for the item.
private  java.lang.String itemLink
          The link for the item (where the user goes when it is clicked on).
private  java.lang.String itemTitle
          The title for the item.
 
Constructor Summary
RssChannelItem()
          Default constructor.
RssChannelItem(java.lang.String title, java.lang.String link)
          Overloaded constructor to set the title and link (required fields).
RssChannelItem(java.lang.String title, java.lang.String link, java.lang.String description)
          Overloaded constructor to set the title, link and description.
 
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.
 java.lang.String getItemDescription()
          Returns the item description.
 java.lang.String getItemLink()
          Returns the item link.
 java.lang.String getItemTitle()
          Returns the item title.
 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.
 void setItemDescription(java.lang.String d)
          Sets the item description.
 void setItemLink(java.lang.String l)
          Sets the item link.
 void setItemTitle(java.lang.String t)
          Sets the item title.
 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

itemTitle

private java.lang.String itemTitle
The title for the item.


itemLink

private java.lang.String itemLink
The link for the item (where the user goes when it is clicked on).


itemDescription

private java.lang.String itemDescription
The description for the item.


dublinCore

private churchillobjects.rss4j.RssDublinCore dublinCore
The dublin core for the item.

Constructor Detail

RssChannelItem

public RssChannelItem()
Default constructor.


RssChannelItem

public RssChannelItem(java.lang.String title,
                      java.lang.String link)
Overloaded constructor to set the title and link (required fields).

Parameters:
title -
link -

RssChannelItem

public RssChannelItem(java.lang.String title,
                      java.lang.String link,
                      java.lang.String description)
Overloaded constructor to set the title, link and description.

Parameters:
title -
link -
description -
Method Detail

setItemTitle

public void setItemTitle(java.lang.String t)
Sets the item title.

Parameters:
t -

getItemTitle

public java.lang.String getItemTitle()
Returns the item title.

Returns:

setItemLink

public void setItemLink(java.lang.String l)
Sets the item link.

Parameters:
l -

getItemLink

public java.lang.String getItemLink()
Returns the item link.

Returns:

setItemDescription

public void setItemDescription(java.lang.String d)
Sets the item description.

Parameters:
d -

getItemDescription

public java.lang.String getItemDescription()
Returns the item description.

Returns:

setDublinCore

public void setDublinCore(churchillobjects.rss4j.RssDublinCore dc)
Sets the dublin core.

Specified by:
setDublinCore in interface IUsesDublinCore
Parameters:
dc -

getDublinCore

public churchillobjects.rss4j.RssDublinCore getDublinCore()
Returns the dublin core.

Specified by:
getDublinCore in interface IUsesDublinCore
Returns:

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:

hashCode

public int hashCode()
Computes the hashcode of this object based on the hashcodes of the objects it contains. For semantic reasons, an object with all null values returns 0, the same as if it were null within another object.

Overrides:
hashCode in class java.lang.Object
Returns:
The object's hashcode

equals

public boolean equals(java.lang.Object obj)
Canonical equals method. Two RssChannel objects will be equal if their hashcodes (and thus their contents) are equal.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The other object
Returns:
If the two objects are canonically equal

clone

public java.lang.Object clone()
Public clone method to allow cloning.

Overrides:
clone in class java.lang.Object
Returns:
This object's clone

Copyright (c) 2000-2002 ChurchillObjects.com