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 class
PropertyDescriptorBuilderConversionWrapper.MultiValue.Numeric<V,T extends MultiNumericPropertyBuilder<V,T>>
For multi-value numeric properties.static class
PropertyDescriptorBuilderConversionWrapper.MultiValue.Packaged<V,T extends MultiPackagedPropertyBuilder<V,T>>
For multi-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 protected
MultiValue(Class<V> valueType, ValueParser<V> parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMultiValue()
Whether this descriptor is multi-valued.protected void
populate(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:PropertyDescriptorBuilderConversionWrapper
Populates the builder with extracted fields. To be overridden.- Overrides:
populate
in classPropertyDescriptorBuilderConversionWrapper<List<V>,T extends MultiValuePropertyBuilder<V,T>>
-
isMultiValue
public boolean isMultiValue()
Description copied from interface:PropertyDescriptorExternalBuilder
Whether this descriptor is multi-valued.- Specified by:
isMultiValue
in interfacePropertyDescriptorExternalBuilder<V>
- Specified by:
isMultiValue
in classPropertyDescriptorBuilderConversionWrapper<List<V>,T extends MultiValuePropertyBuilder<V,T>>
- Returns:
- True if this descriptor is multi-valued
-
-