X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Forg%2Fz3950%2Fzing%2Fcql%2FCQLGenerator.java;h=416b771000979c492ebd868c317c0baee7675c4b;hb=be0e0dd033d7bd419ee87286705365bacab9660a;hp=d16c9522cd76c9e8f07d47d1865cb18b300b3b95;hpb=d90bf698cbf07f0b2bcf4fc79357516e8bd934fd;p=cql-java-moved-to-github.git diff --git a/src/org/z3950/zing/cql/CQLGenerator.java b/src/org/z3950/zing/cql/CQLGenerator.java index d16c952..416b771 100644 --- a/src/org/z3950/zing/cql/CQLGenerator.java +++ b/src/org/z3950/zing/cql/CQLGenerator.java @@ -1,4 +1,4 @@ -// $Id: CQLGenerator.java,v 1.8 2007-06-29 10:24:24 mike Exp $ +// $Id: CQLGenerator.java,v 1.9 2007-07-03 15:41:35 mike Exp $ package org.z3950.zing.cql; import java.util.Properties; @@ -22,7 +22,7 @@ import java.io.FileNotFoundException; * this distribution - there is a generate_x() method * for each grammar element X. * - * @version $Id: CQLGenerator.java,v 1.8 2007-06-29 10:24:24 mike Exp $ + * @version $Id: CQLGenerator.java,v 1.9 2007-07-03 15:41:35 mike Exp $ * @see http://zing.z3950.org/cql/index.html */ @@ -141,9 +141,9 @@ public class CQLGenerator { // ### generate proximity nodes } else { switch (rnd.nextInt(3)) { - case 0: return new CQLAndNode(node1, node2, null); - case 1: return new CQLOrNode(node1, node2, null); - case 2: return new CQLNotNode(node1, node2, null); + case 0: return new CQLAndNode(node1, node2, new ModifierSet("and")); + case 1: return new CQLOrNode (node1, node2, new ModifierSet("or")); + case 2: return new CQLNotNode(node1, node2, new ModifierSet("not")); } }