01 /*
02 * NameBearer.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 * Valentin Tablan 21 Sep 2001
13 *
14 * $Id: AbstractNameBearer.java 12006 2009-12-01 17:24:28Z thomas_heitz $
15 */
16
17 package gate.util;
18
19 import java.io.Serializable;
20
21 public abstract class AbstractNameBearer implements Serializable {
22
23 static final long serialVersionUID = -3745118855639865521L;
24
25 /** Sets the name of this resource*/
26 public void setName(String name){
27 this.name = name;
28 }
29
30 /** Returns the name of this resource*/
31 public String getName(){
32 return name;
33 }
34
35 protected String name;
36 }
|