Class ITunesPlayListBinder
- java.lang.Object
-
- com.tagtraum.beatunes.library.itunes.ITunesPlayListBinder
-
public final class ITunesPlayListBinder extends Object
Takes general properties likePlayList.Kind
or name fromiTunes Library.xml
playlist elements and copies them to aPlayList
.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
bind(PlayList playList, Map<String,Object> playListPropertyMap)
Copy properties from a givenplayListPropertyMap
to the givenplayList
.static String
getDescription(Map<String,Object> playListPropertyMap)
static PlayList.Kind
getDistinguishedKind(Map<String,Object> playListPropertyMap)
static AudioSong.Liking
getLiking(Map<String,Object> playListPropertyMap)
static String
getName(Map<String,Object> playListPropertyMap)
static Long
getParentId(Map<String,Object> playListPropertyMap)
static Long
getPlaylistId(Map<String,Object> playListPropertyMap)
static String
getPlaylistPersistentId(Map<String,Object> playListPropertyMap)
static boolean
isExceptionOnUnknownDistinguishedKind()
static void
setExceptionOnUnknownDistinguishedKind(boolean exceptionOnUnknownDistinguishedKind)
-
-
-
Method Detail
-
isExceptionOnUnknownDistinguishedKind
public static boolean isExceptionOnUnknownDistinguishedKind()
-
setExceptionOnUnknownDistinguishedKind
public static void setExceptionOnUnknownDistinguishedKind(boolean exceptionOnUnknownDistinguishedKind)
-
bind
public static void bind(PlayList playList, Map<String,Object> playListPropertyMap)
Copy properties from a givenplayListPropertyMap
to the givenplayList
.- Parameters:
playList
- playlistplayListPropertyMap
- map (excerpt fromiTunes Library.xml
)
-
getDistinguishedKind
public static PlayList.Kind getDistinguishedKind(Map<String,Object> playListPropertyMap)
-
getLiking
public static AudioSong.Liking getLiking(Map<String,Object> playListPropertyMap)
-
getPlaylistPersistentId
public static String getPlaylistPersistentId(Map<String,Object> playListPropertyMap)
-
-