java.lang.Object
org.jhotdraw8.css.converter.StringOrIdentCssConverter
Converts an
String from/to a CSS ident-token or a CSS string-token.- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringfromString(CharBuffer buf, @Nullable IdResolver idResolver) @Nullable StringvoidtoString(Appendable out, @Nullable IdSupplier idSupplier, @Nullable String 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, fromStringNonNull, fromStringNonNull, fromStringNonNull, fromStringNonNull, getHelpText, needsIdResolver, toString, toString, toString
-
Constructor Details
-
StringOrIdentCssConverter
public StringOrIdentCssConverter()
-
-
Method Details
-
fromString
public @Nullable String fromString(CharBuffer buf, @Nullable IdResolver idResolver) throws ParseException - Specified by:
fromStringin interfaceConverter<String>- Throws:
ParseException
-
toString
public void toString(Appendable out, @Nullable IdSupplier idSupplier, @Nullable String value) throws IOException - Specified by:
toStringin interfaceConverter<String>- Throws:
IOException
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceConverter<String>
-