Class CmsSelectConfigurationParser


  • public class CmsSelectConfigurationParser
    extends java.lang.Object
    Parses the configuration for various select widgets, including multi-select and combo-box.

    It expects the canonical format of the configuration options as it is produced by CmsSelectWidgetOption.createConfigurationString(List)

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static int findNextUnescapedSingleQuote​(java.lang.String input)
      Splits the options string at every unescaped input delimiter, i.e., every unescaped "|".
      java.lang.String getDefaultValue()
      Returns the default value.
      java.util.List<java.lang.String> getDefaultValues()
      Returns the default value.
      java.util.Map<java.lang.String,​java.lang.String> getHelpTexts()
      Returns the help texts.
      java.util.Map<java.lang.String,​java.lang.String> getOptions()
      Returns the options.
      static java.lang.String[] splitOptions​(java.lang.String input)
      Splits the options string at every unescaped input delimiter, i.e., every unescaped "|".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsSelectConfigurationParser

        public CmsSelectConfigurationParser​(java.lang.String configuration)
        Constructor. Will parse the given configuration string.

        Parameters:
        configuration - the configuration
    • Method Detail

      • findNextUnescapedSingleQuote

        public static int findNextUnescapedSingleQuote​(java.lang.String input)
        Splits the options string at every unescaped input delimiter, i.e., every unescaped "|".
        Parameters:
        input - the options string
        Returns:
        the array with the various options
      • splitOptions

        public static java.lang.String[] splitOptions​(java.lang.String input)
        Splits the options string at every unescaped input delimiter, i.e., every unescaped "|".
        Parameters:
        input - the options string
        Returns:
        the array with the various options
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Returns the default value.

        Returns:
        the default value
      • getDefaultValues

        public java.util.List<java.lang.String> getDefaultValues()
        Returns the default value.

        Returns:
        the default value
      • getHelpTexts

        public java.util.Map<java.lang.String,​java.lang.String> getHelpTexts()
        Returns the help texts.

        Returns:
        the help texts
      • getOptions

        public java.util.Map<java.lang.String,​java.lang.String> getOptions()
        Returns the options.

        Returns:
        the options