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