net.sourceforge.atunes.kernel.modules.podcast
Class PodcastFeed

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.podcast.PodcastFeed
All Implemented Interfaces:
java.io.Serializable, TreeObject

public class PodcastFeed
extends java.lang.Object
implements TreeObject, java.io.Serializable

Represents a rss or atom podcast feed.

See Also:
Serialized Form

Constructor Summary
PodcastFeed(java.lang.String name, java.lang.String url)
          Constructor.
 
Method Summary
 void addEntries(java.util.List<? extends PodcastFeedEntry> entries, boolean removeOld)
          Sets the entries of this podcast feed and removes old entries if specified.
 boolean equals(java.lang.Object o)
           
 java.util.List<AudioObject> getAudioObjects()
          Returns the audio objects of this tree object.
static java.util.Comparator<PodcastFeed> getComparator()
          Gets the comparator.
 FeedType getFeedType()
          Gets the feed type.
 java.lang.String getName()
          Gets the name.
 java.util.List<PodcastFeedEntry> getPodcastFeedEntries()
          Gets the podcast feed entries.
 java.lang.String getUrl()
          Gets the url.
 int hashCode()
           
 boolean hasNewEntries()
          Checks for new entries.
 boolean isRetrieveNameFromFeed()
          Returns if the name should be retrieved from the feed
 void markEntriesAsListened()
          Marks the entries of this podcast feed as listened.
 void markEntriesAsNotNew()
          Marks the entries of this podcastfeed as not new.
 void removeEntry(PodcastFeedEntry podcastFeedEntry)
          Removed Podcast feed entry from this Podcast feed.
 void setFeedType(FeedType feedType)
          Sets the feed type.
 void setName(java.lang.String name)
          Sets the name.
 void setRetrieveNameFromFeed(boolean retrieveNameFromFeed)
          Sets if the name should be retrieved from the feed
 void setUrl(java.lang.String url)
          Sets the url.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PodcastFeed

public PodcastFeed(java.lang.String name,
                   java.lang.String url)
Constructor.

Parameters:
name - the name of the podcast feed
url - the url of the podcast feed
Method Detail

getComparator

public static java.util.Comparator<PodcastFeed> getComparator()
Gets the comparator.

Returns:
the comparator

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getAudioObjects

public java.util.List<AudioObject> getAudioObjects()
Description copied from interface: TreeObject
Returns the audio objects of this tree object.

Specified by:
getAudioObjects in interface TreeObject
Returns:
The audio objects of this object

getFeedType

public FeedType getFeedType()
Gets the feed type.

Returns:
the feedType of the podcast feed

getName

public java.lang.String getName()
Gets the name.

Returns:
the name of the podcast feed

getPodcastFeedEntries

public java.util.List<PodcastFeedEntry> getPodcastFeedEntries()
Gets the podcast feed entries.

Returns:
the podcast feed entries

getUrl

public java.lang.String getUrl()
Gets the url.

Returns:
the url of the podcast feed

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

hasNewEntries

public boolean hasNewEntries()
Checks for new entries.

Returns:
if the podcast feed has new entries

isRetrieveNameFromFeed

public boolean isRetrieveNameFromFeed()
Returns if the name should be retrieved from the feed

Returns:
retrieveNameFromFeed if the name should be retrieved from the feed

markEntriesAsListened

public void markEntriesAsListened()
Marks the entries of this podcast feed as listened.


markEntriesAsNotNew

public void markEntriesAsNotNew()
Marks the entries of this podcastfeed as not new.


addEntries

public void addEntries(java.util.List<? extends PodcastFeedEntry> entries,
                       boolean removeOld)
Sets the entries of this podcast feed and removes old entries if specified.

Parameters:
entries - The entries of this podcast feed
removeOld - If old entries should be removed

removeEntry

public void removeEntry(PodcastFeedEntry podcastFeedEntry)
Removed Podcast feed entry from this Podcast feed.

Parameters:
podcastFeedEntry - The Podcast feed entr that should be removed

setFeedType

public void setFeedType(FeedType feedType)
Sets the feed type.

Parameters:
feedType - the feedType of the podcast feed to set

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the name of the podcast feed to set

setUrl

public void setUrl(java.lang.String url)
Sets the url.

Parameters:
url - the url of the podcast feed to set

setRetrieveNameFromFeed

public void setRetrieveNameFromFeed(boolean retrieveNameFromFeed)
Sets if the name should be retrieved from the feed

Parameters:
retrieveNameFromFeed - if the name should be retrieved from the feed

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.