Class PropertyDescriptorBuilderConversionWrapper<E,T extends PropertyDescriptorBuilder<E,T>>
- java.lang.Object
-
- net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilderConversionWrapper<E,T>
-
- Type Parameters:
E
- Value type of the descriptorT
- Concrete type of the underlying builder
- All Implemented Interfaces:
PropertyDescriptorExternalBuilder<E>
- Direct Known Subclasses:
PropertyDescriptorBuilderConversionWrapper.MultiValue
,PropertyDescriptorBuilderConversionWrapper.SingleValue
@Deprecated public abstract class PropertyDescriptorBuilderConversionWrapper<E,T extends PropertyDescriptorBuilder<E,T>> extends Object implements PropertyDescriptorExternalBuilder<E>
Deprecated.This was not public API and will be removed by 7.0.0Wraps a property builder and maps its inputs from strings to the target types of the descriptor.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertyDescriptorBuilderConversionWrapper.MultiValue<V,T extends MultiValuePropertyBuilder<V,T>>
Deprecated.For multi-value properties.static class
PropertyDescriptorBuilderConversionWrapper.SingleValue<E,T extends SingleValuePropertyBuilder<E,T>>
Deprecated.For single-value properties.
-
Constructor Summary
Constructors Modifier Constructor Description protected
PropertyDescriptorBuilderConversionWrapper(Class<?> valueType)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PropertyDescriptor<E>
build(Map<PropertyDescriptorField,String> fields)
Deprecated.Builds a descriptor.abstract boolean
isMultiValue()
Deprecated.Whether this descriptor is multi-valued.protected static String[]
legalPackageNamesIn(Map<PropertyDescriptorField,String> valuesById, char delimiter)
Deprecated.protected abstract T
newBuilder(String name)
Deprecated.protected void
populate(T builder, Map<PropertyDescriptorField,String> fields)
Deprecated.Populates the builder with extracted fields.Class<?>
valueType()
Deprecated.Type of the values of the descriptor, or component type if this descriptor is multi-valued.
-
-
-
Constructor Detail
-
PropertyDescriptorBuilderConversionWrapper
protected PropertyDescriptorBuilderConversionWrapper(Class<?> valueType)
Deprecated.
-
-
Method Detail
-
populate
protected void populate(T builder, Map<PropertyDescriptorField,String> fields)
Deprecated.Populates the builder with extracted fields. To be overridden.
-
isMultiValue
public abstract boolean isMultiValue()
Deprecated.Description copied from interface:PropertyDescriptorExternalBuilder
Whether this descriptor is multi-valued.- Specified by:
isMultiValue
in interfacePropertyDescriptorExternalBuilder<E>
- Returns:
- True if this descriptor is multi-valued
-
valueType
public Class<?> valueType()
Deprecated.Description copied from interface:PropertyDescriptorExternalBuilder
Type of the values of the descriptor, or component type if this descriptor is multi-valued.- Specified by:
valueType
in interfacePropertyDescriptorExternalBuilder<E>
- Returns:
- Type of the values
-
build
public PropertyDescriptor<E> build(Map<PropertyDescriptorField,String> fields)
Deprecated.Description copied from interface:PropertyDescriptorExternalBuilder
Builds a descriptor. The descriptor returned is tagged as built externally.- Specified by:
build
in interfacePropertyDescriptorExternalBuilder<E>
- Parameters:
fields
- Key value pairs- Returns:
- A builder
-
legalPackageNamesIn
protected static String[] legalPackageNamesIn(Map<PropertyDescriptorField,String> valuesById, char delimiter)
Deprecated.
-
-