Package net.sourceforge.pmd.properties
Class EnumeratedMultiProperty.EnumMultiPBuilder<E>
- java.lang.Object
-
- net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilder<java.util.List<V>,T>
-
- net.sourceforge.pmd.properties.builders.MultiValuePropertyBuilder<E,EnumeratedMultiProperty.EnumMultiPBuilder<E>>
-
- net.sourceforge.pmd.properties.EnumeratedMultiProperty.EnumMultiPBuilder<E>
-
- Enclosing class:
- EnumeratedMultiProperty<E>
public static final class EnumeratedMultiProperty.EnumMultiPBuilder<E> extends MultiValuePropertyBuilder<E,EnumeratedMultiProperty.EnumMultiPBuilder<E>>
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.properties.builders.MultiValuePropertyBuilder
defaultValues, multiValueDelimiter
-
Fields inherited from class net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilder
description, isDefinedInXML, name, uiOrder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumeratedMultiProperty<E>
build()
Builds the descriptor and returns it.EnumeratedMultiProperty.EnumMultiPBuilder<E>
mappings(java.util.Map<java.lang.String,E> map)
Sets the key-value mappings.EnumeratedMultiProperty.EnumMultiPBuilder<E>
type(java.lang.Class<E> type)
-
Methods inherited from class net.sourceforge.pmd.properties.builders.MultiValuePropertyBuilder
defaultValues, defaultValues, delim
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilder
desc, getName, uiOrder
-
-
-
-
Method Detail
-
type
public EnumeratedMultiProperty.EnumMultiPBuilder<E> type(java.lang.Class<E> type)
-
mappings
public EnumeratedMultiProperty.EnumMultiPBuilder<E> mappings(java.util.Map<java.lang.String,E> map)
Sets the key-value mappings.- Parameters:
map
- A map of label to value- Returns:
- The same builder
-
build
public EnumeratedMultiProperty<E> build()
Description copied from class:PropertyDescriptorBuilder
Builds the descriptor and returns it.- Specified by:
build
in classPropertyDescriptorBuilder<java.util.List<E>,EnumeratedMultiProperty.EnumMultiPBuilder<E>>
- Returns:
- The built descriptor
-
-