Class WordSetXmlConverter

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

public class WordSetXmlConverter extends Object implements Converter<ImmutableSet<String>>
WordSetConverter converts a set of Strings from/to a String.

The word set is actually a "set of space separated tokens", as specified in HTML 5.

(Do not use this converter for tokens specified in XML Schema Part 2. A token in XML Schema Part 2 can have internal spaces, but no consecutive sequences of two or more spaces.)

The word set converter coalesces duplicate entries if they have the same Unicode NFC form. The tokens are sorted case-insensitively using their Unicode NFD form.

References:

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