Names
The named() element explicitly specifies the property’s name, overriding the name that would normally be inferred from the Java source code.
|
We recommend that you only use this element when the desired name cannot be used in Java source code. Examples of that include a name that would be a reserved Java keyword (eg "package"), or a name that has punctuation, eg apostrophes. |
The name is HTML escaped.
For example:
import lombok.Getter;
import lombok.Setter;
public class ToDoItem {
@PropertyLayout(
named="Description of this item"
)
@Getter @Setter
private String description;
// ...
}
Alternatives
The framework also provides a separate, powerful mechanism for internationalization.