public class Album
extends java.lang.Object
| Constructor and Description |
|---|
Album()
The default constructor of the object.
|
Album(org.w3c.dom.Element albumElement)
Constructs a new Album object, by parsing the xml element from the DB.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSong(java.lang.String songTitle,
java.lang.String interpreter) |
Interpreter |
getInterpreter()
Returns the interpreter of the album.
|
java.lang.String |
getLabel()
Returns the label of the album.
|
java.lang.String |
getTitle()
Returns the title of the album.
|
Track[] |
getTracks()
Returns the tracks of the album.
|
int |
getYear()
Returns the year of recording the album.
|
void |
setInterpreter(Interpreter interpreter)
Sets the interpreter of the album.
|
void |
setLabel(java.lang.String label)
Sets the label of the album.
|
void |
setTitle(java.lang.String title)
Sets the title of the album.
|
void |
setTracks(Track[] tracks)
The tracks of the album.
|
void |
setYear(int year)
Sets the year of recording the album.
|
public Album()
public Album(org.w3c.dom.Element albumElement)
albumElement - The xml element from the DB of this Track object.public Interpreter getInterpreter()
public void setInterpreter(Interpreter interpreter)
interpreter - The interpreter of the album.public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - The label of the album.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - The title of the album.public Track[] getTracks()
public void setTracks(Track[] tracks)
tracks - The tracks of the album.public int getYear()
public void setYear(int year)
year - The year of recording the album.public boolean containsSong(java.lang.String songTitle,
java.lang.String interpreter)
songTitle - The song title to search for.interpreter - The interpreter of the song.true if the song is on this album.