Class SpotifyUri
- java.lang.Object
-
- de.jsone_studios.wrapper.spotify.util.SpotifyUri
-
public class SpotifyUri extends Object
-
-
Constructor Summary
Constructors Constructor Description SpotifyUri()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlbumId()StringgetArtistId()StringgetPlaylistId()StringgetTrackId()StringgetUserId()booleanisAlbum()booleanisArtist()booleanisPlaylist()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
-
isTrack
public boolean isTrack()
-
getTrackId
public String getTrackId() throws SpotifyUriException
- Throws:
SpotifyUriException
-
isPlaylist
public boolean isPlaylist()
-
getPlaylistId
public String getPlaylistId() throws SpotifyUriException
- Throws:
SpotifyUriException
-
isUser
public boolean isUser()
-
getUserId
public String getUserId() throws SpotifyUriException
- Throws:
SpotifyUriException
-
toSpotifyUri
public String toSpotifyUri() throws SpotifyUriException
- Throws:
SpotifyUriException
-
parseUri
public static SpotifyUri parseUri(String string) throws SpotifyUriException
- Throws:
SpotifyUriException
-
-