Class Util


  • public class Util
    extends java.lang.Object
    Util...
    • Field Detail

      • STANDARD_LABEL_CHAR_MAPPING

        public static final java.lang.String[] STANDARD_LABEL_CHAR_MAPPING
        The list of characters that are valid label characters
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • createValidName

        public static java.lang.String createValidName​(java.lang.String title)
        Create a valid label out of an arbitrary string. Same as calling createValidName(String, String[]) using STANDARD_LABEL_CHAR_MAPPING.
        Parameters:
        title - title to convert into a name
        Returns:
        a valid label string
      • createValidName

        public static java.lang.String createValidName​(java.lang.String title,
                                                       java.lang.String[] labelCharMapping)
        Create a valid label out of an arbitrary string with a custom character mapping.
        Parameters:
        title - title to convert into a name
        labelCharMapping - a mapping of chars (index of the array) to strings that should be used as replacement for the characters
        Returns:
        a valid label string