01 /*
02 * DocumentProcessor.java
03 * Copyright (c) 1998-2009, The University of Sheffield.
04 *
05 * This code is from the GATE project (http://gate.ac.uk/) and is free
06 * software licenced under the GNU General Public License version 3. It is
07 * distributed without any warranty. For more details see COPYING.txt in the
08 * top level directory (or at http://gatewiki.sf.net/COPYING.txt).
09 *
10 * Ian Roberts, 3rd September 2009
11 */
12
13 package gate.util;
14
15 import gate.Document;
16 import gate.util.GateException;
17
18 /**
19 * Very simple interface for a component that processes GATE documents.
20 * Typical implementations of this interface would contain a Controller but the
21 * interface is deliberately generic.
22 */
23 public interface DocumentProcessor {
24 /**
25 * Process the given GATE document.
26 */
27 public void processDocument(Document doc) throws GateException;
28 }
|