Coverage Report - org.jaudiotagger.tag.lyrics3.FieldFrameBodyIND
 
Classes in this File Line Coverage Branch Coverage Complexity
FieldFrameBodyIND
0%
0/18
N/A
1
 
 1  
 /**
 2  
  *  @author : Paul Taylor
 3  
  *  @author : Eric Farng
 4  
  *
 5  
  *  Version @version:$Id: FieldFrameBodyIND.java,v 1.9 2008/07/21 10:45:49 paultaylor Exp $
 6  
  *
 7  
  *  MusicTag Copyright (C)2003,2004
 8  
  *
 9  
  *  This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
 10  
  *  General Public  License as published by the Free Software Foundation; either version 2.1 of the License,
 11  
  *  or (at your option) any later version.
 12  
  *
 13  
  *  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
 14  
  *  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 15  
  *  See the GNU Lesser General Public License for more details.
 16  
  *
 17  
  *  You should have received a copy of the GNU Lesser General Public License along with this library; if not,
 18  
  *  you can get a copy from http://www.opensource.org/licenses/lgpl-license.php or write to the Free Software
 19  
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 20  
  *
 21  
  * Description:
 22  
  *
 23  
  */
 24  
 package org.jaudiotagger.tag.lyrics3;
 25  
 
 26  
 import org.jaudiotagger.tag.InvalidTagException;
 27  
 import org.jaudiotagger.tag.datatype.BooleanString;
 28  
 
 29  
 import java.nio.ByteBuffer;
 30  
 
 31  
 
 32  
 public class FieldFrameBodyIND extends AbstractLyrics3v2FieldFrameBody
 33  
 {
 34  
     /**
 35  
      * Creates a new FieldBodyIND datatype.
 36  
      */
 37  
     public FieldFrameBodyIND()
 38  0
     {
 39  
         //        this.setObject("Lyrics Present", new Boolean(false));
 40  
         //        this.setObject("Timestamp Present", new Boolean(false));
 41  0
     }
 42  
 
 43  
     public FieldFrameBodyIND(FieldFrameBodyIND body)
 44  
     {
 45  0
         super(body);
 46  0
     }
 47  
 
 48  
     /**
 49  
      * Creates a new FieldBodyIND datatype.
 50  
      *
 51  
      * @param lyricsPresent
 52  
      * @param timeStampPresent
 53  
      */
 54  
     public FieldFrameBodyIND(boolean lyricsPresent, boolean timeStampPresent)
 55  0
     {
 56  0
         this.setObjectValue("Lyrics Present", lyricsPresent);
 57  0
         this.setObjectValue("Timestamp Present", timeStampPresent);
 58  0
     }
 59  
 
 60  
     /**
 61  
      * Creates a new FieldBodyIND datatype.
 62  
      *
 63  
      * @throws InvalidTagException
 64  
      */
 65  
     public FieldFrameBodyIND(ByteBuffer byteBuffer) throws InvalidTagException
 66  0
     {
 67  0
         this.read(byteBuffer);
 68  0
     }
 69  
 
 70  
     /**
 71  
      * @param author
 72  
      */
 73  
     public void setAuthor(String author)
 74  
     {
 75  0
         setObjectValue("Author", author);
 76  0
     }
 77  
 
 78  
     /**
 79  
      * @return
 80  
      */
 81  
     public String getAuthor()
 82  
     {
 83  0
         return (String) getObjectValue("Author");
 84  
     }
 85  
 
 86  
     /**
 87  
      * @return
 88  
      */
 89  
     public String getIdentifier()
 90  
     {
 91  0
         return "IND";
 92  
     }
 93  
 
 94  
     /**
 95  
      *
 96  
      */
 97  
     protected void setupObjectList()
 98  
     {
 99  0
         objectList.add(new BooleanString("Lyrics Present", this));
 100  0
         objectList.add(new BooleanString("Timestamp Present", this));
 101  0
     }
 102  
 }