org.scijava.text
Class AbstractTextFormat

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<File>
                  extended by org.scijava.text.AbstractTextFormat
All Implemented Interfaces:
Comparable<Prioritized>, Contextual, HandlerPlugin<File>, HasPluginInfo, RichPlugin, SciJavaPlugin, SingletonPlugin, TypedPlugin<File>, Prioritized, TextFormat, Typed<File>

public abstract class AbstractTextFormat
extends AbstractHandlerPlugin<File>
implements TextFormat

Abstract superclass of TextFormat implementations.

Author:
Curtis Rueden

Constructor Summary
AbstractTextFormat()
           
 
Method Summary
 Class<File> getType()
          Gets the type associated with the object.
 boolean supports(File file)
          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.text.TextFormat
asHTML, getExtensions
 
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

AbstractTextFormat

public AbstractTextFormat()
Method Detail

supports

public boolean supports(File file)
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<File>
Overrides:
supports in class AbstractTypedPlugin<File>

getType

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

Specified by:
getType in interface Typed<File>


Copyright © 2009–2014 SciJava. All rights reserved.