File: PlayableType.java

package info (click to toggle)
freetts 1.2.2-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 65,244 kB
  • sloc: java: 21,305; xml: 1,340; sh: 969; lisp: 587; ansic: 241; makefile: 25; awk: 11
file content (61 lines) | stat: -rw-r--r-- 1,368 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
 * Copyright 2001 Sun Microsystems, Inc.
 * 
 * See the file "license.terms" for information on usage and
 * redistribution of this file, and for a DISCLAIMER OF ALL 
 * WARRANTIES.
 */

/**
 * Defines constants which represent different types of <code>Playable</code>
 * objects, which can be played by the <code>Player</code>.
 */
public class PlayableType {

    private String typeName;

    /**
     * The ASCII text type.
     */
    public static final PlayableType TEXT = new PlayableType("text");

    /**
     * The ASCII text file type.
     */
    public static final PlayableType TEXT_FILE = new PlayableType("text file");
        
    /**
     * The JSML file type.
     */
    public static final PlayableType JSML_FILE = new PlayableType("JSML file");

    /**
     * The JSML text type.
     */
    public static final PlayableType JSML = new PlayableType("JSML");

    /**
     * The URL type.
     */
    public static final PlayableType URL = new PlayableType("URL");
       
     
    /**
     * Constructs a PlayableType with the given name.
     *
     * @param typeName the PlayableType name
     */
    private PlayableType(String typeName) {
	this.typeName = typeName;
    }


    /**
     * Returns the name of the type.
     *
     * @return the name of the PlayableType
     */
    public String toString() {
	return typeName;
    }
}