|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TrackOriginEnum> sk.baka.ambient.collection.TrackOriginEnum
public enum TrackOriginEnum
The location of the track.
Enum Constant Summary | |
---|---|
Ampache
Ampache music library. |
|
LocalFs
The local filesystem. |
|
Magnatune
Magnatune shop. |
|
Shoutcast
A SHOUTcast radio station. |
|
SkreemR
SkreemR search engine. |
Field Summary | |
---|---|
boolean |
endless
If true then this stream type is endless (like an Internet
radio). |
boolean |
online
If true then tracks from this location are stored on-line. |
boolean |
seekable
If true then media player is able to seek in this media
type. |
String |
url
The track location URL. |
Method Summary | |
---|---|
static TrackOriginEnum |
fromDb(int val)
Gets the enum constant from a DB INT value. |
static TrackOriginEnum |
fromLocation(String location)
Gets the track type from its location. |
String |
toDBString()
Returns the enum value as a database string. |
static TrackOriginEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TrackOriginEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TrackOriginEnum LocalFs
public static final TrackOriginEnum Magnatune
public static final TrackOriginEnum SkreemR
public static final TrackOriginEnum Shoutcast
public static final TrackOriginEnum Ampache
Field Detail |
---|
public final boolean endless
true
then this stream type is endless (like an Internet
radio). If false
then the stream type is a finite file.
public final boolean seekable
true
then media player is able to seek in this media
type.
public final String url
null
if there is no
particular URL.
public final boolean online
true
then tracks from this location are stored on-line.
Method Detail |
---|
public static TrackOriginEnum[] values()
for (TrackOriginEnum c : TrackOriginEnum.values()) System.out.println(c);
public static TrackOriginEnum valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static TrackOriginEnum fromDb(int val)
val
- the value
public static TrackOriginEnum fromLocation(String location)
location
- the location.
public String toDBString()
ICollection
finder method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |