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