EMMA Coverage Report (generated Tue Mar 14 21:50:42 EST 2006)
[all classes][org.farng.mp3.object]

COVERAGE SUMMARY FOR SOURCE FILE [ObjectStringDate.java]

nameclass, %method, %block, %line, %
ObjectStringDate.java100% (1/1)40%  (2/5)37%  (14/38)38%  (5/13)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ObjectStringDate100% (1/1)40%  (2/5)37%  (14/38)38%  (5/13)
ObjectStringDate (ObjectStringDate): void 0%   (0/1)0%   (0/4)0%   (0/2)
getValue (): Object 0%   (0/1)0%   (0/11)0%   (0/3)
setValue (Object): void 0%   (0/1)0%   (0/9)0%   (0/3)
ObjectStringDate (String): void 100% (1/1)100% (5/5)100% (2/2)
equals (Object): boolean 100% (1/1)100% (9/9)100% (3/3)

1package org.farng.mp3.object;
2 
3import org.farng.mp3.TagUtility;
4 
5/**
6 * ID3v2 and Lyrics3v2 tags have individual fields <code>AbstractMP3Fragment</code>s Then each fragment is broken down
7 * in to individual <code>AbstractMP3Object</code>s
8 *
9 * @author Eric Farng
10 * @version $Revision: 1.4 $
11 */
12public class ObjectStringDate extends ObjectStringFixedLength {
13 
14    /**
15     * Creates a new ObjectStringDate object.
16     */
17    public ObjectStringDate(final String identifier) {
18        super(identifier, 8);
19    }
20 
21    /**
22     * Creates a new ObjectStringDate object.
23     */
24    public ObjectStringDate(final ObjectStringDate object) {
25        super(object);
26    }
27 
28    public void setValue(final Object value) {
29        if (value != null) {
30            this.value = TagUtility.stripChar(value.toString(), '-');
31        }
32    }
33 
34    public Object getValue() {
35        if (this.value != null) {
36            return TagUtility.stripChar(this.value.toString(), '-');
37        }
38        return null;
39    }
40 
41    public boolean equals(final Object obj) {
42        if (obj instanceof ObjectStringDate == false) {
43            return false;
44        }
45        return super.equals(obj);
46    }
47}

[all classes][org.farng.mp3.object]
EMMA 2.0.5312 (C) Vladimir Roubtsov