-// $Id: CQLParser.java,v 1.27 2007-06-27 22:39:55 mike Exp $
+// $Id: CQLParser.java,v 1.28 2007-06-27 22:44:40 mike Exp $
package org.z3950.zing.cql;
import java.io.IOException;
/**
* Compiles CQL strings into parse trees of CQLNode subtypes.
*
- * @version $Id: CQLParser.java,v 1.27 2007-06-27 22:39:55 mike Exp $
+ * @version $Id: CQLParser.java,v 1.28 2007-06-27 22:44:40 mike Exp $
* @see <A href="http://zing.z3950.org/cql/index.html"
* >http://zing.z3950.org/cql/index.html</A>
*/
} catch (IOException ex) {
System.err.println("Can't render query: " + ex.getMessage());
System.exit(5);
- } catch (UnknownQualifierException ex) {
+ } catch (UnknownIndexException ex) {
System.err.println("Unknown index: " + ex.getMessage());
System.exit(6);
} catch (UnknownRelationException ex) {
-// $Id: CQLTermNode.java,v 1.25 2007-06-27 22:39:55 mike Exp $
+// $Id: CQLTermNode.java,v 1.26 2007-06-27 22:44:40 mike Exp $
package org.z3950.zing.cql;
import java.util.Properties;
* these must be provided - you can't have an index without a
* relation or vice versa.
*
- * @version $Id: CQLTermNode.java,v 1.25 2007-06-27 22:39:55 mike Exp $
+ * @version $Id: CQLTermNode.java,v 1.26 2007-06-27 22:44:40 mike Exp $
*/
public class CQLTermNode extends CQLNode {
private String index;
}
public String getIndex() { return index; }
- public String getQualifier() { return getIndex(); } // for legacy applications
public CQLRelation getRelation() { return relation; }
public String getTerm() { return term; }
attr = config.getProperty("index." + index);
if (attr == null)
- throw new UnknownQualifierException(index);
+ throw new UnknownIndexException(index);
attrs.add(attr);
String rel = relation.getBase();
-# $Id: Makefile,v 1.15 2007-06-27 17:01:47 mike Exp $
+# $Id: Makefile,v 1.16 2007-06-27 22:44:40 mike Exp $
#
# Your Java compiler will require that this source directory is on the
# classpath. The best way to do that is just to add the CQL-Java
CQLParser.class CQLLexer.class CQLGenerator.class \
CQLParseException.class MissingParameterException.class \
PQFTranslationException.class \
- UnknownQualifierException.class UnknownRelationException.class \
+ UnknownIndexException.class UnknownRelationException.class \
UnknownRelationModifierException.class UnknownPositionException.class
../../../../../lib/cql-java.jar: $(OBJ)
-// $Id: UnknownIndexException.java,v 1.1 2007-06-27 22:41:41 mike Exp $
+// $Id: UnknownIndexException.java,v 1.2 2007-06-27 22:44:40 mike Exp $
package org.z3950.zing.cql;
import java.lang.Exception;
* that, because the PQF configuration doesn't know about a relation,
* we throw one of these babies.
*
- * @version $Id: UnknownIndexException.java,v 1.1 2007-06-27 22:41:41 mike Exp $
+ * @version $Id: UnknownIndexException.java,v 1.2 2007-06-27 22:44:40 mike Exp $
*/
-public class UnknownQualifierException extends PQFTranslationException {
+public class UnknownIndexException extends PQFTranslationException {
/**
- * Creates a new <TT>UnknownQualifierException</TT>.
+ * Creates a new <TT>UnknownIndexException</TT>.
* @param s
* The index for which there was no PQF configuration.
*/
- public UnknownQualifierException(String s) {
+ public UnknownIndexException(String s) {
super(s);
}
}