projects
/
cql-java-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ade7f9
)
PrefixNode propagates sort keys.
author
mike
<mike>
Tue, 3 Jul 2007 16:40:11 +0000
(16:40 +0000)
committer
mike
<mike>
Tue, 3 Jul 2007 16:40:11 +0000
(16:40 +0000)
src/org/z3950/zing/cql/CQLPrefixNode.java
patch
|
blob
|
history
diff --git
a/src/org/z3950/zing/cql/CQLPrefixNode.java
b/src/org/z3950/zing/cql/CQLPrefixNode.java
index
aae6038
..
dd01d85
100644
(file)
--- a/
src/org/z3950/zing/cql/CQLPrefixNode.java
+++ b/
src/org/z3950/zing/cql/CQLPrefixNode.java
@@
-1,4
+1,4
@@
-// $Id: CQLPrefixNode.java,v 1.9 2007-07-03 13:40:41 mike Exp $
+// $Id: CQLPrefixNode.java,v 1.10 2007-07-03 16:40:11 mike Exp $
package org.z3950.zing.cql;
import java.lang.String;
package org.z3950.zing.cql;
import java.lang.String;
@@
-9,7
+9,7
@@
import java.util.Vector;
/**
* Represents a prefix node in a CQL parse-tree.
*
/**
* Represents a prefix node in a CQL parse-tree.
*
- * @version $Id: CQLPrefixNode.java,v 1.9 2007-07-03 13:40:41 mike Exp $
+ * @version $Id: CQLPrefixNode.java,v 1.10 2007-07-03 16:40:11 mike Exp $
*/
public class CQLPrefixNode extends CQLNode {
/**
*/
public class CQLPrefixNode extends CQLNode {
/**
@@
-35,14
+35,11
@@
public class CQLPrefixNode extends CQLNode {
public String toXCQL(int level, Vector<CQLPrefix> prefixes,
Vector<ModifierSet> sortkeys) {
public String toXCQL(int level, Vector<CQLPrefix> prefixes,
Vector<ModifierSet> sortkeys) {
- if (sortkeys != null)
- throw new Error("CQLPrefixNode.toXCQL() called with sortkeys");
-
Vector<CQLPrefix> tmp = (prefixes == null ?
new Vector<CQLPrefix>() :
new Vector<CQLPrefix>(prefixes));
tmp.add(prefix);
Vector<CQLPrefix> tmp = (prefixes == null ?
new Vector<CQLPrefix>() :
new Vector<CQLPrefix>(prefixes));
tmp.add(prefix);
- return subtree.toXCQL(level, tmp);
+ return subtree.toXCQL(level, tmp, sortkeys);
}
public String toCQL() {
}
public String toCQL() {