AbstractMultiPackagedProperty.java
01 package net.sourceforge.pmd.lang.rule.properties;
02 
03 /**
04  
05  @author Brian Remedios
06  */
07 public abstract class AbstractMultiPackagedProperty<T> extends AbstractPackagedProperty<T> {
08 
09     protected static final char DELIMITER = '|';
10     
11     /**
12      * Constructor for AbstractMultiPackagedProperty.
13      @param theName String
14      @param theDescription String
15      @param theDefault T
16      @param theLegalPackageNames String[]
17      @param theUIOrder float
18      */
19     protected AbstractMultiPackagedProperty(String theName,  String theDescription, T theDefault, String[] theLegalPackageNames, float theUIOrder) {
20         super(theName, theDescription, theDefault, theLegalPackageNames, theUIOrder);
21     }
22 
23     /**
24      @return boolean
25      @see net.sourceforge.pmd.PropertyDescriptor#isMultiValue()
26      */
27     @Override
28     public boolean isMultiValue() {
29         return true;
30     }
31     
32     /**
33      @return String
34      */
35     protected String defaultAsString() {
36         return asDelimitedString(defaultValue());
37     }
38 }