net.sourceforge.atunes.kernel.modules.repository.model
Class Genre

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.repository.model.Genre
All Implemented Interfaces:
java.io.Serializable, TreeObject

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

This class represents a genre, with a name, and a set of artist of this genre.

See Also:
Serialized Form

Constructor Summary
Genre(java.lang.String name)
          Constructor.
 
Method Summary
 void addArtist(Artist a)
          Adds an artist to this genre.
 boolean equals(java.lang.Object o)
           
 Artist getArtist(java.lang.String a)
          Returns an Artist for a given artist name.
 java.util.Map<java.lang.String,Artist> getArtists()
          Returns artists of this genre.
 java.util.List<AudioFile> getAudioFiles()
          Gets the audio files.
 java.util.List<AudioObject> getAudioObjects()
          Returns all songs of this genre (all songs of all artists).
 java.lang.String getName()
          Returns the name of this genre.
 int hashCode()
           
 void removeArtist(Artist a)
          Removes an artist from this genre.
 java.lang.String toString()
          String representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Genre

public Genre(java.lang.String name)
Constructor.

Parameters:
name - the name
Method Detail

addArtist

public void addArtist(Artist a)
Adds an artist to this genre.

Parameters:
a - the a

equals

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

getArtist

public Artist getArtist(java.lang.String a)
Returns an Artist for a given artist name.

Parameters:
a - the a
Returns:
the artist

getArtists

public java.util.Map<java.lang.String,Artist> getArtists()
Returns artists of this genre.

Returns:
the artists

getAudioFiles

public java.util.List<AudioFile> getAudioFiles()
Gets the audio files.

Returns:
the audio files

getAudioObjects

public java.util.List<AudioObject> getAudioObjects()
Returns all songs of this genre (all songs of all artists).

Specified by:
getAudioObjects in interface TreeObject
Returns:
the audio objects

getName

public java.lang.String getName()
Returns the name of this genre.

Returns:
the name

hashCode

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

removeArtist

public void removeArtist(Artist a)
Removes an artist from this genre.

Parameters:
a - the a

toString

public java.lang.String toString()
String representation.

Overrides:
toString in class java.lang.Object
Returns:
the string


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