net.sourceforge.atunes.kernel.modules.repository.tags.tag
Class Tag

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.repository.tags.tag.Tag
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DefaultTag

public abstract class Tag
extends java.lang.Object
implements java.io.Serializable

The Class Tag.

Author:
fleax
See Also:
Serialized Form

Field Summary
static java.lang.String[] genres
          Description of the Field.
 
Constructor Summary
Tag()
           
 
Method Summary
 java.lang.String getAlbum()
          Gets the album.
 java.lang.String getAlbumArtist()
          Gets the album artist.
 java.lang.String getArtist()
          Gets the artist.
 java.lang.String getComment()
          Gets the comment.
 java.lang.String getComposer()
          Gets the composer.
 java.lang.String getGenre()
          Gets the genre.
static int getGenre(java.lang.String str)
          Tries to find the string provided in the table and returns the corresponding int code if successful.
static java.lang.String getGenreForCode(int code)
          Gets the genre for code.
 java.lang.String getLyrics()
          Gets the lyrics.
abstract  Tag getTagFromProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
          Gets the tag from properties.
 java.lang.String getTitle()
          Gets the title.
 int getTrackNumber()
          Gets the track number.
 int getYear()
          Gets the year.
 boolean hasInternalImage()
          Returns true if this tag has an internal image, false otherwise
 boolean isSupportsInternalImage()
           
 void setAlbum(java.lang.String album)
          Sets the album.
 void setAlbumArtist(java.lang.String albumArtist)
          Sets the album artist.
 void setArtist(java.lang.String artist)
          Sets the artist.
 void setComment(java.lang.String comment)
          Sets the comment.
 void setComposer(java.lang.String composer)
          Sets the composer.
 void setGenre(int genre)
          Sets the genre.
 void setGenre(java.lang.String genre)
          Sets the genre.
 void setInternalImage(boolean internalImage)
          Sets if this tag has an internal image
 void setLyrics(java.lang.String lyrics)
          Sets the lyrics.
 void setSupportsInternalImage(boolean supportsInternalImage)
           
 void setTitle(java.lang.String title)
          Sets the title.
 void setTrackNumber(int tracknumber)
          Sets the track number.
 void setYear(int year)
          Sets the year.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

genres

public static final java.lang.String[] genres
Description of the Field.

Constructor Detail

Tag

public Tag()
Method Detail

getGenre

public static int getGenre(java.lang.String str)
Tries to find the string provided in the table and returns the corresponding int code if successful. Returns -1 if the genres is not found in the table.

Parameters:
str - the genre to search for
Returns:
the integer code for the genre or -1 if the genre is not found

getGenreForCode

public static final java.lang.String getGenreForCode(int code)
Gets the genre for code.

Parameters:
code - the code
Returns:
the genre for code

getAlbum

public java.lang.String getAlbum()
Gets the album.

Returns:
the album

getAlbumArtist

public java.lang.String getAlbumArtist()
Gets the album artist.

Returns:
the album artist

getArtist

public java.lang.String getArtist()
Gets the artist.

Returns:
the artist

getComment

public java.lang.String getComment()
Gets the comment.

Returns:
the comment

getComposer

public java.lang.String getComposer()
Gets the composer.

Returns:
the composer

getGenre

public java.lang.String getGenre()
Gets the genre.

Returns:
the genre

getLyrics

public java.lang.String getLyrics()
Gets the lyrics.

Returns:
the lyrics

getTagFromProperties

public abstract Tag getTagFromProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Gets the tag from properties.

Parameters:
properties - the properties
Returns:
the tag from properties

getTitle

public java.lang.String getTitle()
Gets the title.

Returns:
the title

getTrackNumber

public int getTrackNumber()
Gets the track number.

Returns:
the track number

getYear

public int getYear()
Gets the year.

Returns:
the year

setAlbum

public void setAlbum(java.lang.String album)
Sets the album.

Parameters:
album - the new album

setAlbumArtist

public void setAlbumArtist(java.lang.String albumArtist)
Sets the album artist.

Parameters:
albumArtist - the new album artist

setArtist

public void setArtist(java.lang.String artist)
Sets the artist.

Parameters:
artist - the new artist

setComment

public void setComment(java.lang.String comment)
Sets the comment.

Parameters:
comment - the new comment

setComposer

public void setComposer(java.lang.String composer)
Sets the composer.

Parameters:
composer - the new composer

setGenre

public void setGenre(int genre)
Sets the genre.

Parameters:
genre - the new genre

setGenre

public void setGenre(java.lang.String genre)
Sets the genre.

Parameters:
genre - the new genre

setLyrics

public void setLyrics(java.lang.String lyrics)
Sets the lyrics.

Parameters:
lyrics - the new lyrics

setTitle

public void setTitle(java.lang.String title)
Sets the title.

Parameters:
title - the new title

setTrackNumber

public void setTrackNumber(int tracknumber)
Sets the track number.

Parameters:
tracknumber - the new track number

setYear

public void setYear(int year)
Sets the year.

Parameters:
year - the new year

hasInternalImage

public boolean hasInternalImage()
Returns true if this tag has an internal image, false otherwise

Returns:
true if this tag has an internal image, false otherwise

setInternalImage

public void setInternalImage(boolean internalImage)
Sets if this tag has an internal image

Parameters:
internalImage - if this tag has an internal image

isSupportsInternalImage

public boolean isSupportsInternalImage()
Returns:
the supportsInternalImage

setSupportsInternalImage

public void setSupportsInternalImage(boolean supportsInternalImage)
Parameters:
supportsInternalImage - the supportsInternalImage to set


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.