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 protected AbstractMultiPackagedProperty(String theName, String theDescription, T theDefault, String[] theLegalPackageNames, float theUIOrder) {
24 super(theName, theDescription, theDefault, theLegalPackageNames, theUIOrder);
25 }
26
27
28
29
30
31 @Override
32 public boolean isMultiValue() {
33 return true;
34 }
35
36
37
38
39 protected String defaultAsString() {
40 return asDelimitedString(defaultValue());
41 }
42 }