| AbstractNameBearer.java |
1 /*
2 * NameBearer.java
3 *
4 * Copyright (c) 1998-2004, 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 * Valentin Tablan 21 Sep 2001
12 *
13 * $Id: AbstractNameBearer.java,v 1.3 2004/07/21 17:10:09 akshay Exp $
14 */
15
16 package gate.util;
17
18 import java.io.Serializable;
19
20 public abstract class AbstractNameBearer implements Serializable {
21
22 static final long serialVersionUID = -3745118855639865521L;
23
24 /** Sets the name of this resource*/
25 public void setName(String name){
26 this.name = name;
27 }
28
29 /** Returns the name of this resource*/
30 public String getName(){
31 return name;
32 }
33
34 protected String name;
35 }