org.scijava
Interface Typed<T>

All Known Subinterfaces:
ButtonWidget<U>, ChoiceWidget<U>, ColorWidget<U>, ConsoleArgument, ConsoleService, Converter<I,O>, ConvertService, DataHandle<L>, DataHandleService, DateWidget<U>, DragAndDropHandler<D>, DragAndDropService, FileWidget<U>, HandlerPlugin<D>, HandlerService<DT,PT>, InputWidget<T,W>, IOPlugin<D>, IOService, MessageWidget<U>, NumberWidget<U>, ObjectWidget<U>, ScriptHeader, ScriptHeaderService, TextFormat, TextService, TextWidget<U>, ToggleWidget<U>, TypedPlugin<D>, TypedService<DT,PT>, WidgetService, WrapperPlugin<D>, WrapperService<DT,PT>
All Known Implementing Classes:
AbstractConsoleArgument, AbstractConverter, AbstractConvertService, AbstractDataHandle, AbstractDragAndDropHandler, AbstractHandlerPlugin, AbstractHandlerService, AbstractInputWidget, AbstractIOPlugin, AbstractScriptHeader, AbstractTextFormat, AbstractTypedPlugin, AbstractTypedService, AbstractUIInputWidget, AbstractWrapperPlugin, AbstractWrapperService, DefaultConsoleService, DefaultConverter, DefaultConvertService, DefaultDataHandleService, DefaultDragAndDropService, DefaultIOService, DefaultScriptHeaderService, DefaultTextService, DefaultWidgetService, FileDragAndDropHandler, FileHandle, ListDragAndDropHandler, NullConverter, OpenArgument, RunArgument, ScriptFileDragAndDropHandler, ScriptIOPlugin, TextIOPlugin, UIArgument

public interface Typed<T>

An object with an associated type (i.e., Class), which can be queried at runtime.

Author:
Curtis Rueden

Method Summary
 Class<T> getType()
          Gets the type associated with the object.
 boolean supports(T data)
          Gets whether this object is compatible with the given data object.
 

Method Detail

supports

boolean supports(T data)
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.


getType

Class<T> getType()
Gets the type associated with the object.



Copyright © 2009–2015 SciJava. All rights reserved.