org.jaudiotagger.tag.reference
Class GenreTypes

java.lang.Object
  extended by org.jaudiotagger.tag.datatype.AbstractValuePair<java.lang.Integer,java.lang.String>
      extended by org.jaudiotagger.tag.datatype.AbstractIntStringValuePair
          extended by org.jaudiotagger.tag.reference.GenreTypes

public class GenreTypes
extends AbstractIntStringValuePair

Genre list

This is the IDv1 list with additional values as defined by Winamp, this list is also used in Mp4 files, note iTunes doesn't understand genres above MAX_STANDARD_GENRE_ID, Winamp does


Field Summary
private static GenreTypes genreTypes
           
private static int MAX_STANDARD_GENRE_ID
           
private  java.util.Map<java.lang.String,java.lang.Integer> nameToIdMap
           
 
Fields inherited from class org.jaudiotagger.tag.datatype.AbstractIntStringValuePair
key
 
Fields inherited from class org.jaudiotagger.tag.datatype.AbstractValuePair
idToValue, iterator, value, valueList, valueToId
 
Constructor Summary
private GenreTypes()
           
 
Method Summary
 java.lang.Integer getIdForName(java.lang.String name)
          Get Id for name, match is not case sensitive
static GenreTypes getInstanceOf()
           
static int getMaxStandardGenreId()
           
 
Methods inherited from class org.jaudiotagger.tag.datatype.AbstractIntStringValuePair
createMaps, getIdForValue, getValueForId
 
Methods inherited from class org.jaudiotagger.tag.datatype.AbstractValuePair
getAlphabeticalValueList, getIdToValueMap, getSize, getValueToIdMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_STANDARD_GENRE_ID

private static int MAX_STANDARD_GENRE_ID

genreTypes

private static GenreTypes genreTypes

nameToIdMap

private java.util.Map<java.lang.String,java.lang.Integer> nameToIdMap
Constructor Detail

GenreTypes

private GenreTypes()
Method Detail

getMaxStandardGenreId

public static int getMaxStandardGenreId()
Returns:
the maximum genreId that is part of the official Standard, genres above this were added by winamp later.

getInstanceOf

public static GenreTypes getInstanceOf()

getIdForName

public java.lang.Integer getIdForName(java.lang.String name)
Get Id for name, match is not case sensitive

Parameters:
name -
Returns: