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