org.apache.nutch.parse.rss.structs
Class RSSChannel

java.lang.Object
  extended by org.apache.nutch.parse.rss.structs.RSSChannel

public class RSSChannel
extends Object

Data class for holding RSS Channels to send to Nutch's indexer

Version:
1.0
Author:
mattmann

Constructor Summary
RSSChannel(String desc, String link, String title)
           Constructor if you don't have the list of RSS Items ready yet.
RSSChannel(String desc, String link, String title, List items)
           Default Constructor
 
Method Summary
 String getDescription()
           Returns a Stringdescription of the RSS Channel.
 List getItems()
           Get the list of items for this channel.
 String getLink()
           Returns a link to the RSS Channel.
 String getTitle()
           Returns the channel title
 void setDescription(String description)
           Sets the description of this RSSChannel
 void setItems(List items)
           Sets the list of RSS items for this channel.
 void setLink(String link)
           Sets the link to this RSSChannel
 void setTitle(String title)
           Sets the Title for this RSS Channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSSChannel

public RSSChannel(String desc,
                  String link,
                  String title,
                  List items)

Default Constructor

Parameters:
desc - The description of the channel.
link - A link to the channel's url.
title - The title of the channel.
items - A list of RSSItems for this RSS Channel.

RSSChannel

public RSSChannel(String desc,
                  String link,
                  String title)

Constructor if you don't have the list of RSS Items ready yet.

Parameters:
desc - The description of the channel.
link - A link to the channel's url.
title - The title of the channel.
Method Detail

getItems

public List getItems()

Get the list of items for this channel.

Returns:
A list of RSSItems.

getTitle

public String getTitle()

Returns the channel title

Returns:
The title of the channel.

getLink

public String getLink()

Returns a link to the RSS Channel.

Returns:
A Stringlink to the RSS Channel.

getDescription

public String getDescription()

Returns a Stringdescription of the RSS Channel.

Returns:
The description of the RSS Channel.

setItems

public void setItems(List items)

Sets the list of RSS items for this channel.

Parameters:
items - A List of RSSItems for this RSSChannel.

setTitle

public void setTitle(String title)

Sets the Title for this RSS Channel.

Parameters:
title - The title of this RSSChannel.

setLink

public void setLink(String link)

Sets the link to this RSSChannel

Parameters:
link - A Stringrepresentation of a link to this RSS Channel.

setDescription

public void setDescription(String description)

Sets the description of this RSSChannel

Parameters:
description - A String description of this RSS Channel.


Copyright © 2006 The Apache Software Foundation