X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Forg%2Fz3950%2Fzing%2Fcql%2FCQLRelation.java;h=c34f67ba1a491af3811fd6e234749f1249f37f4a;hb=b53fe47e0bd5f0825b0d8ceeb33538e714bf9e7e;hp=6e4ec9b194c213e81bf94bf43d550e8e5adc56f1;hpb=55136632bf2d7d9a54fe08bbb89bed6c03eb70b1;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 6e4ec9b..c34f67b 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.15 2007-06-27 22:39:55 mike Exp $ +// $Id: CQLRelation.java,v 1.17 2007-06-29 10:23:02 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.15 2007-06-27 22:39:55 mike Exp $ + * @version $Id: CQLRelation.java,v 1.17 2007-06-29 10:23:02 mike Exp $ */ public class CQLRelation extends CQLNode { ModifierSet ms; @@ -21,6 +21,8 @@ public class CQLRelation extends CQLNode { * server-choice relation scr and profiled relations of * the form prefix.name. */ + // ### Seems wrong: a modifier set should not have a base, a + // relation should public CQLRelation(String base) { ms = new ModifierSet(base); } @@ -34,14 +36,14 @@ public class CQLRelation extends CQLNode { } /** - * Adds a new relation modifier to the specified CQLRelation. + * Sets the modifiers of the specified CQLRelation. * Typical relation modifiers include relevant, * fuzzy, stem and phonetic. On the * whole, these modifiers have a meaningful interpretation only * for the text relations. */ - public void addModifier(String modifier) { - ms.addModifier(modifier, null, null); + public void setModifiers(ModifierSet ms) { + this.ms = ms; } /**