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.MultiValuePropertyBuilder
, SingleValuePropertyBuilder
public abstract class PropertyDescriptorBuilder<E,T extends PropertyDescriptorBuilder<E,T>>
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
description |
|
protected boolean |
isDefinedInXML |
|
protected java.lang.String |
name |
|
protected float |
uiOrder |
Modifier | Constructor | Description |
---|---|---|
protected |
PropertyDescriptorBuilder(java.lang.String name) |
Modifier and Type | Method | Description |
---|---|---|
abstract PropertyDescriptor<E> |
build() |
Builds the descriptor and returns it.
|
T |
desc(java.lang.String desc) |
Specify the description of the property.
|
T |
uiOrder(float f) |
Specify the UI order of the property.
|
protected java.lang.String name
protected java.lang.String description
protected float uiOrder
protected boolean isDefinedInXML
protected PropertyDescriptorBuilder(java.lang.String name)
public T desc(java.lang.String desc)
desc
- The descriptionpublic T uiOrder(float f)
f
- The UI orderpublic abstract PropertyDescriptor<E> build()
java.lang.IllegalArgumentException
- if parameters are incorrectCopyright © 2002–2018 PMD. All rights reserved.