1
2
3
4 package net.sourceforge.pmd.lang.rule.properties;
5
6
7
8
9
10
11 public abstract class AbstractMultiPackagedProperty<T> extends AbstractPackagedProperty<T> {
12
13 protected static final char DELIMITER = '|';
14
15
16
17
18
19
20
21
22
23
24 protected AbstractMultiPackagedProperty(String theName, String theDescription, T theDefault,
25 String[] theLegalPackageNames, float theUIOrder) {
26 super(theName, theDescription, theDefault, theLegalPackageNames, theUIOrder);
27 }
28
29
30
31
32
33 @Override
34 public boolean isMultiValue() {
35 return true;
36 }
37
38
39
40
41 protected String defaultAsString() {
42 return asDelimitedString(defaultValue());
43 }
44 }