Class LabelBuilder


  • public class LabelBuilder
    extends Object
    Generates human readable labels from terms used in the management model.
    • Constructor Detail

      • LabelBuilder

        public LabelBuilder()
    • 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.