-// $Id: CQLGenerator.java,v 1.7 2007-06-27 22:39:55 mike Exp $
+// $Id: CQLGenerator.java,v 1.8 2007-06-29 10:24:24 mike Exp $
package org.z3950.zing.cql;
import java.util.Properties;
* this distribution - there is a <TT>generate_<I>x</I>()</TT> method
* for each grammar element <I>X</I>.
*
- * @version $Id: CQLGenerator.java,v 1.7 2007-06-27 22:39:55 mike Exp $
+ * @version $Id: CQLGenerator.java,v 1.8 2007-06-29 10:24:24 mike Exp $
* @see <A href="http://zing.z3950.org/cql/index.html"
* >http://zing.z3950.org/cql/index.html</A>
*/
// ### generate proximity nodes
} else {
switch (rnd.nextInt(3)) {
- case 0: return new CQLAndNode(node1, node2);
- case 1: return new CQLOrNode(node1, node2);
- case 2: return new CQLNotNode(node1, node2);
+ case 0: return new CQLAndNode(node1, node2, null);
+ case 1: return new CQLOrNode(node1, node2, null);
+ case 2: return new CQLNotNode(node1, node2, null);
}
}