org.scijava.script
Class AbstractScriptHeader

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.plugin.AbstractTypedPlugin<D>
              extended by org.scijava.plugin.AbstractHandlerPlugin<ScriptLanguage>
                  extended by org.scijava.script.AbstractScriptHeader
All Implemented Interfaces:
Comparable<Prioritized>, Contextual, HandlerPlugin<ScriptLanguage>, HasPluginInfo, RichPlugin, SciJavaPlugin, SingletonPlugin, TypedPlugin<ScriptLanguage>, Prioritized, ScriptHeader, Typed<ScriptLanguage>

public abstract class AbstractScriptHeader
extends AbstractHandlerPlugin<ScriptLanguage>
implements ScriptHeader

Abstract superclass for ScriptHeader implementations.

Author:
Mark Hiner

Constructor Summary
AbstractScriptHeader()
           
 
Method Summary
 Class<ScriptLanguage> getType()
          Gets the type associated with the object.
protected abstract  Class<? extends ScriptLanguage> handledType()
           
 boolean supports(ScriptLanguage language)
          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.script.ScriptHeader
getHeader
 
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
 

Constructor Detail

AbstractScriptHeader

public AbstractScriptHeader()
Method Detail

supports

public boolean supports(ScriptLanguage language)
Description copied from interface: Typed
Gets whether this object is compatible with the given data object.

By default, this method will return true always, since the type is known to be compatible. But individual implementations may have other requirements beyond class assignability.

Specified by:
supports in interface Typed<ScriptLanguage>
Overrides:
supports in class AbstractTypedPlugin<ScriptLanguage>

getType

public Class<ScriptLanguage> getType()
Description copied from interface: Typed
Gets the type associated with the object.

Specified by:
getType in interface Typed<ScriptLanguage>

handledType

protected abstract Class<? extends ScriptLanguage> handledType()


Copyright © 2009–2015 SciJava. All rights reserved.