View Javadoc

1   package org.musicontroller.core;
2   
3   public class Role {
4   	private String artistname;
5   	private String instruments;
6   	
7   	public Role() {
8   		artistname="";
9   		instruments="";
10  	}
11  	
12  	public String getArtistname() {
13  		return artistname;
14  	}
15  	
16  	public void setArtistname(String artistname) {
17  		this.artistname = artistname;
18  	}
19  	
20  	public String getInstruments() {
21  		return instruments;
22  	}
23  	
24  	public void setInstruments(String instruments) {
25  		this.instruments = instruments;
26  	}
27  	
28  	public void addInstrument(String instrument) {
29  		if (instruments.equals("")) {
30  			instruments=instrument;
31  		} else {
32  			instruments+=", "+instrument;
33  		}
34  	}
35  	
36  	
37  	
38  
39  }