public abstract class MusicalElement
extends java.lang.Object
implements java.io.Serializable
Song,
AudioBook,
Serialized Form| Constructor and Description |
|---|
MusicalElement(java.lang.String title,
int duration,
java.lang.String content)
Constructor method.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
This method is used to give the content path of the element.
|
int |
getDuration()
This method is used to give the duration of the element.
|
int |
getId()
This method is used to give the id of the element.
|
java.lang.String |
getTitle()
This method is used to give the title of the element.
|
void |
setContent(java.lang.String content)
Basic method to set the content path of the element.
|
void |
setDuration(int duration)
Basic method to set the duration of the element.
|
void |
setId(int id)
Basic method to set the id of the element.
|
void |
setTitle(java.lang.String title)
Basic method to set the title of the element.
|
public MusicalElement(java.lang.String title,
int duration,
java.lang.String content)
title - Stringduration - intcontent - String, path to the mp3 filepublic int getId()
public java.lang.String getTitle()
public int getDuration()
public java.lang.String getContent()
public void setId(int id)
id - intpublic void setTitle(java.lang.String title)
title - Stringpublic void setDuration(int duration)
duration - intpublic void setContent(java.lang.String content)
content - String