1
2
3
4 package net.sourceforge.pmd.lang.rule.properties;
5
6
7
8
9
10
11 public class BooleanMultiProperty extends AbstractScalarProperty<Boolean[]> {
12
13
14
15
16
17
18
19
20 public BooleanMultiProperty(String theName, String theDescription, Boolean[] defaultValues, float theUIOrder) {
21 super(theName, theDescription, defaultValues, theUIOrder);
22 }
23
24
25
26
27
28 public Class<Boolean[]> type() {
29 return Boolean[].class;
30 }
31
32
33
34
35
36 @Override
37 public boolean isMultiValue() {
38 return true;
39 }
40
41
42
43
44
45
46
47 protected Object createFrom(String value) {
48 return Boolean.valueOf(value);
49 }
50
51
52
53
54
55 protected Boolean[] arrayFor(int size) {
56 return new Boolean[size];
57 }
58
59
60
61
62 protected String defaultAsString() {
63 return asDelimitedString(defaultValue());
64 }
65 }