Package com.tagtraum.audiokern
Enum AudioSong.MediaKind
- java.lang.Object
-
- java.lang.Enum<AudioSong.MediaKind>
-
- com.tagtraum.audiokern.AudioSong.MediaKind
-
- All Implemented Interfaces:
Serializable
,Comparable<AudioSong.MediaKind>
,org.json.simple.JSONAware
- Enclosing interface:
- AudioSong
public static enum AudioSong.MediaKind extends Enum<AudioSong.MediaKind> implements org.json.simple.JSONAware
Media kind of audio song.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALERT_TONE
AUDIOBOOK
BOOK
HOME_VIDEO
ITUNES_U
MOVIE
MUSIC
MUSIC_VIDEO
PODCAST
RINGTONE
TV_SHOW
UNKNOWN
VOICE_MEMO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AudioSong.MediaKind
get(int id)
Get media kind for an id.byte
getId()
Id.boolean
isRequiresVideo()
Indicates whether this media kind requires a file format that supports video.boolean
isSupported()
Indicates whether this media kind is supported in general.static AudioSong.MediaKind[]
supportedAudioValues()
static AudioSong.MediaKind[]
supportedValues()
static AudioSong.MediaKind[]
supportedVideoValues()
String
toJSONString()
static AudioSong.MediaKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static AudioSong.MediaKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final AudioSong.MediaKind UNKNOWN
-
ALERT_TONE
public static final AudioSong.MediaKind ALERT_TONE
-
AUDIOBOOK
public static final AudioSong.MediaKind AUDIOBOOK
-
BOOK
public static final AudioSong.MediaKind BOOK
-
HOME_VIDEO
public static final AudioSong.MediaKind HOME_VIDEO
-
ITUNES_U
public static final AudioSong.MediaKind ITUNES_U
-
MOVIE
public static final AudioSong.MediaKind MOVIE
-
MUSIC
public static final AudioSong.MediaKind MUSIC
-
MUSIC_VIDEO
public static final AudioSong.MediaKind MUSIC_VIDEO
-
PODCAST
public static final AudioSong.MediaKind PODCAST
-
RINGTONE
public static final AudioSong.MediaKind RINGTONE
-
TV_SHOW
public static final AudioSong.MediaKind TV_SHOW
-
VOICE_MEMO
public static final AudioSong.MediaKind VOICE_MEMO
-
-
Method Detail
-
values
public static AudioSong.MediaKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AudioSong.MediaKind c : AudioSong.MediaKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AudioSong.MediaKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getId
public byte getId()
Id.- Returns:
- id
-
get
public static AudioSong.MediaKind get(int id)
Get media kind for an id.- Parameters:
id
- id- Returns:
- proper media kind or
UNKNOWN
-
isSupported
public boolean isSupported()
Indicates whether this media kind is supported in general.- Returns:
true
orfalse
-
isRequiresVideo
public boolean isRequiresVideo()
Indicates whether this media kind requires a file format that supports video.- Returns:
true
orfalse
-
supportedValues
public static AudioSong.MediaKind[] supportedValues()
-
supportedVideoValues
public static AudioSong.MediaKind[] supportedVideoValues()
-
supportedAudioValues
public static AudioSong.MediaKind[] supportedAudioValues()
-
toJSONString
public String toJSONString()
- Specified by:
toJSONString
in interfaceorg.json.simple.JSONAware
-
-