1   /*
2    *  AbstractFeatureBearer.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, 15/Oct/2000
12   *
13   *  $Id: AbstractFeatureBearer.java,v 1.8 2005/01/11 13:51:37 ian Exp $
14   */
15  
16  package gate.util;
17  import java.io.Serializable;
18  
19  import gate.FeatureMap;
20  
21  /** A convenience implemetation of FeatureBearer.
22    * @see FeatureBearer
23    */
24  abstract public class AbstractFeatureBearer implements FeatureBearer, Serializable
25  {
26  
27    static final long serialVersionUID = -2962478253218344471L;
28  
29    /** Get the feature set */
30    public FeatureMap getFeatures() { return features; }
31  
32    /** Set the feature set */
33    public void setFeatures(FeatureMap features) { this.features = features; }
34  
35    /** The feature set */
36    protected FeatureMap features;
37  
38  } // class AbstractFeatureBearer
39