Methods Summary |
---|
public void | addPicture(org.cmc.music.metadata.ImageData image)
Vector v = getVector(KEY_PICTURES);
if (null == v)
v = new Vector();
v.add(image);
put(KEY_PICTURES, v);
|
public void | clearAlbum()
remove(KEY_ALBUM);
|
public void | clearArtist()
remove(KEY_ARTIST);
|
public void | clearComment()
remove(KEY_COMMENT);
|
public void | clearCompilation()
remove(KEY_COMPILATION);
|
public void | clearComposer()
remove(KEY_COMPOSER);
|
public void | clearComposer2()
remove(KEY_COMPOSER_2);
|
public void | clearDurationSeconds()
remove(KEY_DURATION_SECONDS);
|
public void | clearFeaturingList()
remove(KEY_FEATURING_LIST);
|
public void | clearGenre()
remove(KEY_GENRE);
|
public void | clearPictureList()
remove(KEY_PICTURES);
|
public void | clearProducer()
remove(KEY_PRODUCER);
|
public void | clearProducerArtist()
remove(KEY_ALBUM_ARTIST);
|
public void | clearSongTitle()
remove(KEY_TITLE);
|
public void | clearTrackNumber()
remove(KEY_TRACK_NUMBER);
|
public void | clearYear()
remove(KEY_YEAR);
|
public static final org.cmc.music.metadata.MusicMetadata | createEmptyMetadata()
return new MusicMetadata("New Metadata");
|
public java.lang.String | getAlbum()
return getString(KEY_ALBUM);
|
public java.lang.String | getArtist()
return getString(KEY_ARTIST);
|
public java.lang.String | getComment()
return getString(KEY_COMMENT);
|
public java.lang.String | getCompilation()
return getString(KEY_COMPILATION);
|
public java.lang.String | getComposer()
return getString(KEY_COMPOSER);
|
public java.lang.String | getComposer2()
return getString(KEY_COMPOSER_2);
|
public java.lang.String | getDurationSeconds()
return getString(KEY_DURATION_SECONDS);
|
public java.util.Vector | getFeaturingList()
return getVector(KEY_FEATURING_LIST);
|
public java.lang.String | getGenre()
return getString(KEY_GENRE);
|
private java.lang.Number | getNumber(java.lang.Object key)
Object result = get(key);
if (result == null)
return null;
return (Number) result;
|
public java.util.Vector | getPictureList()
Vector result = getVector(KEY_PICTURES);
if (result == null)
result = new Vector();
return result;
|
public java.lang.String | getProducer()
return getString(KEY_PRODUCER);
|
public java.lang.String | getProducerArtist()
return getString(KEY_ALBUM_ARTIST);
|
public java.lang.String | getSongTitle()
return getString(KEY_TITLE);
|
private java.lang.String | getString(java.lang.Object key)
Object result = get(key);
if (result == null)
return null;
return (String) result;
|
public java.lang.Number | getTrackNumber()
return getNumber(KEY_TRACK_NUMBER);
|
private java.util.Vector | getVector(java.lang.Object key)
Object result = get(key);
if (result == null)
return null;
return (Vector) result;
|
public java.lang.String | getYear()
return getString(KEY_YEAR);
|
public boolean | hasBasicInfo()
if (null == getArtist())
return false;
if (null == getSongTitle())
return false;
if (null == getAlbum())
return false;
if (null == getTrackNumber())
return false;
return true;
|
public void | setAlbum(java.lang.String s)
put(KEY_ALBUM, s);
|
public void | setArtist(java.lang.String s)
put(KEY_ARTIST, s);
|
public void | setComment(java.lang.String s)
put(KEY_COMMENT, s);
|
public void | setCompilation(java.lang.String s)
put(KEY_COMPILATION, s);
|
public void | setComposer(java.lang.String s)
put(KEY_COMPOSER, s);
|
public void | setComposer2(java.lang.String s)
put(KEY_COMPOSER_2, s);
|
public void | setDurationSeconds(java.lang.String s)
put(KEY_DURATION_SECONDS, s);
|
public void | setFeaturingList(java.util.Vector v)
put(KEY_FEATURING_LIST, v);
|
public void | setGenre(java.lang.String s)
put(KEY_GENRE, s);
|
public void | setPictureList(java.util.Vector v)
put(KEY_PICTURES, v);
|
public void | setProducer(java.lang.String s)
put(KEY_PRODUCER, s);
|
public void | setProducerArtist(java.lang.String s)
put(KEY_ALBUM_ARTIST, s);
|
public void | setSongTitle(java.lang.String s)
put(KEY_TITLE, s);
|
public void | setTrackNumber(java.lang.Number s)
put(KEY_TRACK_NUMBER, s);
|
public void | setYear(java.lang.String s)
put(KEY_YEAR, s);
|
public java.lang.String | toString()
StringBuffer result = new StringBuffer();
result.append("{ ");
Vector keys = new Vector(keySet());
Collections.sort(keys);
for (int i = 0; i < keys.size(); i++)
{
Object key = keys.get(i);
Object value = get(key);
if (i > 0)
result.append(", ");
result.append(key + ": " + value);
}
result.append(" }");
return result.toString();
|