Package org.jboss.hal.ballroom
Class LabelBuilder
- java.lang.Object
-
- org.jboss.hal.ballroom.LabelBuilder
-
public class LabelBuilder extends Object
Generates human readable labels from terms used in the management model.
-
-
Constructor Summary
Constructors Constructor Description LabelBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringenumeration(Iterable<String> names, String conjunction)Turns a list of names from the management model into a human readable enumeration wrapped in quotes and separated with commas.Stringlabel(String name)Stringlabel(org.jboss.hal.dmr.Property property)
-
-
-
Method Detail
-
label
public String label(org.jboss.hal.dmr.Property property)
-
enumeration
public String enumeration(Iterable<String> names, String conjunction)
Turns a list of names from the management model into a human readable enumeration wrapped in quotes and separated with commas. The last name is separated with the specified conjunction.- Returns:
- The list of names as human readable string or an empty string if the names are null or empty.
-
-