net.sourceforge.pmd.lang.rule.properties
Class AbstractMultiPackagedProperty<T>
java.lang.Object
net.sourceforge.pmd.lang.rule.properties.AbstractProperty<T>
net.sourceforge.pmd.lang.rule.properties.AbstractPackagedProperty<T>
net.sourceforge.pmd.lang.rule.properties.AbstractMultiPackagedProperty<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Comparable<PropertyDescriptor<?>>, PropertyDescriptor<T>
- Direct Known Subclasses:
- MethodMultiProperty, TypeMultiProperty
public abstract class AbstractMultiPackagedProperty<T>
- extends AbstractPackagedProperty<T>
- Author:
- Brian Remedios
Field Summary |
protected static char |
DELIMITER
|
Methods inherited from class net.sourceforge.pmd.lang.rule.properties.AbstractProperty |
areEqual, asDelimitedString, asDelimitedString, asString, attributeValuesById, choices, compareTo, defaultHasNullValue, defaultValue, description, equals, errorFor, hashCode, isArray, isRequired, multiValueDelimiter, name, preferredRowCount, propertyErrorFor, toString, typeErrorFor, uiOrder, valuesErrorFor |
DELIMITER
protected static final char DELIMITER
- See Also:
- Constant Field Values
AbstractMultiPackagedProperty
protected AbstractMultiPackagedProperty(String theName,
String theDescription,
T theDefault,
String[] theLegalPackageNames,
float theUIOrder)
- Constructor for AbstractMultiPackagedProperty.
- Parameters:
theName
- StringtheDescription
- StringtheDefault
- TtheLegalPackageNames
- String[]theUIOrder
- float
isMultiValue
public boolean isMultiValue()
- Description copied from class:
AbstractProperty
- Returns whether the property is multi-valued, i.e. an array of strings,
As unary property rule properties will return a value of one, you must
use the get/setProperty accessors when working with the actual values.
When working with multi-value properties then the get/setProperties
accessors must be used.
- Specified by:
isMultiValue
in interface PropertyDescriptor<T>
- Overrides:
isMultiValue
in class AbstractProperty<T>
- Returns:
- boolean
- See Also:
PropertyDescriptor.isMultiValue()
defaultAsString
protected String defaultAsString()
- Overrides:
defaultAsString
in class AbstractProperty<T>
- Returns:
- String
Copyright © 2002-2015 InfoEther. All Rights Reserved.