java.lang.Object
org.jhotdraw8.xml.converter.ObjectReferenceXmlConverter<T>
- Type Parameters:
T- the type
- All Implemented Interfaces:
Converter<T>
ObjectReferenceV2XmlConverter.
Converts references to figures.
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable TfromString(@Nullable CharSequence buf, @Nullable IdResolver idResolver) @Nullable TfromString(CharBuffer buf, @Nullable IdResolver idResolver) @Nullable Tboolean<TT extends T>
voidtoString(Appendable out, @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, fromStringNonNull, fromStringNonNull, fromStringNonNull, fromStringNonNull, getHelpText, toString, toString, toString
-
Constructor Details
-
ObjectReferenceXmlConverter
Creates a new instance- Parameters:
clazz- the type class- Throws:
IllegalArgumentException- if clazz is null
-
-
Method Details
-
toString
public <TT extends T> void toString(Appendable out, @Nullable IdSupplier idSupplier, @Nullable TT value) throws IOException - Specified by:
toStringin interfaceConverter<T>- Throws:
IOException
-
fromString
public @Nullable T fromString(CharBuffer buf, @Nullable IdResolver idResolver) throws ParseException - Specified by:
fromStringin interfaceConverter<T>- Throws:
ParseException
-
fromString
- Specified by:
fromStringin interfaceConverter<T>
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceConverter<T>
-
needsIdResolver
public boolean needsIdResolver()- Specified by:
needsIdResolverin interfaceConverter<T>
-