2 * Copyright 2001 Sun Microsystems, Inc.
4 * See the file "license.terms" for information on usage and
5 * redistribution of this file, and for a DISCLAIMER OF ALL
10 * Defines constants which represent different types of <code>Playable</code>
11 * objects, which can be played by the <code>Player</code>.
13 public class PlayableType {
15 private String typeName;
18 * The ASCII text type.
20 public static final PlayableType TEXT = new PlayableType("text");
23 * The ASCII text file type.
25 public static final PlayableType TEXT_FILE = new PlayableType("text file");
30 public static final PlayableType JSML_FILE = new PlayableType("JSML file");
35 public static final PlayableType JSML = new PlayableType("JSML");
40 public static final PlayableType URL = new PlayableType("URL");
44 * Constructs a PlayableType with the given name.
46 * @param typeName the PlayableType name
48 private PlayableType(String typeName) {
49 this.typeName = typeName;
54 * Returns the name of the type.
56 * @return the name of the PlayableType
58 public String toString() {