Class ListCssConverter<T>

java.lang.Object
org.jhotdraw8.css.converter.ListCssConverter<T>
Type Parameters:
T - the element type
All Implemented Interfaces:
Converter<ImmutableList<T>>, CssConverter<ImmutableList<T>>

public class ListCssConverter<T> extends Object implements CssConverter<ImmutableList<T>>
Parses a list with items separated by configurable optional delimiters.

If the delimiter consists of multiple character tokens, then the parser accepts each of the character tokens and any combination of them.

The delimiters are optional when the list is parsed from a String. When the list is converted into a String, then the specified delimiters are used to separate the items.

Stops parsing at EOF, semicolon and closing bracket.

This parser is intentionally forgiving, so that lists can be output with nice delimiters, but the user does not need to type the delimiter.

In CSS list elements are separated by a comma character.

References:

CSS Syntax Module Level 3, 5.3.11. Parse a comma-separated list of component values
w3.org