E
- Value type of the descriptorT
- Concrete type of the underlying builderpublic abstract class PropertyDescriptorBuilderConversionWrapper<E,T extends PropertyDescriptorBuilder<E,T>> extends java.lang.Object implements PropertyDescriptorExternalBuilder<E>
Modifier and Type | Class and Description |
---|---|
static class |
PropertyDescriptorBuilderConversionWrapper.MultiValue<V,T extends MultiValuePropertyBuilder<V,T>>
For multi-value properties.
|
static class |
PropertyDescriptorBuilderConversionWrapper.SingleValue<E,T extends SingleValuePropertyBuilder<E,T>>
For single-value properties.
|
Modifier | Constructor and Description |
---|---|
protected |
PropertyDescriptorBuilderConversionWrapper(java.lang.Class<?> valueType) |
Modifier and Type | Method and Description |
---|---|
PropertyDescriptor<E> |
build(java.util.Map<PropertyDescriptorField,java.lang.String> fields)
Builds a descriptor.
|
abstract boolean |
isMultiValue()
Whether this descriptor is multi-valued.
|
protected static java.lang.String[] |
legalPackageNamesIn(java.util.Map<PropertyDescriptorField,java.lang.String> valuesById,
char delimiter) |
protected abstract T |
newBuilder(java.lang.String name) |
protected void |
populate(T builder,
java.util.Map<PropertyDescriptorField,java.lang.String> fields)
Populates the builder with extracted fields.
|
java.lang.Class<?> |
valueType()
Type of the values of the descriptor, or component type if this descriptor is multi-valued.
|
protected PropertyDescriptorBuilderConversionWrapper(java.lang.Class<?> valueType)
protected void populate(T builder, java.util.Map<PropertyDescriptorField,java.lang.String> fields)
public abstract boolean isMultiValue()
PropertyDescriptorExternalBuilder
isMultiValue
in interface PropertyDescriptorExternalBuilder<E>
public java.lang.Class<?> valueType()
PropertyDescriptorExternalBuilder
valueType
in interface PropertyDescriptorExternalBuilder<E>
protected abstract T newBuilder(java.lang.String name)
public PropertyDescriptor<E> build(java.util.Map<PropertyDescriptorField,java.lang.String> fields)
PropertyDescriptorExternalBuilder
build
in interface PropertyDescriptorExternalBuilder<E>
fields
- Key value pairsprotected static java.lang.String[] legalPackageNamesIn(java.util.Map<PropertyDescriptorField,java.lang.String> valuesById, char delimiter)
Copyright © 2002–2018 PMD. All rights reserved.