Annotation Type Converter
-
@Retention(RUNTIME) @Target({TYPE,FIELD}) public @interface Converter
An annotation to indicate that a customIConverterimplementation should be used.In most cases, the LinkML runtime will automatically find the appropriate implementation if
IConverterto use to (de)serialise a given object. The Java code generator can inject this annotation into the generated code to indicate that a specific implementation shall be used.When that annotation is carried by a class, the indicated converter shall be used for (de)serialising instances of that class (or any of its subclass, unless a subclass overrides this by also using this annotation to request the use of another converter).
When that annotation is carried by a field (representing a LinkML slot), the indicated converter shall be used for (de)serialising the value of the slot.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends IConverter>value
-
-
-
Element Detail
-
value
Class<? extends IConverter> value
-
-