Package com.tagtraum.audiokern
Enum PlayList.Kind
- java.lang.Object
-
- java.lang.Enum<PlayList.Kind>
-
- com.tagtraum.audiokern.PlayList.Kind
-
- All Implemented Interfaces:
Serializable,Comparable<PlayList.Kind>
- Enclosing interface:
- PlayList
public static enum PlayList.Kind extends Enum<PlayList.Kind>
Kinds of playlists.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPSAUDIOBOOKSAUDIOBOOKS2BOOKSBOOKS2DOWNLOADED_MOVIESDOWNLOADED_MUSICDOWNLOADED_TV_SHOWSGENIUSHOME_VIDEOSI_TUNES_UMOVIESMUSICMUSIC_VIDEOSPDFSPODCASTSPURCHASEDRENTALSTONESTV_SHOWSVOICE_MEMOS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PlayList.Kindget(int id)Get aPlayList.Kindfor an integer identifier.static PlayList.Kindget(AudioSong.MediaKind mediaKind)Get playlistPlayList.Kindfor a givenAudioSong.MediaKind.intgetId()iTunes Library.xmldistinguished kind identifier.StringgetLabel()Unlocalized standard label.AudioSong.MediaKind[]getMediaKinds()CorrespondingAudioSong.MediaKind.static PlayList.KindvalueOf(String name)Returns the enum constant of this type with the specified name.static PlayList.Kind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MOVIES
public static final PlayList.Kind MOVIES
-
TV_SHOWS
public static final PlayList.Kind TV_SHOWS
-
MUSIC
public static final PlayList.Kind MUSIC
-
AUDIOBOOKS
public static final PlayList.Kind AUDIOBOOKS
-
TONES
public static final PlayList.Kind TONES
-
RENTALS
public static final PlayList.Kind RENTALS
-
PODCASTS
public static final PlayList.Kind PODCASTS
-
VOICE_MEMOS
public static final PlayList.Kind VOICE_MEMOS
-
APPS
public static final PlayList.Kind APPS
-
PURCHASED
public static final PlayList.Kind PURCHASED
-
GENIUS
public static final PlayList.Kind GENIUS
-
I_TUNES_U
public static final PlayList.Kind I_TUNES_U
-
MUSIC_VIDEOS
public static final PlayList.Kind MUSIC_VIDEOS
-
HOME_VIDEOS
public static final PlayList.Kind HOME_VIDEOS
-
BOOKS
public static final PlayList.Kind BOOKS
-
BOOKS2
public static final PlayList.Kind BOOKS2
-
AUDIOBOOKS2
public static final PlayList.Kind AUDIOBOOKS2
-
PDFS
public static final PlayList.Kind PDFS
-
DOWNLOADED_MUSIC
public static final PlayList.Kind DOWNLOADED_MUSIC
-
DOWNLOADED_MOVIES
public static final PlayList.Kind DOWNLOADED_MOVIES
-
DOWNLOADED_TV_SHOWS
public static final PlayList.Kind DOWNLOADED_TV_SHOWS
-
-
Method Detail
-
values
public static PlayList.Kind[] 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 (PlayList.Kind c : PlayList.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PlayList.Kind 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
-
get
public static PlayList.Kind get(int id)
Get aPlayList.Kindfor an integer identifier.- Parameters:
id- integer as used iniTunes Library.xml- Returns:
- kind object or
null, if not identified
-
getId
public int getId()
iTunes Library.xmldistinguished kind identifier.- Returns:
- integer as used in
iTunes Library.xml
-
getLabel
public String getLabel()
Unlocalized standard label.- Returns:
- label
-
getMediaKinds
public AudioSong.MediaKind[] getMediaKinds()
CorrespondingAudioSong.MediaKind. May be an empty array.- Returns:
- media kind
-
get
public static PlayList.Kind get(AudioSong.MediaKind mediaKind)
Get playlistPlayList.Kindfor a givenAudioSong.MediaKind.- Parameters:
mediaKind- media kind- Returns:
- playlist kind
-
-