Package net.sourceforge.pmd.properties
Enum PropertyDescriptorField
- java.lang.Object
-
- java.lang.Enum<PropertyDescriptorField>
-
- net.sourceforge.pmd.properties.PropertyDescriptorField
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PropertyDescriptorField>
public enum PropertyDescriptorField extends java.lang.Enum<PropertyDescriptorField>
Field names for parsing the properties out of the ruleset xml files. These are intended to be used as the keys to a map of fields to values. Most property descriptors can be built directly from such a map using their factory.- Author:
- Brian Remedios
- See Also:
RuleSetFactory
,PropertyTypeId
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHOICES
Choices for enumerated properties.DEFAULT_INDEX
Default index for enumerated properties.DEFAULT_VALUE
The default value.DELIMITER
For multi-valued properties, this defines the delimiter of the single values.DESCRIPTION
The description of the property.LABELS
Labels for enumerated properties.LEGAL_PACKAGES
To limit the range of valid values, package names.MAX
The maximum allowed value for numeric properties.MIN
The minimum allowed value for numeric properties.NAME
The name of the property.TYPE
The type of the property.UI_ORDER
The UI order.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
attributeName()
Returns the String name of this attribute.static PropertyDescriptorField
getConstant(java.lang.String name)
java.lang.String
toString()
static PropertyDescriptorField
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PropertyDescriptorField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE
public static final PropertyDescriptorField TYPE
The type of the property.
-
NAME
public static final PropertyDescriptorField NAME
The name of the property.
-
DESCRIPTION
public static final PropertyDescriptorField DESCRIPTION
The description of the property.
-
UI_ORDER
public static final PropertyDescriptorField UI_ORDER
The UI order.
-
DEFAULT_VALUE
public static final PropertyDescriptorField DEFAULT_VALUE
The default value.
-
DELIMITER
public static final PropertyDescriptorField DELIMITER
For multi-valued properties, this defines the delimiter of the single values.
-
MIN
public static final PropertyDescriptorField MIN
The minimum allowed value for numeric properties.
-
MAX
public static final PropertyDescriptorField MAX
The maximum allowed value for numeric properties.
-
LEGAL_PACKAGES
public static final PropertyDescriptorField LEGAL_PACKAGES
To limit the range of valid values, package names.
-
LABELS
public static final PropertyDescriptorField LABELS
Labels for enumerated properties.
-
CHOICES
public static final PropertyDescriptorField CHOICES
Choices for enumerated properties.
-
DEFAULT_INDEX
public static final PropertyDescriptorField DEFAULT_INDEX
Default index for enumerated properties.
-
-
Method Detail
-
values
public static PropertyDescriptorField[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PropertyDescriptorField c : PropertyDescriptorField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyDescriptorField valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
attributeName
public java.lang.String attributeName()
Returns the String name of this attribute.- Returns:
- The attribute's name
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<PropertyDescriptorField>
-
getConstant
public static PropertyDescriptorField getConstant(java.lang.String name)
-
-