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