X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fz3950%2Fzing%2Fcql%2FCQLRelation.java;h=351d8d472f02d17369f134d38ef7dbae426bc11c;hb=64ca1306b4e0d55a8b15b8da982bc1d37bc8b63c;hp=95eb303f00adeb9c3fb28c7f8a7b88c24ecad604;hpb=41fcd9c3be17618728c4f175e4cb65ed61421447;p=cql-java-moved-to-github.git diff --git a/src/main/java/org/z3950/zing/cql/CQLRelation.java b/src/main/java/org/z3950/zing/cql/CQLRelation.java index 95eb303..351d8d4 100644 --- a/src/main/java/org/z3950/zing/cql/CQLRelation.java +++ b/src/main/java/org/z3950/zing/cql/CQLRelation.java @@ -1,9 +1,8 @@ // $Id: CQLRelation.java,v 1.19 2007-07-03 13:40:58 mike Exp $ package org.z3950.zing.cql; -import java.util.Vector; +import java.util.List; import java.util.Properties; -import java.lang.StringBuffer; /** * Represents a relation between a CQL index and term. @@ -40,25 +39,29 @@ public class CQLRelation extends CQLNode { * @return * An array of Modifier objects. */ - public Vector getModifiers() { + public List getModifiers() { return ms.getModifiers(); } - public String toXCQL(int level, Vector prefixes, Vector sortkeys) { + @Override + void toXCQLInternal(XCQLBuilder b, int level, List prefixes, + List sortkeys) { if (sortkeys != null) throw new Error("CQLRelation.toXCQL() called with sortkeys"); - - return ms.toXCQL(level, "relation"); + ms.toXCQLInternal(b, level, "relation"); } + @Override public String toCQL() { return ms.toCQL(); } + @Override public String toPQF(Properties config) throws PQFTranslationException { throw new Error("CQLRelation.toPQF() can never be called"); } + @Override public byte[] toType1BER(Properties config) { throw new Error("CQLRelation.toType1BER() can never be called"); }