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

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

public class PodcastFeedEntry
extends java.lang.Object
implements AudioObject, java.io.Serializable

Represents a entry of a podcast feed.

See Also:
Serialized Form

Constructor Summary
PodcastFeedEntry(java.lang.String name, java.lang.String author, java.lang.String url, java.lang.String description, java.util.Date date, long duration, PodcastFeed podcastFeed)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlbum()
          Gets the album.
 java.lang.String getAlbumArtist()
          Gets the album artist.
 java.lang.String getArtist()
          Gets the artist.
 java.lang.String getAuthor()
          Gets the author.
 long getBitrate()
          Gets the bitrate.
static java.util.Comparator<PodcastFeedEntry> getComparator()
          Gets the comparator.
 java.lang.String getComposer()
          Gets the composer.
 java.util.Date getDate()
          Gets the date.
 java.lang.String getDescription()
          Gets the description.
 long getDuration()
          Gets the duration.
 int getFrequency()
          Gets the frequency.
 java.lang.String getGenre()
          Gets the genre.
 java.lang.String getLyrics()
          Gets the lyrics.
 java.lang.String getName()
          Gets the name.
 PodcastFeed getPodcastFeed()
          Gets the podcast feed.
static java.util.List<PodcastFeedEntry> getPodcastFeedEntries(java.util.List<AudioObject> audioObjects)
          Gets the podcast feed entries.
 int getStars()
          Gets the stars.
 java.lang.String getTitle()
          Gets the title.
 java.lang.String getTitleOrFileName()
          Gets the title or file name.
 java.lang.Integer getTrackNumber()
          Gets the track number.
 java.lang.String getUrl()
          Gets the url.
 java.lang.String getYear()
          Gets the year.
 int hashCode()
           
 boolean isDownloaded()
          Checks if is downloaded.
 boolean isListened()
          Checks if is listened.
 boolean isOld()
          Checks if is old.
 boolean isSeekable()
          Checks if is seekable.
 void setAuthor(java.lang.String author)
          Sets the author.
 void setDate(java.util.Date date)
          Sets the date.
 void setDescription(java.lang.String description)
          Sets the description.
 void setDownloaded(boolean downloaded)
          Sets the downloaded.
 void setListened(boolean listened)
          Sets the listened.
 void setName(java.lang.String name)
          Sets the name.
 void setOld(boolean old)
          Sets the old.
 void setPodcastFeed(PodcastFeed podcastFeed)
          Sets the podcast feed.
 void setStars(int stars)
          Sets the stars.
 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

PodcastFeedEntry

public PodcastFeedEntry(java.lang.String name,
                        java.lang.String author,
                        java.lang.String url,
                        java.lang.String description,
                        java.util.Date date,
                        long duration,
                        PodcastFeed podcastFeed)
Constructor.

Parameters:
name - the name of the podcast feed entry
author - the author of the podcast feed entry
url - the url of the podcast feed entry
description - the description of the podcast feed entry
date - the date of the podcast feed entry
duration - the duration of the podcast feed entry
podcastFeed - the corresponding podcast feed of the podcast feed entry
Method Detail

getComparator

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

Returns:
the comparator of the podcast feed entries

getPodcastFeedEntries

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

Parameters:
audioObjects - the audio objects
Returns:
the podcast feed entries

equals

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

getAlbum

public java.lang.String getAlbum()
Description copied from interface: AudioObject
Gets the album.

Specified by:
getAlbum in interface AudioObject
Returns:
the album

getAlbumArtist

public java.lang.String getAlbumArtist()
Description copied from interface: AudioObject
Gets the album artist.

Specified by:
getAlbumArtist in interface AudioObject
Returns:
the album artist

getArtist

public java.lang.String getArtist()
Description copied from interface: AudioObject
Gets the artist.

Specified by:
getArtist in interface AudioObject
Returns:
the artist

getAuthor

public java.lang.String getAuthor()
Gets the author.

Returns:
the author

getBitrate

