java.lang.Object
org.jhotdraw8.xml.converter.WordListXmlConverter
- All Implemented Interfaces:
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:
- Author:
- Werner Randelshofer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(@NonNull CharBuffer buf, @Nullable IdResolver idResolver) <TT extends ImmutableList<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
-
Field Details
-
NFD_COMPARATOR
-
-
Constructor Details
-
WordListXmlConverter
public WordListXmlConverter()
-
-
Method Details
-
toString
public <TT extends ImmutableList<String>> void toString(Appendable out, @Nullable IdSupplier idSupplier, @Nullable TT value) throws IOException - Specified by:
toStringin interfaceConverter<ImmutableList<String>>- Throws:
IOException
-
fromString
- Specified by:
fromStringin interfaceConverter<ImmutableList<String>>
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceConverter<ImmutableList<String>>
-