2.17.2: 2011-06-17

net.sf.basedb.util.bfs
Interface EventHandler

All Known Implementing Classes:
AnnotationModel, BfsImporter.ProgressEventHandler, MatrixModel, MatrixSpotIntensityEventHandler, MetadataModel, MultiEventHandler, PositionEventHandler, SerialSpotIntensityEventHandler

public interface EventHandler

Event handlers are used for reacting to various parsing events when parsing BFS files. Different parsers generate different types of events, and generally, different event handler implementations are needed for different BFS file types.

Version:
2.15
Author:
Nicklas
Last modified
$Date: 2010-01-27 14:03:33 +0100 (Wed, 27 Jan 2010) $

Method Summary
<T> void
handleEvent(EventType<T> eventType, T eventData, BfsParser parser)
          The method is called by the parser when it has found something interesting in a BFS file.
 

Method Detail

handleEvent

<T> void handleEvent(EventType<T> eventType,
                     T eventData,
                     BfsParser parser)
The method is called by the parser when it has found something interesting in a BFS file. See the respective parser documentation for documentation about the events that it generates. There is usually some kind of information associated with the event. This information is sent to the event handler as an object. The parser should document what kind of information it sends so that event handler implementation can react and use the information.

It is recommended that event handlers ignore event types they don't know about.

Parameters:
eventType - The type of event. See the parser documentation for more information about the event types it generates
eventData - The data that is associated with the event
parser - The parser that is resposible for parsing the file

2.17.2: 2011-06-17