org.musicontroller.gui.edit
Class AiRelationBean

java.lang.Object
  extended by org.musicontroller.gui.edit.AiRelationBean
All Implemented Interfaces:
java.lang.Comparable<AiRelationBean>

public class AiRelationBean
extends java.lang.Object
implements java.lang.Comparable<AiRelationBean>

This bean class is used to show artist - instrument relations in the SongEdit page. This contains the first name, last name and a comma separated list of instrument names.

AiRelationBean objects have a natural ordering based on the artist name.

Version:
$Id: AiRelationBean.java,v 1.1 2010/03/16 18:55:42 varienaja Exp $
Author:
Hans Drexler

Constructor Summary
AiRelationBean()
           
 
Method Summary
 int compareTo(AiRelationBean o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getFirstName()
          Getter for the artists' first name.
 java.lang.String getInstruments()
          Getter for the instrument list.
 java.lang.String getLastName()
          Getter for the artists' last name.
 TrackList getTracklist()
          Getter for the tracklist.
 void setFirstName(java.lang.String firstname)
          Setter for the artists' first name.
 void setInstruments(java.lang.String instruments)
          Setter for the instrument list.
 void setLastName(java.lang.String lastname)
          Setter for the artists' last name.
 void setTracklist(TrackList tracks)
          Setter for the tracklist.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AiRelationBean

public AiRelationBean()
Method Detail

setFirstName

public void setFirstName(java.lang.String firstname)
Setter for the artists' first name.

Parameters:
firstname - The first name to set.

getFirstName

public java.lang.String getFirstName()
Getter for the artists' first name.

Returns:
The first name.

setLastName

public void setLastName(java.lang.String lastname)
Setter for the artists' last name.

Parameters:
lastname - The last name to set.

getLastName

public java.lang.String getLastName()
Getter for the artists' last name.

Returns:
The last name of the artist.

setInstruments

public void setInstruments(java.lang.String instruments)
Setter for the instrument list.

Parameters:
instruments - The instrument list to set.

getInstruments

public java.lang.String getInstruments()
Getter for the instrument list.

Returns:
the instrument list.

getTracklist

public TrackList getTracklist()
Getter for the tracklist.

Returns:
The tracklist.

setTracklist

public void setTracklist(TrackList tracks)
Setter for the tracklist.

Parameters:
tracks - The tracklist.

equals

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

compareTo

public int compareTo(AiRelationBean o)
Specified by:
compareTo in interface java.lang.Comparable<AiRelationBean>


Copyright © 2010 A.J.V.. All Rights Reserved.