net.sourceforge.buildmonitor.utils
Class RssFeedDocument

java.lang.Object
  extended by net.sourceforge.buildmonitor.utils.RssFeedDocument

public class RssFeedDocument
extends java.lang.Object

An RSS feed document.

Author:
sbrunot

Constructor Summary
RssFeedDocument()
           
 
Method Summary
 void add(RssFeedItem theRssFeedItemToAdd)
          Add an RSS Feed item to the document
 RssFeedItem getItem(int theIndexOfTheItemInTheDocument)
          Get the Nth item of the document.
 int size()
          Returns the size of the document (aka the number of items it contains).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssFeedDocument

public RssFeedDocument()
Method Detail

getItem

public RssFeedItem getItem(int theIndexOfTheItemInTheDocument)
                    throws java.lang.IndexOutOfBoundsException
Get the Nth item of the document.

Parameters:
theIndexOfTheItemInTheDocument - index of the item in the document (index of the first item is 0).
Returns:
the theIndexOfTheItemInTheDocument th item in the document.
Throws:
java.lang.IndexOutOfBoundsException - if theIndexOfTheItemInTheDocument is < 0 or >= size().

size

public int size()
Returns the size of the document (aka the number of items it contains).

Returns:
the size of the document (aka the number of items it contains).

add

public void add(RssFeedItem theRssFeedItemToAdd)
Add an RSS Feed item to the document

Parameters:
theRssFeedItemToAdd - the item to add to the document


Copyright © 2007. All Rights Reserved.