public long getBitrate()
Description copied from interface: AudioObject
Gets the bitrate.

Specified by:
getBitrate in interface AudioObject
Returns:
the bitrate

getComposer

public java.lang.String getComposer()
Description copied from interface: AudioObject
Gets the composer.

Specified by:
getComposer in interface AudioObject
Returns:
the composer

getDate

public java.util.Date getDate()
Gets the date.

Returns:
the date

getDescription

public java.lang.String getDescription()
Gets the description.

Returns:
the description

getDuration

public long getDuration()
Description copied from interface: AudioObject
Gets the duration.

Specified by:
getDuration in interface AudioObject
Returns:
the duration

getFrequency

public int getFrequency()
Description copied from interface: AudioObject
Gets the frequency.

Specified by:
getFrequency in interface AudioObject
Returns:
the frequency

getGenre

public java.lang.String getGenre()
Description copied from interface: AudioObject
Gets the genre.

Specified by:
getGenre in interface AudioObject
Returns:
the genre

getLyrics

public java.lang.String getLyrics()
Description copied from interface: AudioObject
Gets the lyrics.

Specified by:
getLyrics in interface AudioObject
Returns:
the lyrics

getName

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

Returns:
the name

setOld

public void setOld(boolean old)
Sets the old.

Parameters:
old - the new old

getPodcastFeed

public PodcastFeed getPodcastFeed()
Gets the podcast feed.

Returns:
The corresponding podcast feed

getStars

public int getStars()
Description copied from interface: AudioObject
Gets the stars.

Specified by:
getStars in interface AudioObject
Returns:
the stars

getTitle

public java.lang.String getTitle()
Description copied from interface: AudioObject
Gets the title.

Specified by:
getTitle in interface AudioObject
Returns:
the title

getTitleOrFileName

public java.lang.String getTitleOrFileName()
Description copied from interface: AudioObject
Gets the title or file name.

Specified by:
getTitleOrFileName in interface AudioObject
Returns:
the title or file name

getTrackNumber

public java.lang.Integer getTrackNumber()
Description copied from interface: AudioObject
Gets the track number.

Specified by:
getTrackNumber in interface AudioObject
Returns:
the track number

getUrl

public java.lang.String getUrl()
Description copied from interface: AudioObject
Gets the url.

Specified by:
getUrl in interface AudioObject
Returns:
the url

getYear

public java.lang.String getYear()
Description copied from interface: AudioObject
Gets the year.

Specified by:
getYear in interface AudioObject
Returns:
the year

hashCode

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

isListened

public boolean isListened()
Checks if is listened.

Returns:
if the podcast feed entry was already listened

isDownloaded

public boolean isDownloaded()
Checks if is downloaded.

Returns:
true, if is downloaded

isOld

public boolean isOld()
Checks if is old.

Returns:
true, if is old

setAuthor

public void setAuthor(java.lang.String author)
Sets the author.

Parameters:
author - the author to set

setDate

public void setDate(java.util.Date date)
Sets the date.

Parameters:
date - the date to set

setDescription

public void setDescription(java.lang.String description)
Sets the description.

Parameters:
description - the description to set

setDownloaded

public void setDownloaded(boolean downloaded)
Sets the downloaded.

Parameters:
downloaded - the new downloaded

setListened

public void setListened(boolean listened)
Sets the listened.

Parameters:
listened - if the podcast feed entry was already listened

setName

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

Parameters:
name - the name to set

setPodcastFeed

public void setPodcastFeed(PodcastFeed podcastFeed)
Sets the podcast feed.

Parameters:
podcastFeed - the corresponding podcast feed to set

setStars

public void setStars(int stars)
Description copied from interface: AudioObject
Sets the stars.

Specified by:
setStars in interface AudioObject
Parameters:
stars - the new stars

setUrl

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

Parameters:
url - the url to set

toString

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

isSeekable

public boolean isSeekable()
Description copied from interface: AudioObject
Checks if is seekable.

Specified by:
isSeekable in interface AudioObject
Returns:
true, if is seekable


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