magoffin.matt.meta.audio
Enum AudioMetadataType

java.lang.Object
  extended by java.lang.Enum<AudioMetadataType>
      extended by magoffin.matt.meta.audio.AudioMetadataType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AudioMetadataType>

public enum AudioMetadataType
extends java.lang.Enum<AudioMetadataType>

Metadata types for audio media.


Enum Constant Summary
ALBUM
          The album name.
ALBUM_COVER
          The album cover image as a MetadataImage.
ARTIST
          The artist name.
AUDIO_FORMAT
          The audio format, such as codec, frequency, bits, etc.
BIT_RATE
          The bit rate (eg bits/sec) as an Integer.
COMMENT
          A comment.
COMPOSER
          The composer.
DISC_NUM
          The disc number (for multi-disc sets) as a Integer.
DISC_TOTAL
          The total discs in this set as a Integer.
DURATION
          The total length of the autio in milliseconds as an Long.
GENRE
          The music genre.
RELEASE_DATE
          The release date as a Date.
SAMPLE_RATE
          The digital sample frequency (eg Hz) as a Double.
SONG_NAME
          The song name.
TRACK_NUM
          The track number on disc as a Integer.
TRACK_TOTAL
          The total number of tracks on disc as a Integer.
VBR_FLAG
          Flag indicating variable bit rate as a Boolean.
YEAR
          The music year as a Integer.
 
Method Summary
 java.lang.Class<?> getObjectType()
          Get the type of object this metadata represents.
static AudioMetadataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AudioMetadataType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALBUM

public static final AudioMetadataType ALBUM
The album name.


ALBUM_COVER

public static final AudioMetadataType ALBUM_COVER
The album cover image as a MetadataImage.


ARTIST

public static final AudioMetadataType ARTIST
The artist name.


AUDIO_FORMAT

public static final AudioMetadataType AUDIO_FORMAT
The audio format, such as codec, frequency, bits, etc.


BIT_RATE

public static final AudioMetadataType BIT_RATE
The bit rate (eg bits/sec) as an Integer.

For variable bit rate resources, this should be an estimate value, or average value.


COMMENT

public static final AudioMetadataType COMMENT
A comment.


COMPOSER

public static final AudioMetadataType COMPOSER
The composer.


DISC_NUM

public static final AudioMetadataType DISC_NUM
The disc number (for multi-disc sets) as a Integer.


DISC_TOTAL

public static final AudioMetadataType DISC_TOTAL
The total discs in this set as a Integer.


DURATION

public static final AudioMetadataType DURATION
The total length of the autio in milliseconds as an Long.


GENRE

public static final AudioMetadataType GENRE
The music genre.


RELEASE_DATE

public static final AudioMetadataType RELEASE_DATE
The release date as a Date.


SAMPLE_RATE

public static final AudioMetadataType SAMPLE_RATE
The digital sample frequency (eg Hz) as a Double.


SONG_NAME

public static final AudioMetadataType SONG_NAME
The song name.


TRACK_NUM

public static final AudioMetadataType TRACK_NUM
The track number on disc as a Integer.


TRACK_TOTAL

public static final AudioMetadataType TRACK_TOTAL
The total number of tracks on disc as a Integer.


VBR_FLAG

public static final AudioMetadataType VBR_FLAG
Flag indicating variable bit rate as a Boolean.


YEAR

public static final AudioMetadataType YEAR
The music year as a Integer.

Method Detail

values

public static final AudioMetadataType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(AudioMetadataType c : AudioMetadataType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static AudioMetadataType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getObjectType

public java.lang.Class<?> getObjectType()
Get the type of object this metadata represents.

Returns:
object type