1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.sf.magicproject.chart;
20
21 import java.util.Collection;
22 import java.util.List;
23
24 import net.sf.magicproject.clickable.targetable.card.CardModel;
25
26 /***
27 * @author <a href="mailto:fabdouglas@users.sourceforge.net">Fabrice Daugan </a>
28 * @since 0.93
29 */
30 public interface IDataProvider {
31
32 /***
33 * Return the keys corresponding to the given card.
34 *
35 * @param cardModel
36 * the requested key.
37 * @param filter
38 * the filter to apply to retrieve the keys.
39 * @return the keys corresponding to the given card.
40 */
41 Collection<IChartKey> getKeys(CardModel cardModel, ChartFilter filter);
42
43 /***
44 * Return working set keys
45 *
46 * @param filter
47 * the filter to apply to retrieve the valid keys.
48 * @return working set keys
49 */
50 List<IChartKey> getKeys(ChartFilter filter);
51 }