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 classPropertyDescriptorBuilderConversionWrapper.SingleValue.Numeric<V,T extends SingleNumericPropertyBuilder<V,T>>For single-value numeric properties.static classPropertyDescriptorBuilderConversionWrapper.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 protectedSingleValue(Class<E> valueType, ValueParser<E> 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<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:PropertyDescriptorBuilderConversionWrapperPopulates the builder with extracted fields. To be overridden.- Overrides:
populatein classPropertyDescriptorBuilderConversionWrapper<E,T extends SingleValuePropertyBuilder<E,T>>
-
isMultiValue
public boolean isMultiValue()
Description copied from interface:PropertyDescriptorExternalBuilderWhether this descriptor is multi-valued.- Specified by:
isMultiValuein interfacePropertyDescriptorExternalBuilder<E>- Specified by:
isMultiValuein classPropertyDescriptorBuilderConversionWrapper<E,T extends SingleValuePropertyBuilder<E,T>>- Returns:
- True if this descriptor is multi-valued
-
-