X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Forg%2Fz3950%2Fzing%2Fcql%2FCQLProxNode.java;h=244cf9c9c01d71925c4aafa136b13302bca8d3da;hb=af923f9b50aecdbf896af612e733817f96c4388a;hp=9c7dff9ba9b7d953bfcdb50064fc5315dfd87c99;hpb=f8f333c94f7654313b529a6e879b5d23364c34e3;p=cql-java-moved-to-github.git diff --git a/src/org/z3950/zing/cql/CQLProxNode.java b/src/org/z3950/zing/cql/CQLProxNode.java index 9c7dff9..244cf9c 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.7 2002-12-05 17:14:52 mike Exp $ +// $Id: CQLProxNode.java,v 1.9 2007-06-27 22:15:04 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.7 2002-12-05 17:14:52 mike Exp $ + * @version $Id: CQLProxNode.java,v 1.9 2007-06-27 22:15:04 mike Exp $ */ public class CQLProxNode extends CQLBooleanNode { ModifierSet ms; @@ -40,30 +40,20 @@ public class CQLProxNode extends CQLBooleanNode { } /** - * Adds a modifier of the specified type and - * value to a proximity node. Valid types are - * relation, distance, unit and - * ordering. - *

- * For information on the semantics of these paramaters, see - * section 3.1 (Proximity) of - * A Gentle Introduction to CQL. + * Adds a modifier of the specified type, + * comparison and value to a proximity node. */ - public void addModifier(String type, String value) { - ms.addModifier(type, value); + 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 modifiers, each represented by a two-element - * Vector, in which element 0 is the modifier type - * (e.g. distance or ordering) and element 1 is - * the associated value (e.g. 3 or unordered). + * An array of Modifier objects. */ - public Vector[] getModifiers() { + public Vector getModifiers() { return ms.getModifiers(); }