Term.java |
1 /* 2 * Term.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 * Rosen Marinov, 19/Apr/2002 12 * 13 */ 14 15 package gate.creole.ir; 16 17 /** This class represents pairs NAME-VALUE*/ 18 public class Term{ 19 20 /** Name */ 21 private String name; 22 /** Value*/ 23 private String value; 24 25 /** Constructor of the class. */ 26 public Term(String name, String value){ 27 this.name = name; 28 this.value = value; 29 } 30 31 /** @return String name*/ 32 public String getName(){ 33 return name; 34 } 35 36 /** @return String value*/ 37 public String getValue(){ 38 return value; 39 } 40 }