From: mike Date: Fri, 25 Oct 2002 16:01:26 +0000 (+0000) Subject: Make classes public. X-Git-Tag: v1.5~263 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=437ea0b3a09e884447853d42f879010cd0cc391e;p=cql-java-moved-to-github.git Make classes public. --- diff --git a/src/org/z3950/zing/cql/CQLAndNode.java b/src/org/z3950/zing/cql/CQLAndNode.java index 170b76d..f46456d 100644 --- a/src/org/z3950/zing/cql/CQLAndNode.java +++ b/src/org/z3950/zing/cql/CQLAndNode.java @@ -1,4 +1,4 @@ -// $Id: CQLAndNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $ +// $Id: CQLAndNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $ package org.z3950.zing.cql; @@ -7,9 +7,9 @@ package org.z3950.zing.cql; * Represents an AND node in a CQL parse-tree ... * ### * - * @version $Id: CQLAndNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $ + * @version $Id: CQLAndNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $ */ -class CQLAndNode extends CQLBooleanNode { +public class CQLAndNode extends CQLBooleanNode { public CQLAndNode(CQLNode left, CQLNode right) { this.left = left; this.right = right; diff --git a/src/org/z3950/zing/cql/CQLNode.java b/src/org/z3950/zing/cql/CQLNode.java index 8811e94..10bd282 100644 --- a/src/org/z3950/zing/cql/CQLNode.java +++ b/src/org/z3950/zing/cql/CQLNode.java @@ -1,4 +1,4 @@ -// $Id: CQLNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $ +// $Id: CQLNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $ package org.z3950.zing.cql; @@ -7,9 +7,9 @@ package org.z3950.zing.cql; * Represents a node in a CQL parse-tree ... * ### * - * @version $Id: CQLNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $ + * @version $Id: CQLNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $ */ -abstract class CQLNode { +public abstract class CQLNode { abstract String toXCQL(int level); abstract String toCQL(); @@ -21,6 +21,7 @@ abstract class CQLNode { return x; } + /* // Test harness public static void main (String[] args) { CQLNode n1 = new CQLTermNode("dc.author", "=", "kernighan"); @@ -28,4 +29,5 @@ abstract class CQLNode { CQLNode root = new CQLAndNode(n1, n2); System.out.println(root.toXCQL(3)); } + */ } diff --git a/src/org/z3950/zing/cql/CQLNotNode.java b/src/org/z3950/zing/cql/CQLNotNode.java index fa48591..3aa3ced 100644 --- a/src/org/z3950/zing/cql/CQLNotNode.java +++ b/src/org/z3950/zing/cql/CQLNotNode.java @@ -1,4 +1,4 @@ -// $Id: CQLNotNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $ +// $Id: CQLNotNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $ package org.z3950.zing.cql; @@ -7,9 +7,9 @@ package org.z3950.zing.cql; * Represents a NOT node in a CQL parse-tree ... * ### * - * @version $Id: CQLNotNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $ + * @version $Id: CQLNotNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $ */ -class CQLNotNode extends CQLBooleanNode { +public class CQLNotNode extends CQLBooleanNode { public CQLNotNode(CQLNode left, CQLNode right) { this.left = left; this.right = right; diff --git a/src/org/z3950/zing/cql/CQLOrNode.java b/src/org/z3950/zing/cql/CQLOrNode.java index 06b8b6d..39e8a52 100644 --- a/src/org/z3950/zing/cql/CQLOrNode.java +++ b/src/org/z3950/zing/cql/CQLOrNode.java @@ -1,4 +1,4 @@ -// $Id: CQLOrNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $ +// $Id: CQLOrNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $ package org.z3950.zing.cql; @@ -7,9 +7,9 @@ package org.z3950.zing.cql; * Represents an OR node in a CQL parse-tree ... * ### * - * @version $Id: CQLOrNode.java,v 1.1 2002-10-25 07:38:16 mike Exp $ + * @version $Id: CQLOrNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $ */ -class CQLOrNode extends CQLBooleanNode { +public class CQLOrNode extends CQLBooleanNode { public CQLOrNode(CQLNode left, CQLNode right) { this.left = left; this.right = right; diff --git a/src/org/z3950/zing/cql/CQLParser.java b/src/org/z3950/zing/cql/CQLParser.java index 0e68a27..0684993 100644 --- a/src/org/z3950/zing/cql/CQLParser.java +++ b/src/org/z3950/zing/cql/CQLParser.java @@ -1,4 +1,4 @@ -// $Id: CQLParser.java,v 1.4 2002-10-25 07:38:16 mike Exp $ +// $Id: CQLParser.java,v 1.5 2002-10-25 16:01:26 mike Exp $ package org.z3950.zing.cql; import java.util.Properties; @@ -13,11 +13,11 @@ import java.io.StreamTokenizer; * Compiles a CQL string into a parse tree ... * ### * - * @version $Id: CQLParser.java,v 1.4 2002-10-25 07:38:16 mike Exp $ + * @version $Id: CQLParser.java,v 1.5 2002-10-25 16:01:26 mike Exp $ * @see http://zing.z3950.org/cql/index.html */ -class CQLParser { +public class CQLParser { private String cql; private StreamTokenizer st; diff --git a/src/org/z3950/zing/cql/CQLTermNode.java b/src/org/z3950/zing/cql/CQLTermNode.java index b12883e..625aab0 100644 --- a/src/org/z3950/zing/cql/CQLTermNode.java +++ b/src/org/z3950/zing/cql/CQLTermNode.java @@ -1,4 +1,4 @@ -// $Id: CQLTermNode.java,v 1.1 2002-10-25 07:38:17 mike Exp $ +// $Id: CQLTermNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $ package org.z3950.zing.cql; @@ -7,9 +7,9 @@ package org.z3950.zing.cql; * Represents a terminal node in a CQL parse-tree ... * ### * - * @version $Id: CQLTermNode.java,v 1.1 2002-10-25 07:38:17 mike Exp $ + * @version $Id: CQLTermNode.java,v 1.2 2002-10-25 16:01:26 mike Exp $ */ -class CQLTermNode extends CQLNode { +public class CQLTermNode extends CQLNode { private String qualifier; private String relation; private String value;