Package net.sourceforge.pmd.properties
Interface SingleValuePropertyDescriptor<T>
-
- Type Parameters:
T
- The type of value this descriptor works with. Cannot be a list.
- All Superinterfaces:
java.lang.Comparable<PropertyDescriptor<?>>
,PropertyDescriptor<T>
- All Known Implementing Classes:
BooleanProperty
,CharacterProperty
,DoubleProperty
,EnumeratedProperty
,FileProperty
,FloatProperty
,IntegerProperty
,LongProperty
,MethodProperty
,RegexProperty
,StringProperty
,TypeProperty
public interface SingleValuePropertyDescriptor<T> extends PropertyDescriptor<T>
Specializes property descriptors for single valued descriptors. For this type of property, the return value of thetype()
method must be the class literal of the type parameter of the interfacePropertyDescriptor
.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<T>
type()
Denotes the value datatype.-
Methods inherited from interface net.sourceforge.pmd.properties.PropertyDescriptor
asDelimitedString, attributeValuesById, defaultValue, description, errorFor, isDefinedExternally, isMultiValue, name, preferredRowCount, propertyErrorFor, uiOrder, valueFrom
-
-
-
-
Method Detail
-
type
java.lang.Class<T> type()
Description copied from interface:PropertyDescriptor
Denotes the value datatype. For multi value properties, this is not the List class but the list's component class.- Specified by:
type
in interfacePropertyDescriptor<T>
- Returns:
- Class literal of the value type
-
-