Class PropertyDescriptorBuilderConversionWrapper.MultiValue<V,T extends MultiValuePropertyBuilder<V,T>>
- java.lang.Object
-
- net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilderConversionWrapper<List<V>,T>
-
- net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilderConversionWrapper.MultiValue<V,T>
-
- Type Parameters:
V- Element type of the listT- Concrete type of the underlying builder
- All Implemented Interfaces:
PropertyDescriptorExternalBuilder<List<V>>
- Direct Known Subclasses:
PropertyDescriptorBuilderConversionWrapper.MultiValue.Numeric,PropertyDescriptorBuilderConversionWrapper.MultiValue.Packaged
- Enclosing class:
- PropertyDescriptorBuilderConversionWrapper<E,T extends PropertyDescriptorBuilder<E,T>>
public abstract static class PropertyDescriptorBuilderConversionWrapper.MultiValue<V,T extends MultiValuePropertyBuilder<V,T>> extends PropertyDescriptorBuilderConversionWrapper<List<V>,T>
For multi-value properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertyDescriptorBuilderConversionWrapper.MultiValue.Numeric<V,T extends MultiNumericPropertyBuilder<V,T>>For multi-value numeric properties.static classPropertyDescriptorBuilderConversionWrapper.MultiValue.Packaged<V,T extends MultiPackagedPropertyBuilder<V,T>>For single-value packaged properties.-
Nested classes/interfaces inherited from class net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilderConversionWrapper
PropertyDescriptorBuilderConversionWrapper.MultiValue<V,T extends MultiValuePropertyBuilder<V,T>>, PropertyDescriptorBuilderConversionWrapper.SingleValue<E,T extends SingleValuePropertyBuilder<E,T>>
-
-
Field Summary
Fields Modifier and Type Field Description protected ValueParser<V>parser
-
Constructor Summary
Constructors Modifier Constructor Description protectedMultiValue(Class<V> valueType, ValueParser<V> parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMultiValue()Whether this descriptor is multi-valued.protected voidpopulate(T builder, Map<PropertyDescriptorField,String> fields)Populates the builder with extracted fields.-
Methods inherited from class net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilderConversionWrapper
build, legalPackageNamesIn, newBuilder, valueType
-
-
-
-
Field Detail
-
parser
protected final ValueParser<V> parser
-
-
Constructor Detail
-
MultiValue
protected MultiValue(Class<V> valueType, ValueParser<V> parser)
-
-
Method Detail
-
populate
protected void populate(T builder, Map<PropertyDescriptorField,String> fields)
Description copied from class:PropertyDescriptorBuilderConversionWrapperPopulates the builder with extracted fields. To be overridden.- Overrides:
populatein classPropertyDescriptorBuilderConversionWrapper<List<V>,T extends MultiValuePropertyBuilder<V,T>>
-
isMultiValue
public boolean isMultiValue()
Description copied from interface:PropertyDescriptorExternalBuilderWhether this descriptor is multi-valued.- Specified by:
isMultiValuein interfacePropertyDescriptorExternalBuilder<V>- Specified by:
isMultiValuein classPropertyDescriptorBuilderConversionWrapper<List<V>,T extends MultiValuePropertyBuilder<V,T>>- Returns:
- True if this descriptor is multi-valued
-
-