Flag to control if keyword terms are allowed
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / CQLBooleanNode.java
index d5a81e8..18c0bff 100644 (file)
@@ -1,4 +1,3 @@
-// $Id: CQLBooleanNode.java,v 1.18 2007-07-03 16:03:00 mike Exp $
 
 package org.z3950.zing.cql;
 import java.util.List;
@@ -7,7 +6,6 @@ import java.util.Properties;
 /**
  * Represents a boolean node in a CQL parse-tree.
  *
- * @version    $Id: CQLBooleanNode.java,v 1.18 2007-07-03 16:03:00 mike Exp $
  */
 public abstract class CQLBooleanNode extends CQLNode {
 
@@ -16,7 +14,7 @@ public abstract class CQLBooleanNode extends CQLNode {
     /**
      * The root of a parse-tree representing the left-hand side.
      */
-    public CQLNode getLeft() {
+    public CQLNode getLeftOperand() {
         return left;
     }
 
@@ -25,11 +23,12 @@ public abstract class CQLBooleanNode extends CQLNode {
     /**
      * The root of a parse-tree representing the right-hand side.
      */
-    public CQLNode getRight() {
+    public CQLNode getRightOperand() {
         return right;
     }
 
     ModifierSet ms;
+
     /**
      * The set of modifiers that are applied to this boolean.
      */
@@ -48,7 +47,7 @@ public abstract class CQLBooleanNode extends CQLNode {
         List<CQLPrefix> prefixes, List<ModifierSet> sortkeys) {
        b.indent(level).append("<triple>\n");
         renderPrefixes(b, level + 1, prefixes);
-        ms.toXCQLInternal(b, level + 1, "boolean");
+        ms.toXCQLInternal(b, level + 1, "boolean", "value");
         b.indent(level + 1).append("<leftOperand>\n");
         left.toXCQLInternal(b, level + 2);
         b.indent(level + 1).append("</leftOperand>\n");