View Javadoc
1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd;
5   
6   import net.sourceforge.pmd.lang.rule.properties.factories.PropertyDescriptorUtil;
7   
8   /**
9    * Field names for parsing the properties out of the ruleset xml files.
10   * 
11   * @author Brian Remedios
12   * @see RuleSetFactory
13   */
14  public class PropertyDescriptorFields {
15  
16      /**
17       * The type of the property.
18       * @see PropertyDescriptorUtil
19       */
20      public static final String TYPE = "type";
21      /** The name of the property */
22      public static final String NAME = "name";
23      /** The description of the property. */
24      public static final String DESCRIPTION = "description";
25      /** The description of the property. */
26      public static final String DESC = "description";
27      /** The default value. */
28      public static final String VALUE = "value";
29      /** The default value. */
30      public static final String DEFAULT_VALUE = "value";
31      /** For multi-valued properties, this defines the delimiter of the single values. */
32      public static final String DELIMITER = "delimiter";
33      /** The minium allowed value. */
34      public static final String MIN = "min";
35      /** The maximum allowed value. */
36      public static final String MAX = "max";
37      /** To limit the range of valid values, e.g. to Enums */
38      public static final String LEGAL_PACKAGES = "legalPackages";
39  }