204cb770fad85e22b1696e53863a995d43a82b68
[demoscenemusic.git] / src / main / java / net / pterodactylus / demoscenemusic / data / Track.java
1 /*
2  * DemosceneMusic - Track.java - Copyright © 2012 David Roden
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 package net.pterodactylus.demoscenemusic.data;
19
20 import java.util.Collection;
21 import java.util.List;
22
23 /**
24  * Data interface for tracks.
25  *
26  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
27  */
28 public interface Track extends Base {
29
30         /**
31          * Returns the name of this track.
32          *
33          * @return The name of this track
34          */
35         public String getName();
36
37         /**
38          * Sets the name of this track.
39          *
40          * @param name
41          *            The name of this track
42          * @return This track
43          */
44         public Track setName(String name);
45
46         /**
47          * Returns all artists involved in this track.
48          *
49          * @return All involved artists in preferred order
50          */
51         public List<Artist> getArtists();
52
53         /**
54          * Sets all artists involved in this track.
55          *
56          * @param artists
57          *            All involved artists in preferred order
58          * @return This track
59          */
60         public Track setArtists(List<Artist> artists);
61
62         /**
63          * Returns all styles of this track.
64          *
65          * @return All styles of this track
66          */
67         public Collection<Style> getStyles();
68
69         /**
70          * Sets all styles of this track.
71          *
72          * @param styles
73          *            All styles of this track
74          * @return This track
75          */
76         public Track setStyles(Collection<? extends Style> styles);
77
78 }