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 TypeMethodDescriptionfromString(@Nullable CharSequence buf, @Nullable IdResolver idResolver) fromString(@NonNull CharBuffer buf, @Nullable IdResolver idResolver) boolean<TT extends T>
voidtoString(@NonNull 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, 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(@NonNull Appendable out, @Nullable IdSupplier idSupplier, @Nullable TT value) throws IOException - Specified by:
toStringin interfaceConverter<T>- Throws:
IOException
-
fromString
public @Nullable T fromString(@NonNull 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>
-