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 java.lang.ObjectDeprecated.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 java.lang.StringdescriptionDeprecated.protected booleanisDefinedInXMLDeprecated.protected java.lang.StringnameDeprecated.protected floatuiOrderDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPropertyDescriptorBuilder(java.lang.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.Tdesc(java.lang.String desc)Deprecated.Specify the description of the property.java.lang.StringgetName()Deprecated.Returns the name of the property to be built.TuiOrder(float f)Deprecated.
-
-
-
Method Detail
-
desc
public T desc(java.lang.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:
java.lang.IllegalArgumentException- if parameters are incorrect
-
getName
public java.lang.String getName()
Deprecated.Returns the name of the property to be built.
-
-