Class WordListXmlConverter

java.lang.Object
org.jhotdraw8.xml.converter.WordListXmlConverter
All Implemented Interfaces:
Converter<ImmutableList<String>>

public class WordListXmlConverter extends Object implements Converter<ImmutableList<String>>
WordListConverter converts an ImmutableObservableList of Strings into a String.

The word list is actually a "set ofCollection space separated tokens", as specified in HTML 5 and in XML Schema Part 2.

The word list converter coalesces duplicate entries if they have the same Unicode NFD form. The tokens are sorted using their Unicode NFD form.

References:

HTML 5, Common Microsyntaxes, Space-separated tokens
w3.org
XML Schema Part 2, Built-in datatypes, Derived datatypes, CssToken
w3.org
Author:
Werner Randelshofer