Simplify.
[cql-java-moved-to-github.git] / src / org / z3950 / zing / cql / Modifier.java
index 00c1a89..4992b25 100644 (file)
@@ -1,4 +1,4 @@
-// $Id: Modifier.java,v 1.1 2007-06-27 17:01:23 mike Exp $
+// $Id: Modifier.java,v 1.4 2007-07-03 13:29:34 mike Exp $
 
 package org.z3950.zing.cql;
 import java.util.Vector;
@@ -12,7 +12,7 @@ import java.lang.StringBuffer;
  * <P>
  * This class is used only by ModifierSet.
  *
- * @version $Id: Modifier.java,v 1.1 2007-06-27 17:01:23 mike Exp $
+ * @version $Id: Modifier.java,v 1.4 2007-07-03 13:29:34 mike Exp $
  */
 public class Modifier {
     String type;
@@ -27,14 +27,16 @@ public class Modifier {
        this.type = type;
        this.comparison = comparison;
        this.value = value;
+       //System.err.println("Made new modifier with " + "type='" + type + "', " + "comparison='" + comparison + "', " + "value='" + value + "',\n");
     }
 
     /**
-     * Creates a new Modifier with the specified value but no
+     * Creates a new Modifier with the specified type but no
      * comparison or value.
      */
-    public Modifier(String value) {
-       this.value = value;
+    public Modifier(String type) {
+       this.type = type;
+       //System.err.println("Made new modifier of type '" + type + "'\n");
     }
 
     /**
@@ -77,7 +79,6 @@ public class Modifier {
 
     public String toCQL() {
        StringBuffer buf = new StringBuffer(type);
-
        if (value != null)
            buf.append(" " + comparison + " " + value);