java.lang.Object
org.jhotdraw8.xml.converter.DoubleXmlConverter
Converts a XML double from/to String.
Reference: W3C: XML Schema Part 2: Datatypes Second Edition: 3.2.5 double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(@NonNull CharBuffer in, @Nullable IdResolver idResolver) boolean<TT extends Double>
voidtoString(Appendable buf, @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
-
DoubleXmlConverter
public DoubleXmlConverter(boolean nullable) -
DoubleXmlConverter
public DoubleXmlConverter()
-
-
Method Details
-
getAllowsNullValue
public boolean getAllowsNullValue() -
fromString
public @Nullable Double fromString(@NonNull CharBuffer in, @Nullable IdResolver idResolver) throws ParseException - Specified by:
fromStringin interfaceConverter<Double>- Throws:
ParseException
-
toString
public <TT extends Double> void toString(Appendable buf, @Nullable IdSupplier idSupplier, @Nullable TT value) throws IOException - Specified by:
toStringin interfaceConverter<Double>- Throws:
IOException
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceConverter<Double>
-