public class AudioBook extends MusicalElement
MusicalElement,
Serialized Form| Constructor and Description |
|---|
AudioBook(java.lang.String title,
int duration,
java.lang.String content,
java.lang.String author,
Language language,
Category category)
Constructor method.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthor()
This method is used to give the author of the audiobook.
|
java.lang.String |
getCategory()
This method is used to give the category of the audiobook.
|
java.lang.String |
getLanguage()
This method is used to give the language of the audiobook.
|
void |
setArtist(java.lang.String author)
Basic method to set the author of the audiobook.
|
void |
setCategory(Category category)
Basic method to set the category of the audiobook using the name method from the Category class.
|
void |
setGenre(Language language)
Basic method to set the language of the audiobook using the name method from the Language class.
|
java.lang.String |
toString()
Basic method to "configure" what does a print of this object actually does.
|
getContent, getDuration, getId, getTitle, setContent, setDuration, setId, setTitlepublic java.lang.String getAuthor()
public java.lang.String getLanguage()
Languagepublic java.lang.String getCategory()
Categorypublic void setArtist(java.lang.String author)
author - Stringpublic void setGenre(Language language)
language - LanguageLanguagepublic void setCategory(Category category)
category - Categorypublic java.lang.String toString()
toString in class java.lang.Object