X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Forg%2Fz3950%2Fzing%2Fcql%2FCQLNode.java;h=4a11592b8b6fc73104c207189c5a1113e4c160e7;hb=f3c88fe15ee06a671407a0368e449db991526802;hp=1eae518916ec5d7edcf2a106cd2fa48804590858;hpb=e57e14d4481428581265449445514fb426fbea45;p=cql-java-moved-to-github.git diff --git a/src/org/z3950/zing/cql/CQLNode.java b/src/org/z3950/zing/cql/CQLNode.java index 1eae518..4a11592 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.20 2002-12-11 17:14:20 mike Exp $ +// $Id: CQLNode.java,v 1.24 2007-06-06 13:19:28 mike Exp $ package org.z3950.zing.cql; import java.util.Properties; @@ -8,12 +8,24 @@ import java.util.Vector; /** * Represents a node in a CQL parse-tree. * - * @version $Id: CQLNode.java,v 1.20 2002-12-11 17:14:20 mike Exp $ + * @version $Id: CQLNode.java,v 1.24 2007-06-06 13:19:28 mike Exp $ */ public abstract class CQLNode { CQLNode() {} // prevent javadoc from documenting this /** + * Returns the name of the result-set to which this query is a + * reference, if and only if the entire query consists only of a + * result-set reference. If it's anything else, including a + * boolean combination of a result-set reference with something + * else, then null is returned instead. + * @return the name of the referenced result-set + */ + public String getResultSetName() { + return null; + } + + /** * Translates a parse-tree into an XCQL document. *
* @param level
@@ -26,10 +38,10 @@ public abstract class CQLNode {
* parse-tree whose root is this node.
*/
public String toXCQL(int level) {
- return toXCQL(level, new Vector());
+ return toXCQL(level, new Vector