public interface TranslatorService extends SCIFIOService, org.scijava.plugin.SingletonService<Translator>
Translator| Modifier and Type | Method and Description |
|---|---|
Translator |
findTranslator(Class<? extends Metadata> source,
Class<? extends Metadata> dest,
boolean exact)
Returns a translator capable of translating from the source Metadata to the
dest Metadata type, or null if no such Translator exists.
|
Translator |
findTranslator(Metadata source,
Metadata dest,
boolean exact)
Returns a translator capable of translating from the source Metadata to the
dest Metadata type, or null if no such Translator exists.
|
boolean |
translate(Metadata source,
Metadata dest,
boolean exact)
Convenience method to immediately translate from the source Metadata to the
dest Metadata type, assuming an appropriate Translator is found.
|
create, filterInstances, getInstance, getInstances, initialize, objectServicegetPlugins, getPluginService, getPluginType, pluginServiceregisterEventHandlersgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposeTranslator findTranslator(Metadata source, Metadata dest, boolean exact)
source - - Metadata to read fromdest - - Metadata to populateexact - - true if a translator that exactly matches these Metadata is
desiredTranslator findTranslator(Class<? extends Metadata> source, Class<? extends Metadata> dest, boolean exact)
source - - Metadata to read fromdest - - Metadata to populateexact - - true if a translator that exactly matches these Metadata is
desiredboolean translate(Metadata source, Metadata dest, boolean exact)
Useful if you don't need a handle on the Translator itself.
source - - Metadata to read fromdest - - Metadata to populateexact - - true if a translator that exactly matches these Metadata is
desiredCopyright © 2011–2026 SCIFIO. All rights reserved.