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