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