Coverage Report - org.jaudiotagger.tag.mp4.Mp4NonStandardFieldKey
 
Classes in this File Line Coverage Branch Coverage Complexity
Mp4NonStandardFieldKey
85%
12/14
N/A
1
 
 1  
 package org.jaudiotagger.tag.mp4;
 2  
 
 3  
 import org.jaudiotagger.tag.reference.Tagger;
 4  
 
 5  
 /**
 6  
  * This a list of mp4boxes identifiers that break various rules, but should be documented nonetheless, they will
 7  
  * be created by applications other than iTunes, as we regard iTunes as the defacto standard for Mp4 files (but
 8  
  * certainly not any other format such as mp3 !).
 9  
  */
 10  4
 public enum Mp4NonStandardFieldKey
 11  
 {
 12  4
     AAPR("AApr", "MM3 Album Art Attributes", Tagger.MEDIA_MONKEY),
 13  4
     ALFN("Alfn", "MM3 Album Art Unknown", Tagger.MEDIA_MONKEY),
 14  4
     AMIM("AMIM", "MM3 Album Art MimeType", Tagger.MEDIA_MONKEY),
 15  4
     ADCP("Adcp", "MM3 Album Art Description", Tagger.MEDIA_MONKEY),
 16  4
     APTY("Apty", "MM3 Album Art ID3 Picture Type", Tagger.MEDIA_MONKEY);
 17  
 
 18  
     private String fieldName;
 19  
     private String description;
 20  
     private Tagger tagger;
 21  
 
 22  
     Mp4NonStandardFieldKey(String fieldName, String description, Tagger tagger)
 23  20
     {
 24  20
         this.fieldName = fieldName;
 25  20
         this.description = description;
 26  20
         this.tagger = tagger;
 27  
 
 28  20
     }
 29  
 
 30  
     /**
 31  
      * This is the value of the fieldname that is actually used to write mp4
 32  
      *
 33  
      * @return
 34  
      */
 35  
     public String getFieldName()
 36  
     {
 37  32
         return fieldName;
 38  
     }
 39  
 
 40  
     /**
 41  
      * @return description, human redable description of the atom
 42  
      */
 43  
     public String getDescription()
 44  
     {
 45  0
         return description;
 46  
     }
 47  
 
 48  
     /**
 49  
      * @return tagger that defined (and probably craeted) instance of field
 50  
      */
 51  
     public Tagger geTagger()
 52  
     {
 53  0
         return tagger;
 54  
     }
 55  
 }