1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package de.smartics.properties.tutorial.property.list;
17
18 import java.net.URL;
19 import java.util.List;
20
21 import javax.validation.constraints.NotNull;
22
23 import de.smartics.properties.api.core.annotations.PropertyElementType;
24 import de.smartics.properties.api.core.annotations.PropertyKeyName;
25 import de.smartics.properties.api.core.annotations.PropertySet;
26
27
28
29
30 @PropertySet("tutorial.property.list")
31 public interface ListProperties
32 {
33
34
35
36
37 @PropertyKeyName("list-of-strings")
38 @NotNull
39 List<String> listOfStrings();
40
41
42
43
44
45 @PropertyKeyName("list-of-ints")
46 @PropertyElementType(Integer.class)
47 @NotNull
48 List<Integer> listOfInts();
49
50
51
52
53 @PropertyKeyName("piped-list-of-strings")
54 @NotNull
55 List<String> pipedListOfStrings();
56
57
58
59
60 @PropertyKeyName("blanked-list-of-strings")
61 @NotNull
62 List<String> blankedListOfStrings();
63
64
65
66
67
68 @PropertyKeyName("extreme-list-of-strings")
69 @NotNull
70 List<String> extremeListOfStrings();
71
72
73
74
75
76 @PropertyKeyName("list-of-urls")
77 @PropertyElementType(URL.class)
78 @NotNull
79 List<URL> listOfUrls();
80
81
82
83
84 @PropertyKeyName("newline-urls")
85 @PropertyElementType(URL.class)
86 @NotNull
87 List<URL> listOfNewLineUrls();
88
89
90
91
92 @PropertyKeyName("priority-list")
93 @PropertyElementType(Priority.class)
94 @NotNull
95 List<Priority> listOfPriorities();
96 }