java.lang.Object
org.jhotdraw8.xml.converter.WordSetXmlConverter
- All Implemented Interfaces:
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:
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(@NonNull CharBuffer buf, @Nullable IdResolver idResolver) <TT extends ImmutableSet<String>>
voidtoString(Appendable out, @Nullable IdSupplier idSupplier, @Nullable TT value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.base.converter.Converter
fromString, fromString, fromString, getHelpText, needsIdResolver, toString, toString, toString
-
Constructor Details
-
WordSetXmlConverter
public WordSetXmlConverter() -
WordSetXmlConverter
-
-
Method Details
-
toString
public <TT extends ImmutableSet<String>> void toString(Appendable out, @Nullable IdSupplier idSupplier, @Nullable TT value) throws IOException - Specified by:
toStringin interfaceConverter<ImmutableSet<String>>- Throws:
IOException
-
fromString
- Specified by:
fromStringin interfaceConverter<ImmutableSet<String>>
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceConverter<ImmutableSet<String>>
-