org.scijava.plugin
Class AbstractTypedPlugin<D>
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.plugin.AbstractTypedPlugin<D>
- Type Parameters:
D - Data type associated with the plugin.
- All Implemented Interfaces:
- Comparable<Prioritized>, Contextual, HasPluginInfo, RichPlugin, SciJavaPlugin, TypedPlugin<D>, Prioritized, Typed<D>
- Direct Known Subclasses:
- AbstractHandlerPlugin, AbstractWrapperPlugin
public abstract class AbstractTypedPlugin<D>
- extends AbstractRichPlugin
- implements TypedPlugin<D>
Abstract base class for TypedPlugins.
- Author:
- Curtis Rueden
- See Also:
Typed
|
Method Summary |
boolean |
supports(D data)
Gets whether this object is compatible with the given data object. |
AbstractTypedPlugin
public AbstractTypedPlugin()
supports
public boolean supports(D data)
- Description copied from interface:
Typed
- Gets whether this object is compatible with the given data object.
Typically, this will be the case when data.getClass() is assignable
to the type associated with the object (i.e., the one returned by
Typed.getType()). But individual implementations may have other
requirements beyond class assignability.
- Specified by:
supports in interface Typed<D>
Copyright © 2009–2015 SciJava. All rights reserved.