LanguageAnalyser.java
01 /*
02  *  Copyright (c) 1995-2010, The University of Sheffield. See the file
03  *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
04  *
05  *  This file is part of GATE (see http://gate.ac.uk/), and is free
06  *  software, licenced under the GNU Library General Public License,
07  *  Version 2, June 1991 (in the distribution as file licence.html,
08  *  and also available at http://gate.ac.uk/gate/licence.html).
09  *
10  *  Valentin Tablan 05/10/2001
11  *
12  *  $Id: LanguageAnalyser.java 12006 2009-12-01 17:24:28Z thomas_heitz $
13  *
14  */
15 
16 
17 package gate;
18 
19 import gate.creole.metadata.CreoleParameter;
20 import gate.creole.metadata.CreoleResource;
21 import gate.creole.metadata.RunTime;
22 
23 /**
24  * A special type of {@link ProcessingResource} that processes {@link Document}s
25  */
26 @CreoleResource(name = "Language analyser",
27         comment = "A processing resource that takes document and corpus parameters")
28 public interface LanguageAnalyser extends ProcessingResource {
29 
30   /** Set the document property for this analyser. */
31   @RunTime
32   @CreoleParameter(comment = "The document to process")
33   public void setDocument(Document document);
34 
35   /** Get the document property for this analyser. */
36   public Document getDocument();
37 
38   /** Set the corpus property for this analyser. */
39   @RunTime
40   @CreoleParameter(comment = "The corpus containing the document to process")
41   public void setCorpus(Corpus corpus);
42 
43   /** Get the corpus property for this analyser. */
44   public Corpus getCorpus();
45 }