Class PropertyDescriptorBuilderConversionWrapper.SingleValue<E,T extends SingleValuePropertyBuilder<E,T>>
- java.lang.Object
-
- net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilderConversionWrapper<E,T>
-
- net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilderConversionWrapper.SingleValue<E,T>
-
- Type Parameters:
E
- Value type of the propertyT
- Concrete type of the underlying builder
- All Implemented Interfaces:
PropertyDescriptorExternalBuilder<E>
- Direct Known Subclasses:
PropertyDescriptorBuilderConversionWrapper.SingleValue.Numeric
,PropertyDescriptorBuilderConversionWrapper.SingleValue.Packaged
- Enclosing class:
- PropertyDescriptorBuilderConversionWrapper<E,T extends PropertyDescriptorBuilder<E,T>>
public abstract static class PropertyDescriptorBuilderConversionWrapper.SingleValue<E,T extends SingleValuePropertyBuilder<E,T>> extends PropertyDescriptorBuilderConversionWrapper<E,T>
For single-value properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertyDescriptorBuilderConversionWrapper.SingleValue.Numeric<V,T extends SingleNumericPropertyBuilder<V,T>>
For single-value numeric properties.static class
PropertyDescriptorBuilderConversionWrapper.SingleValue.Packaged<E,T extends SinglePackagedPropertyBuilder<E,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<E>
parser
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingleValue(Class<E> valueType, ValueParser<E> 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<E> parser
-
-
Constructor Detail
-
SingleValue
protected SingleValue(Class<E> valueType, ValueParser<E> 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<E,T extends SingleValuePropertyBuilder<E,T>>
-
isMultiValue
public boolean isMultiValue()
Description copied from interface:PropertyDescriptorExternalBuilder
Whether this descriptor is multi-valued.- Specified by:
isMultiValue
in interfacePropertyDescriptorExternalBuilder<E>
- Specified by:
isMultiValue
in classPropertyDescriptorBuilderConversionWrapper<E,T extends SingleValuePropertyBuilder<E,T>>
- Returns:
- True if this descriptor is multi-valued
-
-