| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| FieldFrameBodyIND |
|
| 1.0;1 |
| 1 | /** | |
| 2 | * @author : Paul Taylor | |
| 3 | * @author : Eric Farng | |
| 4 | * | |
| 5 | * Version @version:$Id: FieldFrameBodyIND.java 832 2009-11-12 13:25:38Z paultaylor $ | |
| 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 | * @param byteBuffer | |
| 64 | * @throws InvalidTagException | |
| 65 | */ | |
| 66 | public FieldFrameBodyIND(ByteBuffer byteBuffer) throws InvalidTagException | |
| 67 | 0 | { |
| 68 | 0 | this.read(byteBuffer); |
| 69 | 0 | } |
| 70 | ||
| 71 | /** | |
| 72 | * @param author | |
| 73 | */ | |
| 74 | public void setAuthor(String author) | |
| 75 | { | |
| 76 | 0 | setObjectValue("Author", author); |
| 77 | 0 | } |
| 78 | ||
| 79 | /** | |
| 80 | * @return | |
| 81 | */ | |
| 82 | public String getAuthor() | |
| 83 | { | |
| 84 | 0 | return (String) getObjectValue("Author"); |
| 85 | } | |
| 86 | ||
| 87 | /** | |
| 88 | * @return | |
| 89 | */ | |
| 90 | public String getIdentifier() | |
| 91 | { | |
| 92 | 0 | return "IND"; |
| 93 | } | |
| 94 | ||
| 95 | /** | |
| 96 | * | |
| 97 | */ | |
| 98 | protected void setupObjectList() | |
| 99 | { | |
| 100 | 0 | objectList.add(new BooleanString("Lyrics Present", this)); |
| 101 | 0 | objectList.add(new BooleanString("Timestamp Present", this)); |
| 102 | 0 | } |
| 103 | } |