Package com.tagtraum.audiokern
Class StandardAudioId
- java.lang.Object
-
- com.tagtraum.audiokern.StandardAudioId
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tagtraum.audiokern.AudioId
AudioId.Type
-
-
Field Summary
-
Fields inherited from interface com.tagtraum.audiokern.AudioId
AMAZON_COM, AMAZON_COM_GENERATOR_URL, AMAZON_LARGE_IMAGE_URL, AMAZON_MEDIUM_IMAGE_URL, AMAZON_SMALL_IMAGE_URL, AMAZON_SONG_ID_PREFIX, ASIN, BANDCAMP_ALBUM_URL, BANDCAMP_ARTIST_URL, BANDCAMP_ARTIST_URL_PREFIX, BANDCAMP_GENERATOR_URL, BANDCAMP_TRACK_URL, BARCODE, BEATPORT_ARTIST_ID, BEATPORT_RELEASE_ID, BEATPORT_TRACK_ID, COVER_ART_ARCHIVE_BACK_IMAGE_URL, COVER_ART_ARCHIVE_IMAGE_URL, COVER_ART_ARCHIVE_LARGE_BACK_THUMB_URL, COVER_ART_ARCHIVE_LARGE_THUMB_URL, COVER_ART_ARCHIVE_SMALL_BACK_THUMB_URL, COVER_ART_ARCHIVE_SMALL_THUMB_URL, DBPEDIA_GENRE_IRI, DISCOGS_ARTIST_URL, DISCOGS_MASTER_URL, DISCOGS_PRIMARY_ARTWORK_URL, DISCOGS_RELEASE_URL, DISCOGS_SECONDARY_ARTWORK_URL, FACEBOOK_ID, IMDB_ARTIST_ID, IMDB_TITLE_ID, INSTAGRAM_ARTIST_ID, ISRC, LYRICSFLY_URL, METRO_LYRICS_ID, MUSIC_BRAINZ_ALBUM, MUSIC_BRAINZ_ALBUM_ARTIST, MUSIC_BRAINZ_ARTIST, MUSIC_BRAINZ_RELASE_GROUP, MUSIC_BRAINZ_TRACK, MUSIC_IP_PUID, OFFICIAL_ARTIST_URL, OFFICIAL_RELEASE_URL, SOUNDCLOUD_ALBUM_ID, SOUNDCLOUD_ARTIST_ID, SOUNDCLOUD_TRACK_ID, SPOTIFY_ALBUM_ID, SPOTIFY_ARTIST_ID, SPOTIFY_TRACK_ID, TAGTRAUM_DEU_GENRE_IRI, TAGTRAUM_ENG_GENRE_IRI, TAGTRAUM_ESP_GENRE_IRI, TAGTRAUM_FRA_GENRE_IRI, TAGTRAUM_INTL_GENRE_IRI, TAGTRAUM_NLD_GENRE_IRI, TUNE_CORTEX, TUNE_CORTEX_RECORDING, TWITTER_ID, WIKIDATA_ALBUM_ID, WIKIDATA_ARTIST_ID, WIKIDATA_GENRE_IRI, WIKIDATA_TRACK_ID, WIKIPEDIA_ARTIST_URL, WIKIPEDIA_RELEASE_URL, WIKIPEDIA_TRACK_URL, YOU_TUBE_CHANNEL_ID, YOU_TUBE_ID
-
-
Constructor Summary
Constructors Constructor Description StandardAudioId()
StandardAudioId(String generatorName, String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getGeneratorName()
URL
getGeneratorURL()
String
getGeneratorVersion()
String
getId()
int
hashCode()
boolean
isKnownGenerator()
Indicates whether the used generator name is known and whether this id can be validated usingAudioId.isValid()
.boolean
isValid()
Validates the value of this id.void
setGeneratorName(String generatorName)
void
setGeneratorURL(URL generatorURL)
void
setGeneratorVersion(String generatorVersion)
void
setId(String id)
String
toString()
-
-
-
Method Detail
-
getGeneratorName
public String getGeneratorName()
- Specified by:
getGeneratorName
in interfaceAudioId
-
getGeneratorURL
public URL getGeneratorURL()
- Specified by:
getGeneratorURL
in interfaceAudioId
-
getGeneratorVersion
public String getGeneratorVersion()
- Specified by:
getGeneratorVersion
in interfaceAudioId
-
setGeneratorName
public void setGeneratorName(String generatorName)
- Specified by:
setGeneratorName
in interfaceAudioId
-
setGeneratorURL
public void setGeneratorURL(URL generatorURL)
- Specified by:
setGeneratorURL
in interfaceAudioId
-
setGeneratorVersion
public void setGeneratorVersion(String generatorVersion)
- Specified by:
setGeneratorVersion
in interfaceAudioId
-
isKnownGenerator
public boolean isKnownGenerator()
Description copied from interface:AudioId
Indicates whether the used generator name is known and whether this id can be validated usingAudioId.isValid()
.- Specified by:
isKnownGenerator
in interfaceAudioId
- Returns:
- true or false
-
isValid
public boolean isValid()
Description copied from interface:AudioId
Validates the value of this id.- Specified by:
isValid
in interfaceAudioId
- Returns:
- true, if the generator is known (see
AudioId.isKnownGenerator()
) and the id is set and valid.
-
-