X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fz3950%2Fzing%2Fcql%2FCQLPrefixNode.java;h=eed3d34b52d6d886bccbe15bf4c0a67b146618c5;hb=64ca1306b4e0d55a8b15b8da982bc1d37bc8b63c;hp=10cff1a9d545783e2d6bb0c4ac14bef64b30dd04;hpb=41fcd9c3be17618728c4f175e4cb65ed61421447;p=cql-java-moved-to-github.git diff --git a/src/main/java/org/z3950/zing/cql/CQLPrefixNode.java b/src/main/java/org/z3950/zing/cql/CQLPrefixNode.java index 10cff1a..eed3d34 100644 --- a/src/main/java/org/z3950/zing/cql/CQLPrefixNode.java +++ b/src/main/java/org/z3950/zing/cql/CQLPrefixNode.java @@ -1,9 +1,9 @@ // $Id: CQLPrefixNode.java,v 1.10 2007-07-03 16:40:11 mike Exp $ package org.z3950.zing.cql; -import java.lang.String; +import java.util.ArrayList; +import java.util.List; import java.util.Properties; -import java.util.Vector; /** @@ -41,15 +41,17 @@ public class CQLPrefixNode extends CQLNode { this.subtree = subtree; } - public String toXCQL(int level, Vector prefixes, - Vector sortkeys) { - Vector tmp = (prefixes == null ? - new Vector() : - new Vector(prefixes)); + @Override + void toXCQLInternal(XCQLBuilder b, int level, List prefixes, + List sortkeys) { + List tmp = (prefixes == null ? + new ArrayList() : + new ArrayList(prefixes)); tmp.add(prefix); - return subtree.toXCQL(level, tmp, sortkeys); + subtree.toXCQLInternal(b, level, tmp, sortkeys); } + @Override public String toCQL() { // ### We don't always need parens around the subtree if (prefix.name == null) { @@ -61,6 +63,7 @@ public class CQLPrefixNode extends CQLNode { } } + @Override public String toPQF(Properties config) throws PQFTranslationException { // Prefixes and their identifiers don't actually play any role // in PQF translation, since the meanings of the indexes, @@ -69,6 +72,7 @@ public class CQLPrefixNode extends CQLNode { return subtree.toPQF(config); } + @Override public byte[] toType1BER(Properties config) throws PQFTranslationException { // See comment on toPQF() return subtree.toType1BER(config);