|
AbstractLanguageAnalyser |
|
1 /* 2 * AbstractLanguageAnalyser.java 3 * 4 * Copyright (c) 1998-2001, 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.2 2001/10/05 15:40:03 valyt Exp $ 14 */ 15 16 package gate.creole; 17 18 import java.util.*; 19 20 import gate.*; 21 import gate.util.*; 22 23 /** 24 * A parent implementation of language analysers with some default code. 25 */ 26 abstract public class AbstractLanguageAnalyser 27 extends AbstractProcessingResource 28 implements LanguageAnalyser 29 { 30 /** Set the document property for this analyser. */ 31 public void setDocument(Document document) { 32 this.document = document; 33 } // setDocument() 34 35 /** Get the document property for this analyser. */ 36 public Document getDocument() { 37 return document; 38 } // getDocument() 39 40 /** The document property for this analyser. */ 41 protected Document document; 42 43 /** Set the corpus property for this analyser. */ 44 public void setCorpus(Corpus corpus) { 45 this.corpus = corpus; 46 } // setCorpus() 47 48 /** Get the corpus property for this analyser. */ 49 public Corpus getCorpus() { 50 return corpus; 51 } // getCorpus() 52 53 /** The corpus property for this analyser. */ 54 protected Corpus corpus; 55 56 } // class AbstractLanguageAnalyser 57
|
AbstractLanguageAnalyser |
|