FileDocCategorySizeDatePackage
Mp4NonStandardFieldKey.javaAPI DocJaudiotagger 2.0.41588Wed Mar 30 16:12:10 BST 2011org.jaudiotagger.tag.mp4

Mp4NonStandardFieldKey.java

package org.jaudiotagger.tag.mp4;

import org.jaudiotagger.tag.reference.Tagger;

/**
 * This a list of mp4boxes identifiers that break various rules, but should be documented nonetheless, they will
 * be created by applications other than iTunes, as we regard iTunes as the defacto standard for Mp4 files (but
 * certainly not any other format such as mp3 !).
 */
public enum Mp4NonStandardFieldKey
{
    AAPR("AApr", "MM3 Album Art Attributes", Tagger.MEDIA_MONKEY),
    ALFN("Alfn", "MM3 Album Art Unknown", Tagger.MEDIA_MONKEY),
    AMIM("AMIM", "MM3 Album Art MimeType", Tagger.MEDIA_MONKEY),
    ADCP("Adcp", "MM3 Album Art Description", Tagger.MEDIA_MONKEY),
    APTY("Apty", "MM3 Album Art ID3 Picture Type", Tagger.MEDIA_MONKEY);

    private String fieldName;
    private String description;
    private Tagger tagger;

    Mp4NonStandardFieldKey(String fieldName, String description, Tagger tagger)
    {
        this.fieldName = fieldName;
        this.description = description;
        this.tagger = tagger;

    }

    /**
     * This is the value of the fieldname that is actually used to write mp4
     *
     * @return
     */
    public String getFieldName()
    {
        return fieldName;
    }

    /**
     * @return description, human redable description of the atom
     */
    public String getDescription()
    {
        return description;
    }

    /**
     * @return tagger that defined (and probably craeted) instance of field
     */
    public Tagger geTagger()
    {
        return tagger;
    }
}