Class AbstractCollectionConverter

  • All Implemented Interfaces:
    Converter

    @Deprecated
    public abstract class AbstractCollectionConverter
    extends AbstractConverter
    Deprecated.
    Base class for all Collection converters.
    Since:
    3.0M1
    Version:
    $Id: 1b11aae2fd6b31491be176b653cad7a45b1e148c $
    • Constructor Detail

      • AbstractCollectionConverter

        public AbstractCollectionConverter()
        Deprecated.
    • Method Detail

      • getConverterManager

        public ConverterManager getConverterManager()
        Deprecated.
        Returns:
        the converter manager.
      • setDelimiters

        public void setDelimiters​(String delimiter)
        Deprecated.
        Set the delimiter to be used for parsing a delimited String.
        Parameters:
        delimiter - The delimiter [default ", "] since 3.2M3
      • getDelimiters

        public String getDelimiters()
        Deprecated.
        Returns:
        the delimiters
        Since:
        3.2M3
      • parseElements

        protected Collection parseElements​(String value,
                                           Type genericType)
        Deprecated.

        Parse an incoming String of the form similar to an array initializer in the Java language into a List individual Strings for each element, according to the following rules.

        • The string is expected to be a comma-separated list of values.
        • The string may optionally have matching '{' and '}' delimiters around the list.
        • Whitespace before and after each element is stripped.
        • Elements in the list may be delimited by single or double quotes. Within a quoted elements, the normal Java escape sequences are valid.
        Parameters:
        value - String value to be parsed
        genericType - the generic type
        Returns:
        List of parsed elements.
        Throws:
        ConversionException - if the syntax of value is not syntactically valid
        NullPointerException - if value is null
      • newCollection

        protected Collection newCollection()
        Deprecated.
        Returns:
        the modifiable Collection to fill
      • createStreamTokenizer

        protected StreamTokenizer createStreamTokenizer​(String value)
        Deprecated.
        Create and initializer a StreamTokenizer to parse the value.
        Parameters:
        value - the string to parse
        Returns:
        the StreamTokenizer used to parse the string
      • getDelimiter

        @Deprecated
        public char getDelimiter()
        Deprecated.
        since 3.2M3 use getDelimiters() instead
        Returns:
        the delimiter
      • setAllowedChars

        @Deprecated
        public void setAllowedChars​(char[] allowedChars)
        Deprecated.
        since 3.2M3 use setDelimiters(String) instead
        Parameters:
        allowedChars - allowed characters
      • setDelimiter

        @Deprecated
        public void setDelimiter​(char delimiter)
        Deprecated.
        since 3.2M3 use setDelimiters(String) instead
        Parameters:
        delimiter - the delimiter