From 7dc15a0a55020fbb6de478b2d34a14b3fa6bb641 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 29 Jun 2007 12:15:05 +0000 Subject: [PATCH] Throw away a lot of special-case code -- hurrah! :-) The base BooleanNode code covers pretty much everything now. --- src/org/z3950/zing/cql/CQLProxNode.java | 44 ++----------------------------- 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/src/org/z3950/zing/cql/CQLProxNode.java b/src/org/z3950/zing/cql/CQLProxNode.java index 0c0044d..0dbfb57 100644 --- a/src/org/z3950/zing/cql/CQLProxNode.java +++ b/src/org/z3950/zing/cql/CQLProxNode.java @@ -1,4 +1,4 @@ -// $Id: CQLProxNode.java,v 1.11 2007-06-29 11:56:06 mike Exp $ +// $Id: CQLProxNode.java,v 1.12 2007-06-29 12:15:05 mike Exp $ package org.z3950.zing.cql; import java.util.Vector; @@ -10,7 +10,7 @@ import java.util.Vector; * candidate records which are sufficiently close to each other, as * specified by a set of proximity parameters. * - * @version $Id: CQLProxNode.java,v 1.11 2007-06-29 11:56:06 mike Exp $ + * @version $Id: CQLProxNode.java,v 1.12 2007-06-29 12:15:05 mike Exp $ */ public class CQLProxNode extends CQLBooleanNode { /** @@ -20,46 +20,6 @@ public class CQLProxNode extends CQLBooleanNode { public CQLProxNode(CQLNode left, CQLNode right, ModifierSet ms) { super(left, right, ms); } - /** - * Creates a new, incomplete, proximity node with the - * specified left-hand side. No right-hand side is specified at - * this stage: that must be specified later, using the - * addSecondSubterm() method. (That may seem odd, but - * it's just easier to write the parser that way.) - *

- * Proximity paramaters may be added at any time, before or after - * the right-hand-side sub-tree is added. - */ - public CQLProxNode(CQLNode left) { - super(left, null, new ModifierSet("prox")); - // this.right left unresolved for now ... - } - - /** - * Sets the right-hand side of the proximity node whose - * left-hand-side was specified at creation time. - */ - public void addSecondSubterm(CQLNode right) { - this.right = right; - } - - /** - * Adds a modifier of the specified type, - * comparison and value to a proximity node. - */ - public void addModifier(String type, String comparison, String value) { - ms.addModifier(type, comparison, value); - } - - /** - * Returns an array of the modifiers associated with a proximity - * node. - * @return - * An array of Modifier objects. - */ - public Vector getModifiers() { - return ms.getModifiers(); - } String op() { return ms.toCQL(); -- 1.7.10.4