net.sourceforge.atunes.kernel.modules.radio
Class Radio

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.radio.Radio
All Implemented Interfaces:
java.io.Serializable, AudioObject, TreeObject

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

The Class Radio.

See Also:
Serialized Form

Constructor Summary
Radio(java.lang.String name, java.lang.String url, java.lang.String label)
          Instantiates a new radio.
 
Method Summary
 void deleteSongInfo()
          Delete song info.
 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.util.List<AudioObject> getAudioObjects()
          Returns the audio objects of this tree object.
 long getBitrate()
          Gets the bitrate.
static java.util.Comparator<Radio> getComparator()
          Gets the comparator.
 java.lang.String getComposer()
          Gets the composer.
 long getDuration()
          Gets the duration.
 int getFrequency()
          Gets the frequency.
 java.lang.String getGenre()
          Gets the genre.
 java.lang.String getLabel()
          Gets the label.
 java.lang.String getLyrics()
          Gets the lyrics.
 java.lang.String getName()
          Gets the name.
 java.util.List<Radio> getRadios()
          Gets the radios.
static java.util.List<Radio> getRadios(java.util.List<AudioObject> audioObjects)
          Gets the radios.
 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 hasPlaylistUrl()
          Checks for playlist url.
 boolean isRemoved()
          Checks if is removed.
 boolean isSeekable()
          Checks if is seekable.
 boolean isSongInfoAvailable()
          Checks if is song info available.
 void setArtist(java.lang.String artist)
          Sets the artist.
 void setBitrate(long bitrate)
          Sets the bitrate.
 void setComposer(java.lang.String composer)
          Sets the composer.
 void setFrequency(int frequency)
          Sets the frequency.
 void setGenre(java.lang.String genre)
          Sets the genre.
 void setLabel(java.lang.String label)
          Sets the label.
 void setName(java.lang.String name)
          Sets the name.
 void setRemoved(boolean isRemoved)
          Set a preset station as removed.
 void setSongInfoAvailable(boolean songInfoAvailable)
          Sets the song info available.
 void setStars(int stars)
          Sets the stars.
 void setTitle(java.lang.String title)
          Sets the title.
 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

Radio

public Radio(java.lang.String name,
             java.lang.String url,
             java.lang.String label)
Instantiates a new radio.

Parameters:
name - the name
url - the url
label - the label
Method Detail

getComparator

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

Returns:
the comparator

getRadios

public static java.util.List<Radio> getRadios(java.util.List<AudioObject> audioObjects)
Gets the radios.

Parameters:
audioObjects - the audio objects
Returns:
the radios

deleteSongInfo

public void deleteSongInfo()
Delete song info.


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

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

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

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:
Radio station name

getRadios

public java.util.List<Radio> getRadios()
Gets the radios.

Returns:
the radios

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

hasPlaylistUrl

public boolean hasPlaylistUrl()
Checks for playlist url.

Returns:
true, if successful

isRemoved

public boolean isRemoved()
Checks if is removed.

Returns:
true, if is removed

isSongInfoAvailable

public boolean isSongInfoAvailable()
Checks if is song info available.

Returns:
true, if is song info available

setArtist

public void setArtist(java.lang.String artist)
Sets the artist.

Parameters:
artist - the new artist

setBitrate

public void setBitrate(long bitrate)
Sets the bitrate.

Parameters:
bitrate - the new bitrate

setComposer

public void setComposer(java.lang.String composer)
Sets the composer.

Parameters:
composer - the new composer

setFrequency

public void setFrequency(int frequency)
Sets the frequency.

Parameters:
frequency - the new frequency

setGenre

public void setGenre(java.lang.String genre)
Sets the genre.

Parameters:
genre - the new genre

setName

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

Parameters:
name - the new name

setRemoved

public void setRemoved(boolean isRemoved)
Set a preset station as removed. Set true for removing.

Parameters:
isRemoved - the is removed

setSongInfoAvailable

public void setSongInfoAvailable(boolean songInfoAvailable)
Sets the song info available.

Parameters:
songInfoAvailable - the new song info available

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

setTitle

public void setTitle(java.lang.String title)
Sets the title.

Parameters:
title - the new title

setUrl

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

Parameters:
url - the new url

toString

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

getLabel

public java.lang.String getLabel()
Gets the label.

Returns:
the label

setLabel

public void setLabel(java.lang.String label)
Sets the label.

Parameters:
label - the label to set

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.