Skip to content

Package: MediaCatalog

MediaCatalog

nameinstructionbranchcomplexitylinemethod
static {...}
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * *********************************************************************************************************************
3: *
4: * blueMarine II: Semantic Media Centre
5: * http://tidalwave.it/projects/bluemarine2
6: *
7: * Copyright (C) 2015 - 2021 by Tidalwave s.a.s. (http://tidalwave.it)
8: *
9: * *********************************************************************************************************************
10: *
11: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
12: * the License. You may obtain a copy of the License at
13: *
14: * http://www.apache.org/licenses/LICENSE-2.0
15: *
16: * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
17: * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
18: * specific language governing permissions and limitations under the License.
19: *
20: * *********************************************************************************************************************
21: *
22: * git clone https://bitbucket.org/tidalwave/bluemarine2-src
23: * git clone https://github.com/tidalwave-it/bluemarine2-src
24: *
25: * *********************************************************************************************************************
26: */
27: package it.tidalwave.bluemarine2.model;
28:
29: import javax.annotation.Nonnull;
30: import it.tidalwave.bluemarine2.model.finder.audio.AudioFileFinder;
31: import it.tidalwave.bluemarine2.model.finder.audio.MusicArtistFinder;
32: import it.tidalwave.bluemarine2.model.finder.audio.PerformanceFinder;
33: import it.tidalwave.bluemarine2.model.finder.audio.RecordFinder;
34: import it.tidalwave.bluemarine2.model.finder.audio.TrackFinder;
35:
36: /***********************************************************************************************************************
37: *
38: * Represents a collection of media that can be queried in various ways.
39: *
40: * @author Fabrizio Giudici
41: *
42: **********************************************************************************************************************/
43: public interface MediaCatalog
44: {
45: public static final Class<MediaCatalog> _MediaCatalog_ = MediaCatalog.class;
46:
47: /*******************************************************************************************************************
48: *
49: * Finds the {@link MusicArtist}s in this catalog.
50: *
51: * @return a {@code Finder} for the artists
52: *
53: ******************************************************************************************************************/
54: @Nonnull
55: public MusicArtistFinder findArtists();
56:
57: /*******************************************************************************************************************
58: *
59: * Finds the {@link Record}s in this catalog.
60: *
61: * @return a {@code Finder} for the records
62: *
63: ******************************************************************************************************************/
64: @Nonnull
65: public RecordFinder findRecords();
66:
67: /*******************************************************************************************************************
68: *
69: * Finds the {@link Track}s in this catalog.
70: *
71: * @return a {@code Finder} for the tracks
72: *
73: ******************************************************************************************************************/
74: @Nonnull
75: public TrackFinder findTracks();
76:
77: /*******************************************************************************************************************
78: *
79: * Finds the {@link Performance}s in this catalog.
80: *
81: * @return a {@code Finder} for the performances
82: *
83: ******************************************************************************************************************/
84: @Nonnull
85: public PerformanceFinder findPerformances();
86:
87: /*******************************************************************************************************************
88: *
89: * Finds the {@link AudioFile}s in this catalog.
90: *
91: * @return a {@code Finder} for the audio files
92: *
93: ******************************************************************************************************************/
94: @Nonnull
95: public AudioFileFinder findAudioFiles();
96: }