CS 1705 Library

cs1705.web
Interface RssEntity

All Superinterfaces:
Cloneable, Serializable
All Known Implementing Classes:
RssEntry, RssFeed

public interface RssEntity
extends Serializable, Cloneable

This interface defines the common features of RSS entities like RssEntry objects and RssFeed objects.

Version:
2007.09.01
Author:
Stephen Edwards

Method Summary
 String getAuthor()
          Get this entity's author.
 List<String> getAuthors()
          Get this entity's authors.
 Date getDate()
          Get this entity's publication date.
 String getDescription()
          Get this entity's description.
 URL getLink()
          Get this entity's link as a URL.
 String getTitle()
          Get this entity's title.
 void setAuthor(String author)
          Set this entity's author.
 void setAuthors(List<String> authors)
          Set this entity's authors.
 void setDate(Date date)
          Set this entity's publication date.
 void setDescription(String description)
          Set this entity's description.
 void setLink(URL link)
          Set this entity's link.
 void setTitle(String title)
          Set this entity's title.
 

Method Detail

getAuthor

String getAuthor()
Get this entity's author. If there are multiple authors, this method returns the first one.

Returns:
This entity's author

setAuthor

void setAuthor(String author)
Set this entity's author.

Parameters:
author - This entity's author

getAuthors

List<String> getAuthors()
Get this entity's authors.

Returns:
This entity's authors

setAuthors

void setAuthors(List<String> authors)
Set this entity's authors.

Parameters:
authors - A list of this entity's authors

getDate

Date getDate()
Get this entity's publication date.

Returns:
This entity's date

setDate

void setDate(Date date)
Set this entity's publication date.

Parameters:
date - This entity's date

getDescription

String getDescription()
Get this entity's description.

Returns:
This entity's description

setDescription

void setDescription(String description)
Set this entity's description.

Parameters:
description - The new description

getLink

URL getLink()
Get this entity's link as a URL.

Returns:
The link's URL, or null if there is none

setLink

void setLink(URL link)
Set this entity's link.

Parameters:
link - The new URL to use

getTitle

String getTitle()
Get this entity's title.

Returns:
The entity's title

setTitle

void setTitle(String title)
Set this entity's title.

Parameters:
title - The entity's title

Last updated: Wed, Apr 1, 2009 • 12:29 AM EDT

Copyright © 2009 Virginia Tech.