From be0e0dd033d7bd419ee87286705365bacab9660a Mon Sep 17 00:00:00 2001 From: mike Date: Tue, 3 Jul 2007 15:41:35 +0000 Subject: [PATCH] Boolean nodes are generated with an appropriate ModifierSet. It's horribly wrong that the MSs need to know the name of the boolean. --- src/org/z3950/zing/cql/CQLGenerator.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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")); } } -- 1.7.10.4