X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Forg%2Fz3950%2Fzing%2Fcql%2FCQLRelation.java;h=570afffd94d906969e9b29c4f37ed1bffc7b5eb0;hb=af9fc1ccd0a8d9048d0b469a72b11bead020b719;hp=c34f67ba1a491af3811fd6e234749f1249f37f4a;hpb=af923f9b50aecdbf896af612e733817f96c4388a;p=cql-java-moved-to-github.git
diff --git a/src/org/z3950/zing/cql/CQLRelation.java b/src/org/z3950/zing/cql/CQLRelation.java
index c34f67b..570afff 100644
--- a/src/org/z3950/zing/cql/CQLRelation.java
+++ b/src/org/z3950/zing/cql/CQLRelation.java
@@ -1,4 +1,4 @@
-// $Id: CQLRelation.java,v 1.17 2007-06-29 10:23:02 mike Exp $
+// $Id: CQLRelation.java,v 1.19 2007-07-03 13:40:58 mike Exp $
package org.z3950.zing.cql;
import java.util.Vector;
@@ -8,7 +8,7 @@ import java.lang.StringBuffer;
/**
* Represents a relation between a CQL index and term.
*
- * @version $Id: CQLRelation.java,v 1.17 2007-06-29 10:23:02 mike Exp $
+ * @version $Id: CQLRelation.java,v 1.19 2007-07-03 13:40:58 mike Exp $
*/
public class CQLRelation extends CQLNode {
ModifierSet ms;
@@ -18,7 +18,7 @@ public class CQLRelation extends CQLNode {
* Typical base relations include the usual six ordering relations
* (<=, >, etc.), the text
* relations any, all and exact, the
- * server-choice relation scr and profiled relations of
+ * old server-choice relation scr and profiled relations of
* the form prefix.name.
*/
// ### Seems wrong: a modifier set should not have a base, a
@@ -55,7 +55,10 @@ public class CQLRelation extends CQLNode {
return ms.getModifiers();
}
- public String toXCQL(int level, Vector prefixes) {
+ public String toXCQL(int level, Vector prefixes, Vector sortkeys) {
+ if (sortkeys != null)
+ throw new Error("CQLRelation.toXCQL() called with sortkeys");
+
return ms.toXCQL(level, "relation");
}