~ubuntu-branches/ubuntu/utopic/libjaudiotagger-java/utopic

« back to all changes in this revision

Viewing changes to src/org/jaudiotagger/tag/mp4/atom/Mp4RatingValue.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2011-04-28 23:52:43 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110428235243-pzalvw6lncis3ukf
Tags: 2.0.3-1
* d/control: Drop Depends on default-jre per Debian Java Policy as its
  a library package.
* d/watch: Fix to directly monitor SVN tags.
* Switch to 3.0 (quilt) format.
* Bump Standards-Version to 3.9.2 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
public enum Mp4RatingValue
11
 
{
12
 
    CLEAN("Clean", 2),
13
 
    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
 
    {
25
 
        this.description = description;
26
 
        this.id = id;
27
 
    }
28
 
 
29
 
    /**
30
 
     * Return id used in the file
31
 
     *
32
 
     * @return id
33
 
     */
34
 
    public int getId()
35
 
    {
36
 
        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
 
        return description;
47
 
    }
48
 
 
49
 
 
50
 
}
 
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
public enum Mp4RatingValue
 
11
{
 
12
    CLEAN("Clean", 2),
 
13
    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
    {
 
25
        this.description = description;
 
26
        this.id = id;
 
27
    }
 
28
 
 
29
    /**
 
30
     * Return id used in the file
 
31
     *
 
32
     * @return id
 
33
     */
 
34
    public int getId()
 
35
    {
 
36
        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
        return description;
 
47
    }
 
48
 
 
49
 
 
50
}