01 /*
02 * DocumentProcessor.java
03 * Copyright (c) 1995-2010, The University of Sheffield. See the file
04 * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
05 *
06 * This file is part of GATE (see http://gate.ac.uk/), and is free
07 * software, licenced under the GNU Library General Public License,
08 * Version 2, June 1991 (in the distribution as file licence.html,
09 * and also available at http://gate.ac.uk/gate/licence.html).
10 *
11 * Ian Roberts, 03/Sep/2009
12 *
13 * $Id: DocumentProcessor.java 12082 2009-12-10 17:58:16Z ian_roberts $
14 */
15
16 package gate.util;
17
18 import gate.Document;
19 import gate.util.GateException;
20
21 /**
22 * Very simple interface for a component that processes GATE documents.
23 * Typical implementations of this interface would contain a Controller but the
24 * interface is deliberately generic.
25 */
26 public interface DocumentProcessor {
27 /**
28 * Process the given GATE document.
29 */
30 public void processDocument(Document doc) throws GateException;
31 }
|