org.jaudiotagger.tag.mp4.field
Enum Mp4FieldType

java.lang.Object
  extended by java.lang.Enum<Mp4FieldType>
      extended by org.jaudiotagger.tag.mp4.field.Mp4FieldType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Mp4FieldType>

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

Describes the possible types of data held within a Databox


Enum Constant Summary
COVERART_BMP
           
COVERART_GIF
           
COVERART_JPEG
           
COVERART_PNG
           
DATETIME
           
DURATION
           
GENRES
           
GUID
           
HTML
           
IMPLICIT
           
INTEGER
           
ISRC
           
MI3P
           
RIAAPA
           
TEXT
           
TEXT_JAPANESE
           
TEXT_UTF16BE
           
UPC
           
URL
           
XML
           
 
Field Summary
private static java.util.EnumSet<Mp4FieldType> coverArtTypes
           
private  int fileClassId
           
private static java.util.HashMap<java.lang.Integer,Mp4FieldType> fileClassIdFiedTypeMap
           
 
Method Summary
static Mp4FieldType getFieldType(int fieldClassId)
           
 int getFileClassId()
           
static boolean isCoverArtType(Mp4FieldType mp4FieldType)
           
static Mp4FieldType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Mp4FieldType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IMPLICIT

public static final Mp4FieldType IMPLICIT

TEXT

public static final Mp4FieldType TEXT

TEXT_UTF16BE

public static final Mp4FieldType TEXT_UTF16BE

TEXT_JAPANESE

public static final Mp4FieldType TEXT_JAPANESE

HTML

public static final Mp4FieldType HTML

XML

public static final Mp4FieldType XML

GUID

public static final Mp4FieldType GUID

ISRC

public static final Mp4FieldType ISRC

MI3P

public static final Mp4FieldType MI3P

COVERART_GIF

public static final Mp4FieldType COVERART_GIF

COVERART_JPEG

public static final Mp4FieldType COVERART_JPEG

COVERART_PNG

public static final Mp4FieldType COVERART_PNG

URL

public static final Mp4FieldType URL

DURATION

public static final Mp4FieldType DURATION

DATETIME

public static final Mp4FieldType DATETIME

GENRES

public static final Mp4FieldType GENRES

INTEGER

public static final Mp4FieldType INTEGER

RIAAPA

public static final Mp4FieldType RIAAPA

UPC

public static final Mp4FieldType UPC

COVERART_BMP

public static final Mp4FieldType COVERART_BMP
Field Detail

fileClassId

private int fileClassId

fileClassIdFiedTypeMap

private static final java.util.HashMap<java.lang.Integer,Mp4FieldType> fileClassIdFiedTypeMap

coverArtTypes

private static java.util.EnumSet<Mp4FieldType> coverArtTypes
Method Detail

values

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

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

valueOf

public static Mp4FieldType 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
java.lang.NullPointerException - if the argument is null

getFileClassId

public int getFileClassId()

getFieldType

public static Mp4FieldType getFieldType(int fieldClassId)
Parameters:
fieldClassId -
Returns:
the Mp4FieldType that this fieldClassId maps to

isCoverArtType

public static boolean isCoverArtType(Mp4FieldType mp4FieldType)
Parameters:
mp4FieldType -
Returns:
true if this type is for identifying a image format to be used in cover art