Class StringDecorator

  • All Implemented Interfaces:
    Serializable

    @Deprecated
    public class StringDecorator
    extends Object
    implements Serializable
    Deprecated.
    As of 8.0, no replacement available.
    The StringDecorator knows how to produce a quoted string using the specified quote start and quote end characters. It also handles grouping of a string (surrounding it in parenthesis). Extend this class if you need to support special characters for grouping (parenthesis).
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Constructor Detail

      • StringDecorator

        public StringDecorator​(String quoteStart,
                               String quoteEnd)
        Deprecated.
        Constructs a StringDecorator that uses the quoteStart and quoteEnd characters to create quoted strings.
        Parameters:
        quoteStart - the character denoting the start of a quote.
        quoteEnd - the character denoting the end of a quote.
    • Method Detail

      • quote

        public String quote​(Object str)
        Deprecated.
        Surround a string with quote characters.
        Parameters:
        str - the string to quote
        Returns:
        the quoted string
      • group

        public String group​(String str)
        Deprecated.
        Groups a string by surrounding it in parenthesis.
        Parameters:
        str - the string to group
        Returns:
        the grouped string