org.jaudiotagger.audio.generic
Class GenericTag

java.lang.Object
  extended by org.jaudiotagger.audio.generic.AbstractTag
      extended by org.jaudiotagger.audio.generic.GenericTag
All Implemented Interfaces:
Tag

public class GenericTag
extends AbstractTag

This is a complete example implementation of AbstractTag.
The identifiers of commonly used fields is defined by keys.

Author:
Raphaël Slinckx

Field Summary
static int ALBUM
          Index for the "album"-identifier in keys.
static int ARTIST
          Index for the "artist"-identifier in keys.
static int COMMENT
          Index for the "comment"-identifier in keys.
static int GENRE
          Index for the "genre"-identifier in keys.
static int TITLE
          Index for the "title"-identifier in keys.
static int TRACK
          Index for the "track"-identifier in keys.
static int YEAR
          Index for the "year"-identifier in keys.
 
Constructor Summary
GenericTag()
           
 
Method Summary
 TagField createAlbumField(java.lang.String content)
          (overridden)
 TagField createArtistField(java.lang.String content)
          (overridden)
 TagField createCommentField(java.lang.String content)
          (overridden)
 TagField createGenreField(java.lang.String content)
          (overridden)
 TagField createTitleField(java.lang.String content)
          (overridden)
 TagField createTrackField(java.lang.String content)
          (overridden)
 TagField createYearField(java.lang.String content)
          (overridden)
 
Methods inherited from class org.jaudiotagger.audio.generic.AbstractTag
add, addAlbum, addArtist, addComment, addGenre, addTitle, addTrack, addYear, createTagField, deleteTagField, get, get, getAlbum, getArtist, getComment, getFieldCount, getFields, getFirst, getFirst, getFirstAlbum, getFirstArtist, getFirstComment, getFirstField, getFirstGenre, getFirstTitle, getFirstTrack, getFirstYear, getGenre, getTitle, getTrack, getYear, hasCommonFields, hasField, isEmpty, set, setAlbum, setArtist, setComment, setEncoding, setGenre, setTitle, setTrack, setYear, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALBUM

public static final int ALBUM
Index for the "album"-identifier in keys.

See Also:
Constant Field Values

ARTIST

public static final int ARTIST
Index for the "artist"-identifier in keys.

See Also:
Constant Field Values

COMMENT

public static final int COMMENT
Index for the "comment"-identifier in keys.

See Also:
Constant Field Values

GENRE

public static final int GENRE
Index for the "genre"-identifier in keys.

See Also:
Constant Field Values

TITLE

public static final int TITLE
Index for the "title"-identifier in keys.

See Also:
Constant Field Values

TRACK

public static final int TRACK
Index for the "track"-identifier in keys.

See Also:
Constant Field Values

YEAR

public static final int YEAR
Index for the "year"-identifier in keys.

See Also:
Constant Field Values
Constructor Detail

GenericTag

public GenericTag()
Method Detail

createAlbumField

public TagField createAlbumField(java.lang.String content)
(overridden)

Specified by:
createAlbumField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "album"
See Also:
AbstractTag.createAlbumField(java.lang.String)

createArtistField

public TagField createArtistField(java.lang.String content)
(overridden)

Specified by:
createArtistField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "artist"
See Also:
AbstractTag.createArtistField(java.lang.String)

createCommentField

public TagField createCommentField(java.lang.String content)
(overridden)

Specified by:
createCommentField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "comment"
See Also:
AbstractTag.createCommentField(java.lang.String)

createGenreField

public TagField createGenreField(java.lang.String content)
(overridden)

Specified by:
createGenreField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "genre"
See Also:
AbstractTag.createGenreField(java.lang.String)

createTitleField

public TagField createTitleField(java.lang.String content)
(overridden)

Specified by:
createTitleField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "title"
See Also:
AbstractTag.createTitleField(java.lang.String)

createTrackField

public TagField createTrackField(java.lang.String content)
(overridden)

Specified by:
createTrackField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "track"
See Also:
AbstractTag.createTrackField(java.lang.String)

createYearField

public TagField createYearField(java.lang.String content)
(overridden)

Specified by:
createYearField in class AbstractTag
Parameters:
content - The content of the created field.
Returns:
tagfield representing the "year"
See Also:
AbstractTag.createYearField(java.lang.String)