|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.musicontroller.importer.MusicArchiveEntryBean
public class MusicArchiveEntryBean
This class holds information about a music archive entry (usually a song), including song title, band name, playlist name, length and tags.
During the import process this bean also contains the location of the extracted MP3 file.
Constructor Summary | |
---|---|
MusicArchiveEntryBean()
Default constructor. |
Method Summary | |
---|---|
int |
compareTo(MusicArchiveEntryBean o)
Define a natural ordening on MusicArchiveEntryBeans based on track number. |
boolean |
equals(java.lang.Object o)
Two MusicArchiveEntryBean objects are the same if they have the same song index greater than 0. |
java.lang.String |
getBandName()
Getter for the bandname. |
java.lang.String |
getEntryName()
Getter for the file name of the MP3 file in the inspected directrory. |
boolean |
getInclude()
Getter for the included indicator. |
java.util.Set<java.lang.String> |
getKeywords()
Getter for the set of keywords. |
java.lang.String |
getKeywordString()
Returns a String repesentation of the keywords in the bean as a comma-separated String of keywords. |
java.lang.String |
getPlaylistName()
Getter for the playlist name. |
java.util.Date |
getReleaseDate()
Getter for the release date of the playlist. |
int |
getSongIndex()
Getter for the song index. |
int |
getSongLength()
Getter for the song length. |
java.lang.String |
getSongName()
Getter for the name of the song. |
int |
hashCode()
Returns a hash code based on the song index. |
void |
setBandName(java.lang.String name)
Setter for the bandname. |
void |
setEntryName(java.lang.String entryName)
Setter for the file name of the MP3 file in the inspected directrory. |
void |
setInclude(boolean include)
Setter for the included indicator. |
void |
setKeywords(java.util.Set<java.lang.String> keywords)
Setter for the keyword set. |
void |
setKeywordString(java.lang.String keywords)
Splits the argument into comma-separated keywords and stores them in the keywords property of the bean. |
void |
setPlaylistName(java.lang.String name)
Setter for the playlist-name. |
void |
setReleaseDate(java.util.Date releaseDate)
|
void |
setSongIndex(int index)
Setter for the song index. |
void |
setSongLength(int seconds)
Setter for the song length. |
void |
setSongName(java.lang.String name)
Setter for the name of the song. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MusicArchiveEntryBean()
Method Detail |
---|
public java.lang.String getBandName()
public void setBandName(java.lang.String name)
name
- The bandname.public java.lang.String getPlaylistName()
public void setPlaylistName(java.lang.String name)
name
- The new playlist name.public java.util.Set<java.lang.String> getKeywords()
public void setKeywords(java.util.Set<java.lang.String> keywords)
keywords
- The keyword set.public int getSongLength()
public void setSongLength(int seconds)
seconds
- The song length in milliseconds.public java.lang.String getSongName()
public void setSongName(java.lang.String name)
name
- The song name.public int getSongIndex()
public void setSongIndex(int index)
index
- The indexpublic void setInclude(boolean include)
include
- The included indicator.public boolean getInclude()
public java.lang.String getEntryName()
public void setEntryName(java.lang.String entryName)
entryName
- The music entry file name.public java.util.Date getReleaseDate()
public void setReleaseDate(java.util.Date releaseDate)
public java.lang.String getKeywordString()
public void setKeywordString(java.lang.String keywords)
keywords
- The comma-separated list of keywords.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(MusicArchiveEntryBean o)
compareTo
in interface java.lang.Comparable<MusicArchiveEntryBean>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |