1 // $Id: CQLRelation.java,v 1.5 2002-11-06 20:13:45 mike Exp $
3 package org.z3950.zing.cql;
4 import java.util.Vector;
5 import java.util.Properties;
6 import java.lang.StringBuffer;
9 * Represents a relation between a CQL qualifier and term.
11 * @version $Id: CQLRelation.java,v 1.5 2002-11-06 20:13:45 mike Exp $
13 public class CQLRelation extends CQLNode {
16 public CQLRelation(String base) {
17 ms = new ModifierSet(base);
20 public String getBase() {
24 public void addModifier(String modifier) {
25 ms.addModifier(null, modifier);
28 public String[] getModifiers() {
29 Vector[] v = ms.getModifiers();
31 String[] s = new String[n];
32 for (int i = 0; i < n; i++) {
33 s[i] = (String) v[i].get(1);
38 public String toXCQL(int level) {
39 return ms.toXCQL(level, "relation");
42 public String toCQL() {
46 public String toPQF(Properties config) throws PQFTranslationException {
47 throw new Error("CQLRelation.toPQF() can never be called");