Index: Term.java
===================================================================
RCS file: /home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/index/Term.java,v
retrieving revision 1.3
diff -u -r1.3 Term.java
--- Term.java	15 Feb 2002 13:13:19 -0000	1.3
+++ Term.java	18 Nov 2002 18:05:10 -0000
@@ -62,7 +62,7 @@
   Note that terms may represent more than words from text fields, but also
   things like dates, email addresses, urls, etc.  */
 
-public final class Term implements java.io.Serializable {
+public class Term implements java.io.Serializable {
   String field;
   String text;
   
@@ -86,7 +86,7 @@
 
   /** Compares two terms, returning true iff they have the same
       field and text. */
-  public final boolean equals(Object o) {
+  public boolean equals(Object o) {
     if (o == null)
       return false;
     Term other = (Term)o;
@@ -103,7 +103,7 @@
     argument, and greater than zero iff this term belongs after the argument.
 
     The ordering of terms is first by field, then by text.*/
-  public final int compareTo(Term other) {
+  public int compareTo(Term other) {
     if (field == other.field)			  // fields are interned
       return text.compareTo(other.text);
     else
@@ -116,7 +116,7 @@
     text = txt;
   }
 
-  public final String toString() {
+  public String toString() {
     return "Term<" + field + ":" + text + ">";
   }
   
@@ -125,5 +125,12 @@
   {
       in.defaultReadObject();
       field = field.intern();
+  }
+  
+  public void prepare(IndexReader reader) {
+  }
+
+  public Term[] getTerms() {
+      return new Term[]{this};
   }
 }
