1 // $Id: CQLNode.java,v 1.5 2002-10-27 00:46:25 mike Exp $
3 package org.z3950.zing.cql;
7 * Represents a node in a CQL parse-tree ...
10 * @version $Id: CQLNode.java,v 1.5 2002-10-27 00:46:25 mike Exp $
12 public abstract class CQLNode {
13 abstract String toXCQL(int level);
14 abstract String toCQL();
16 protected String indent(int level) {
24 protected String xq(String str) {
33 public static void main (String[] args) {
34 CQLNode n1 = new CQLTermNode("dc.author", "=", "kernighan");
35 CQLNode n2 = new CQLTermNode("dc.title", "all", "elements style");
36 CQLNode root = new CQLAndNode(n1, n2);
37 System.out.println(root.toXCQL(0));