org.scijava.plugin
Class AbstractTypedPlugin<D>

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by 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

Constructor Summary
AbstractTypedPlugin()
           
 
Method Summary
 boolean supports(D data)
          Gets whether this object is compatible with the given data object.
 
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
compareTo, getInfo, getPriority, setInfo, setPriority, toString
 
Methods inherited from class org.scijava.AbstractContextual
context, getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 
Methods inherited from interface org.scijava.Typed
getType
 

Constructor Detail

AbstractTypedPlugin

public AbstractTypedPlugin()
Method Detail

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–2014 SciJava. All rights reserved.