java.lang.Object
org.jhotdraw8.xml.converter.BooleanXmlConverter
Converts a
Boolean into the XML String representation.
Reference: W3C: XML Schema Part 2: Datatypes Second Edition: 3.2.5 boolean
- Author:
- Werner Randelshofer
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.BooleanXmlConverter(boolean nullable) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescription@Nullable BooleanfromString(CharBuffer in, @Nullable IdResolver idResolver) @Nullable BooleanvoidtoString(Appendable buf, @Nullable IdSupplier idSupplier, Boolean 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
-
BooleanXmlConverter
public BooleanXmlConverter(boolean nullable) Creates a new instance. -
BooleanXmlConverter
public BooleanXmlConverter()Creates a new instance.
-
-
Method Details
-
toString
public void toString(Appendable buf, @Nullable IdSupplier idSupplier, Boolean value) throws IOException - Specified by:
toStringin interfaceConverter<Boolean>- Throws:
IOException
-
fromString
public @Nullable Boolean fromString(CharBuffer in, @Nullable IdResolver idResolver) throws ParseException - Specified by:
fromStringin interfaceConverter<Boolean>- Throws:
ParseException
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceConverter<Boolean>
-