Class PropertyDescriptorBuilder<E,T extends PropertyDescriptorBuilder<E,T>>
- java.lang.Object
-
- net.sourceforge.pmd.properties.builders.PropertyDescriptorBuilder<E,T>
-
- Type Parameters:
E
- Value type of the built descriptorT
- Concrete type of this builder instance. Removes code duplication at the expense of a few unchecked casts. Everything goes well if this parameter's value is correctly set.
- Direct Known Subclasses:
MultiValuePropertyBuilder
,SingleValuePropertyBuilder
@Deprecated public abstract class PropertyDescriptorBuilder<E,T extends PropertyDescriptorBuilder<E,T>> extends Object
Deprecated.From 7.0.0 on, the only supported way to build properties will be throughPropertyFactory
. This class hierarchy is replaced by the newerPropertyBuilder
.Base class for property builders.- Since:
- 6.0.0
- Author:
- Clément Fournier
-
-
Field Summary
Fields Modifier and Type Field Description protected String
description
Deprecated.protected boolean
isDefinedInXML
Deprecated.protected String
name
Deprecated.protected float
uiOrder
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protected
PropertyDescriptorBuilder(String name)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract PropertyDescriptor<E>
build()
Deprecated.Builds the descriptor and returns it.T
desc(String desc)
Deprecated.Specify the description of the property.String
getName()
Deprecated.Returns the name of the property to be built.T
uiOrder(float f)
Deprecated.
-
-
-
Constructor Detail
-
PropertyDescriptorBuilder
protected PropertyDescriptorBuilder(String name)
Deprecated.
-
-
Method Detail
-
desc
public T desc(String desc)
Deprecated.Specify the description of the property.- Parameters:
desc
- The description- Returns:
- The same builder
-
uiOrder
@Deprecated public T uiOrder(float f)
Deprecated.Specify the UI order of the property.- Parameters:
f
- The UI order- Returns:
- The same builder
-
build
public abstract PropertyDescriptor<E> build()
Deprecated.Builds the descriptor and returns it.- Returns:
- The built descriptor
- Throws:
IllegalArgumentException
- if parameters are incorrect
-
getName
public String getName()
Deprecated.Returns the name of the property to be built.
-
-