entagged.audioformats.generic
Class AbstractTag

java.lang.Object
  extended by entagged.audioformats.generic.AbstractTag
All Implemented Interfaces:
Tag
Direct Known Subclasses:
GenericTag

public abstract class AbstractTag
extends Object
implements Tag


Field Summary
protected  int commonNumber
           
protected  HashMap fields
           
 
Fields inherited from interface entagged.audioformats.Tag
DEFAULT_GENRES
 
Constructor Summary
AbstractTag()
           
 
Method Summary
 void add(TagField field)
           
 void addAlbum(String s)
           
 void addArtist(String s)
           
 void addComment(String s)
           
 void addGenre(String s)
           
 void addTitle(String s)
           
 void addTrack(String s)
           
 void addYear(String s)
           
protected abstract  TagField createAlbumField(String content)
           
protected abstract  TagField createArtistField(String content)
           
protected abstract  TagField createCommentField(String content)
           
protected abstract  TagField createGenreField(String content)
           
protected abstract  TagField createTitleField(String content)
           
protected abstract  TagField createTrackField(String content)
           
protected abstract  TagField createYearField(String content)
           
 List get(String id)
           
 List getAlbum()
           
protected abstract  String getAlbumId()
           
 List getArtist()
           
protected abstract  String getArtistId()
           
 List getComment()
           
protected abstract  String getCommentId()
           
 Iterator getFields()
           
 String getFirstAlbum()
           
 String getFirstArtist()
           
 String getFirstComment()
           
 String getFirstGenre()
           
 String getFirstTitle()
           
 String getFirstTrack()
           
 String getFirstYear()
           
 List getGenre()
           
protected abstract  String getGenreId()
           
 List getTitle()
           
protected abstract  String getTitleId()
           
 List getTrack()
           
protected abstract  String getTrackId()
           
 List getYear()
           
protected abstract  String getYearId()
           
 boolean hasCommonFields()
           
 boolean hasField(String id)
           
protected abstract  boolean isAllowedEncoding(String enc)
           
 boolean isEmpty()
           
 void merge(Tag tag)
           
 void set(TagField field)
           
 void setAlbum(String s)
           
 void setArtist(String s)
           
 void setComment(String s)
           
 void setGenre(String s)
           
 void setTitle(String s)
           
 void setTrack(String s)
           
 void setYear(String s)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fields

protected HashMap fields

commonNumber

protected int commonNumber
Constructor Detail

AbstractTag

public AbstractTag()
Method Detail

getTitle

public List getTitle()
Specified by:
getTitle in interface Tag

getAlbum

public List getAlbum()
Specified by:
getAlbum in interface Tag

getArtist

public List getArtist()
Specified by:
getArtist in interface Tag

getGenre

public List getGenre()
Specified by:
getGenre in interface Tag

getTrack

public List getTrack()
Specified by:
getTrack in interface Tag

getYear

public List getYear()
Specified by:
getYear in interface Tag

getComment

public List getComment()
Specified by:
getComment in interface Tag

getFirstTitle

public String getFirstTitle()
Specified by:
getFirstTitle in interface Tag

getFirstAlbum

public String getFirstAlbum()
Specified by:
getFirstAlbum in interface Tag

getFirstArtist

public String getFirstArtist()
Specified by:
getFirstArtist in interface Tag

getFirstGenre

public String getFirstGenre()
Specified by:
getFirstGenre in interface Tag

getFirstTrack

public String getFirstTrack()
Specified by:
getFirstTrack in interface Tag

getFirstYear

public String getFirstYear()
Specified by:
getFirstYear in interface Tag

getFirstComment

public String getFirstComment()
Specified by:
getFirstComment in interface Tag

setTitle

public void setTitle(String s)
Specified by:
setTitle in interface Tag

setAlbum

public void setAlbum(String s)
Specified by:
setAlbum in interface Tag

setArtist

public void setArtist(String s)
Specified by:
setArtist in interface Tag

setGenre

public void setGenre(String s)
Specified by:
setGenre in interface Tag

setTrack

public void setTrack(String s)
Specified by:
setTrack in interface Tag

setYear

public void setYear(String s)
Specified by:
setYear in interface Tag

setComment

public void setComment(String s)
Specified by:
setComment in interface Tag

addTitle

public void addTitle(String s)
Specified by:
addTitle in interface Tag

addAlbum

public void addAlbum(String s)
Specified by:
addAlbum in interface Tag

addArtist

public void addArtist(String s)
Specified by:
addArtist in interface Tag

addGenre

public void addGenre(String s)
Specified by:
addGenre in interface Tag

addTrack

public void addTrack(String s)
Specified by:
addTrack in interface Tag

addYear

public void addYear(String s)
Specified by:
addYear in interface Tag

addComment

public void addComment(String s)
Specified by:
addComment in interface Tag

hasField

public boolean hasField(String id)
Specified by:
hasField in interface Tag

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Tag

hasCommonFields

public boolean hasCommonFields()
Specified by:
hasCommonFields in interface Tag

getFields

public Iterator getFields()
Specified by:
getFields in interface Tag

get

public List get(String id)
Specified by:
get in interface Tag

set

public void set(TagField field)
Specified by:
set in interface Tag

add

public void add(TagField field)
Specified by:
add in interface Tag

toString

public String toString()
Specified by:
toString in interface Tag
Overrides:
toString in class Object

merge

public void merge(Tag tag)
Specified by:
merge in interface Tag

getArtistId

protected abstract String getArtistId()

getAlbumId

protected abstract String getAlbumId()

getTitleId

protected abstract String getTitleId()

getTrackId

protected abstract String getTrackId()

getYearId

protected abstract String getYearId()

getCommentId

protected abstract String getCommentId()

getGenreId

protected abstract String getGenreId()

createArtistField

protected abstract TagField createArtistField(String content)

createAlbumField

protected abstract TagField createAlbumField(String content)

createTitleField

protected abstract TagField createTitleField(String content)

createTrackField

protected abstract TagField createTrackField(String content)

createYearField

protected abstract TagField createYearField(String content)

createCommentField

protected abstract TagField createCommentField(String content)

createGenreField

protected abstract TagField createGenreField(String content)

isAllowedEncoding

protected abstract boolean isAllowedEncoding(String enc)


Copyright © 2007-2011 shredzone.org. All Rights Reserved.