Package de.sonallux.spotify.api.util
Class SpotifyUri
- java.lang.Object
-
- de.sonallux.spotify.api.util.SpotifyUri
-
public class SpotifyUri extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpotifyUri.Type
-
Constructor Summary
Constructors Constructor Description SpotifyUri()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlbumId()StringgetArtistId()StringgetEpisodeId()StringgetPlaylistId()StringgetShowId()StringgetTrackId()StringgetUserId()booleanisAlbum()booleanisArtist()booleanisEpisode()booleanisPlaylist()booleanisShow()booleanisTrack()booleanisUser()static SpotifyUriparseUri(String string)StringtoSpotifyUri()StringtoString()
-
-
-
Method Detail
-
isArtist
public boolean isArtist()
-
getArtistId
public String getArtistId() throws SpotifyUriException
- Throws:
SpotifyUriException
-
isAlbum
public boolean isAlbum()
-
getAlbumId
public String getAlbumId() throws SpotifyUriException
- Throws:
SpotifyUriException
-
isEpisode
public boolean isEpisode()
-
getEpisodeId
public String getEpisodeId() throws SpotifyUriException
- Throws:
SpotifyUriException
-
isPlaylist
public boolean isPlaylist()
-
getPlaylistId
public String getPlaylistId() throws SpotifyUriException
- Throws:
SpotifyUriException
-
isShow
public boolean isShow()
-
getShowId
public String getShowId() throws SpotifyUriException
- Throws:
SpotifyUriException
-
isTrack
public boolean isTrack()
-
getTrackId
public String getTrackId() throws SpotifyUriException
- Throws:
SpotifyUriException
-
isUser
public boolean isUser()
-
getUserId
public String getUserId() throws SpotifyUriException
- Throws:
SpotifyUriException
-
toSpotifyUri
public String toSpotifyUri()
-
parseUri
public static SpotifyUri parseUri(String string) throws SpotifyUriException
- Throws:
SpotifyUriException
-
-