Names
The named() element explicitly specifies the collection’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 {
@CollectionLayout(
named="Dependencies of this item",
namedEscaped=false
)
@Getter @Setter
private SortedSet<ToDoItem> dependencies = ...
}
Alternatives
The framework also provides a separate, powerful mechanism for internationalization.