com.ldodds.musicbrainz
Interface MusicBrainzSelectors


public interface MusicBrainzSelectors

Selectors for working with Jena Models containing MusicBrainz responses.

Author:
ldodds

Method Summary
 Resource getAlbum(Resource track)
           
 Resource getArtist(Resource track)
           
 int getNumberOfAlbums(Model model)
           
 int getNumberOfArtists(Model model)
           
 int getNumberOfTracks(Model model)
           
 int getNumberOfTRMs(Model model)
           
 Resource selectAlbum(Model model, int ordinal)
          TODO: am assuming there's a Seq/Bag in the response to key this off.
 ResIterator selectAlbums(Resource artist)
           
 Resource selectArtist(Model model, int ordinal)
          TODO: am assuming there's a Seq/Bag in the response to key this off.
 ResIterator selectArtists(Model model)
           
 ResIterator selectCDIndexIds(Resource album)
           
 Resource selectTrack(Model model, int ordinal)
          TODO: am assuming there's a Seq/Bag in the response to key this off.
 ResIterator selectTracks(Model model)
           
 ResIterator selectTRMIds(Resource album)
           
 

Method Detail

selectArtist

public Resource selectArtist(Model model,
                             int ordinal)
TODO: am assuming there's a Seq/Bag in the response to key this off.

Parameters:
model - Jena Model containing MusicBrainz response
ordinal - the artist resource to return
Returns:
The artist resource, or null if no resource can be found at that ordinal

selectAlbum

public Resource selectAlbum(Model model,
                            int ordinal)
TODO: am assuming there's a Seq/Bag in the response to key this off.

Parameters:
model - Jena Model containing MusicBrainz response
ordinal - the album resource to return
Returns:
The album resource, or null if no resource can be found at that ordinal

selectTrack

public Resource selectTrack(Model model,
                            int ordinal)
TODO: am assuming there's a Seq/Bag in the response to key this off.

Parameters:
model - Jena Model containing MusicBrainz response
ordinal - the track resource to return
Returns:
The track resource, or null if no resource can be found at that ordinal

selectArtists

public ResIterator selectArtists(Model model)

selectAlbums

public ResIterator selectAlbums(Resource artist)

selectTracks

public ResIterator selectTracks(Model model)

selectCDIndexIds

public ResIterator selectCDIndexIds(Resource album)

selectTRMIds

public ResIterator selectTRMIds(Resource album)

getArtist

public Resource getArtist(Resource track)

getAlbum

public Resource getAlbum(Resource track)

getNumberOfArtists

public int getNumberOfArtists(Model model)

getNumberOfAlbums

public int getNumberOfAlbums(Model model)

getNumberOfTracks

public int getNumberOfTracks(Model model)

getNumberOfTRMs

public int getNumberOfTRMs(Model model)