01 /*
02 * AbstractLanguageAnalyser.java
03 *
04 * Copyright (c) 1995-2010, The University of Sheffield. See the file
05 * COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
06 *
07 * This file is part of GATE (see http://gate.ac.uk/), and is free
08 * software, licenced under the GNU Library General Public License,
09 * Version 2, June 1991 (in the distribution as file licence.html,
10 * and also available at http://gate.ac.uk/gate/licence.html).
11 *
12 * Hamish Cunningham, 13/Nov/2000
13 *
14 * $Id: AbstractLanguageAnalyser.java 12006 2009-12-01 17:24:28Z thomas_heitz $
15 */
16
17 package gate.creole;
18
19 import gate.*;
20
21 /**
22 * A parent implementation of language analysers with some default code.
23 */
24 abstract public class AbstractLanguageAnalyser
25 extends AbstractProcessingResource
26 implements LanguageAnalyser
27 {
28 /** Set the document property for this analyser. */
29 public void setDocument(Document document) {
30 this.document = document;
31 } // setDocument()
32
33 /** Get the document property for this analyser. */
34 public Document getDocument() {
35 return document;
36 } // getDocument()
37
38 /** The document property for this analyser. */
39 protected Document document;
40
41 /** Set the corpus property for this analyser. */
42 public void setCorpus(Corpus corpus) {
43 this.corpus = corpus;
44 } // setCorpus()
45
46 /** Get the corpus property for this analyser. */
47 public Corpus getCorpus() {
48 return corpus;
49 } // getCorpus()
50
51 /** The corpus property for this analyser. */
52 protected Corpus corpus;
53
54 } // class AbstractLanguageAnalyser
|