-// $Id: CQLProxNode.java,v 1.7 2002-12-05 17:14:52 mike Exp $
+// $Id: CQLProxNode.java,v 1.8 2007-06-27 17:02:01 mike Exp $
package org.z3950.zing.cql;
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.8 2007-06-27 17:02:01 mike Exp $
*/
public class CQLProxNode extends CQLBooleanNode {
ModifierSet ms;
* Returns an array of the modifiers associated with a proximity
* node.
* @return
- * An array of modifiers, each represented by a two-element
- * <TT>Vector</TT>, in which element 0 is the modifier type
- * (e.g. <TT>distance</TT> or <TT>ordering</TT>) and element 1 is
- * the associated value (e.g. <TT>3</TT> or <TT>unordered</TT>).
+ * An array of Modifier objects.
*/
- public Vector[] getModifiers() {
+ public Vector<Modifier> getModifiers() {
return ms.getModifiers();
}
-// $Id: CQLRelation.java,v 1.11 2003-09-04 21:56:46 mike Exp $
+// $Id: CQLRelation.java,v 1.12 2007-06-27 17:03:17 mike Exp $
package org.z3950.zing.cql;
import java.util.Vector;
/**
* Represents a relation between a CQL qualifier and term.
*
- * @version $Id: CQLRelation.java,v 1.11 2003-09-04 21:56:46 mike Exp $
+ * @version $Id: CQLRelation.java,v 1.12 2007-06-27 17:03:17 mike Exp $
*/
public class CQLRelation extends CQLNode {
ModifierSet ms;
/**
* Returns an array of the modifiers associated with a CQLRelation.
* @return
- * An array of zero or more <TT>String</TT>s, each representing a
- * modifier associated with the specified CQLRelation.
+ * An array of Modifier objects.
*/
- public String[] getModifiers() {
- Vector[] v = ms.getModifiers();
- int n = v.length;
- String[] s = new String[n];
- for (int i = 0; i < n; i++) {
- s[i] = (String) v[i].get(1);
- }
- return s;
+ public Vector<Modifier> getModifiers() {
+ return ms.getModifiers();
}
public String toXCQL(int level, Vector prefixes) {