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 java.lang.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 classPropertyDescriptorBuilderConversionWrapper.MultiValue<V,T extends MultiValuePropertyBuilder<V,T>>Deprecated.For multi-value properties.static classPropertyDescriptorBuilderConversionWrapper.SingleValue<E,T extends SingleValuePropertyBuilder<E,T>>Deprecated.For single-value properties.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPropertyDescriptorBuilderConversionWrapper(java.lang.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(java.util.Map<PropertyDescriptorField,java.lang.String> fields)Deprecated.Builds a descriptor.abstract booleanisMultiValue()Deprecated.Whether this descriptor is multi-valued.protected static java.lang.String[]legalPackageNamesIn(java.util.Map<PropertyDescriptorField,java.lang.String> valuesById, char delimiter)Deprecated.protected abstract TnewBuilder(java.lang.String name)Deprecated.protected voidpopulate(T builder, java.util.Map<PropertyDescriptorField,java.lang.String> fields)Deprecated.Populates the builder with extracted fields.java.lang.Class<?>valueType()Deprecated.Type of the values of the descriptor, or component type if this descriptor is multi-valued.
-
-
-
Method Detail
-
populate
protected void populate(T builder, java.util.Map<PropertyDescriptorField,java.lang.String> fields)
Deprecated.Populates the builder with extracted fields. To be overridden.
-
isMultiValue
public abstract boolean isMultiValue()
Deprecated.Description copied from interface:PropertyDescriptorExternalBuilderWhether this descriptor is multi-valued.- Specified by:
isMultiValuein interfacePropertyDescriptorExternalBuilder<E>- Returns:
- True if this descriptor is multi-valued
-
valueType
public java.lang.Class<?> valueType()
Deprecated.Description copied from interface:PropertyDescriptorExternalBuilderType of the values of the descriptor, or component type if this descriptor is multi-valued.- Specified by:
valueTypein interfacePropertyDescriptorExternalBuilder<E>- Returns:
- Type of the values
-
newBuilder
protected abstract T newBuilder(java.lang.String name)
Deprecated.
-
build
public PropertyDescriptor<E> build(java.util.Map<PropertyDescriptorField,java.lang.String> fields)
Deprecated.Description copied from interface:PropertyDescriptorExternalBuilderBuilds a descriptor. The descriptor returned is tagged as built externally.- Specified by:
buildin interfacePropertyDescriptorExternalBuilder<E>- Parameters:
fields- Key value pairs- Returns:
- A builder
-
legalPackageNamesIn
protected static java.lang.String[] legalPackageNamesIn(java.util.Map<PropertyDescriptorField,java.lang.String> valuesById, char delimiter)
Deprecated.
-
-