From d90bf698cbf07f0b2bcf4fc79357516e8bd934fd Mon Sep 17 00:00:00 2001 From: mike Date: Tue, 3 Jul 2007 13:41:24 +0000 Subject: [PATCH] Implement new, wider toXCQL() API. Render sort keys, if any. --- src/org/z3950/zing/cql/CQLTermNode.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/org/z3950/zing/cql/CQLTermNode.java b/src/org/z3950/zing/cql/CQLTermNode.java index 1d500a7..f9b17ac 100644 --- a/src/org/z3950/zing/cql/CQLTermNode.java +++ b/src/org/z3950/zing/cql/CQLTermNode.java @@ -1,4 +1,4 @@ -// $Id: CQLTermNode.java,v 1.27 2007-06-29 15:26:29 mike Exp $ +// $Id: CQLTermNode.java,v 1.28 2007-07-03 13:41:24 mike Exp $ package org.z3950.zing.cql; import java.util.Properties; @@ -12,7 +12,7 @@ import java.util.Vector; * these must be provided - you can't have an index without a * relation or vice versa. * - * @version $Id: CQLTermNode.java,v 1.27 2007-06-29 15:26:29 mike Exp $ + * @version $Id: CQLTermNode.java,v 1.28 2007-07-03 13:41:24 mike Exp $ */ public class CQLTermNode extends CQLNode { private String index; @@ -50,12 +50,14 @@ public class CQLTermNode extends CQLNode { return null; } - public String toXCQL(int level, Vector prefixes) { + public String toXCQL(int level, Vector prefixes, + Vector sortkeys) { return (indent(level) + "\n" + renderPrefixes(level+1, prefixes) + indent(level+1) + "" + xq(index) + "\n" + - relation.toXCQL(level+1, new Vector()) + + relation.toXCQL(level+1) + indent(level+1) + "" + xq(term) + "\n" + + renderSortKeys(level+1, sortkeys) + indent(level) + "\n"); } -- 1.7.10.4