Coverage Report - org.jaudiotagger.tag.mp4.atom.Mp4RatingValue
 
Classes in this File Line Coverage Branch Coverage Complexity
Mp4RatingValue
88%
8/9
N/A
1
 
 1  
 package org.jaudiotagger.tag.mp4.atom;
 2  
 
 3  
 /**
 4  
  * List of valid values for the Rating (rtng) atom
 5  
  * <p/>
 6  
  * These are held as a byte field
 7  
  * <p/>
 8  
  * TODO:Is this only used in video
 9  
  */
 10  4
 public enum Mp4RatingValue
 11  
 {
 12  4
     CLEAN("Clean", 2),
 13  4
     EXPLICIT("Explicit", 4);
 14  
 
 15  
     private String description;
 16  
     private int id;
 17  
 
 18  
 
 19  
     /**
 20  
      * @param description of value
 21  
      * @param id          used internally
 22  
      */
 23  
     Mp4RatingValue(String description, int id)
 24  8
     {
 25  8
         this.description = description;
 26  8
         this.id = id;
 27  8
     }
 28  
 
 29  
     /**
 30  
      * Return id used in the file
 31  
      *
 32  
      * @return id
 33  
      */
 34  
     public int getId()
 35  
     {
 36  56
         return id;
 37  
     }
 38  
 
 39  
     /**
 40  
      * This is the value of the fieldname that is actually used to write mp4
 41  
      *
 42  
      * @return
 43  
      */
 44  
     public String getDescription()
 45  
     {
 46  0
         return description;
 47  
     }
 48  
 
 49  
 
 50  
 }