|
DocumentData |
|
1 /* 2 * DocumentData.java 3 * 4 * Copyright (c) 1998-2002, 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 * Marin Dimitrov, 05/Mar/2002 12 * 13 * $Id: DocumentData.java,v 1.2 2002/03/05 18:29:18 marin Exp $ 14 */ 15 16 package gate.corpora; 17 18 import java.io.*; 19 20 public class DocumentData implements Serializable { 21 22 //fix the ID for serialisation 23 static final long serialVersionUID = 4192762901421847525L; 24 25 public DocumentData(String name, Object ID){ 26 docName = name; 27 persistentID = ID; 28 } 29 30 public String getDocumentName() { 31 return docName; 32 } 33 34 public Object getPersistentID() { 35 return persistentID; 36 } 37 38 public void setPersistentID(Object newID) { 39 persistentID = newID; 40 } 41 42 public String toString() { 43 return new String("DocumentData: " + docName + ", " + persistentID); 44 } 45 46 String docName; 47 Object persistentID; 48 } 49 50
|
DocumentData |
|