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