Bridges-Java  3.4.3
Bridges(Java API)
Public Member Functions | Package Attributes | List of all members
bridges.data_src_dependent.Song Class Reference

Detailed Description

A Song object, used along with the Songs data source (using the Genius API.

This is a convenience class provided for users who wish to use this data source as part of their application. It provides an API that makes it easy to access the attributes of this data set. The Song object is typically obtained from calling bridges::connect::DataSource::getSongData() or bridges::connect::DataSource::getSong().

Refer to tutorial for example of using this feature: https://bridgesuncc.github.io/tutorials/Data_Song_Lyrics.html

Author
David Burlinson
Date
5/21/18

Public Member Functions

 Song ()
 
 Song (String artist, String song, String album, String lyrics, String release_date)
 
String getArtist ()
 
void setArtist (String artist)
 
String getSongTitle ()
 
void setSongTitle (String song)
 
String getAlbumTitle ()
 
void setAlbumTitle (String album)
 
String getLyrics ()
 
void setLyrics (String lyrics)
 
String getReleaseDate ()
 
void setReleaseDate (String release_date)
 

Package Attributes

String song
 
String album
 
String lyrics
 
String release_date
 

Constructor & Destructor Documentation

◆ Song() [1/2]

bridges.data_src_dependent.Song.Song ( )

Song constructors

◆ Song() [2/2]

bridges.data_src_dependent.Song.Song ( String  artist,
String  song,
String  album,
String  lyrics,
String  release_date 
)

Song constructor

Parameters
artistartist of song
songsong title
albumalbum title
lyricslyrics of song (string)
release_datedate released

Member Function Documentation

◆ getAlbumTitle()

String bridges.data_src_dependent.Song.getAlbumTitle ( )

Get album title containing the song

Returns
album title (string)

◆ getArtist()

String bridges.data_src_dependent.Song.getArtist ( )

Get song artist

Returns
artist of song

◆ getLyrics()

String bridges.data_src_dependent.Song.getLyrics ( )

Get lyrics of the song

Returns
lyrics of song (string)

◆ getReleaseDate()

String bridges.data_src_dependent.Song.getReleaseDate ( )

Get release date of the song

Returns
release date of song (string)

◆ getSongTitle()

String bridges.data_src_dependent.Song.getSongTitle ( )

Get song title

Returns
title of song (string)

◆ setAlbumTitle()

void bridges.data_src_dependent.Song.setAlbumTitle ( String  album)

Set song album

Parameters
albumsong album to set

◆ setArtist()

void bridges.data_src_dependent.Song.setArtist ( String  artist)

Set song artist

Parameters
artistartist to set

◆ setLyrics()

void bridges.data_src_dependent.Song.setLyrics ( String  lyrics)

Set song lyrics

Parameters
lyricsof song to set

◆ setReleaseDate()

void bridges.data_src_dependent.Song.setReleaseDate ( String  release_date)

Set release date of song

Parameters
release_datedate of release to set

◆ setSongTitle()

void bridges.data_src_dependent.Song.setSongTitle ( String  song)

Set song title

Parameters
songsong title to set

Member Data Documentation

◆ album

String bridges.data_src_dependent.Song.album
package

◆ lyrics

String bridges.data_src_dependent.Song.lyrics
package

◆ release_date

String bridges.data_src_dependent.Song.release_date
package

◆ song

String bridges.data_src_dependent.Song.song
package

The documentation for this class was generated from the following file: