-// $Id: CQLTermNode.java,v 1.28 2007-07-03 13:41:24 mike Exp $
package org.z3950.zing.cql;
import java.util.ArrayList;
* these must be provided - you can't have an index without a
* relation or vice versa.
*
- * @version $Id: CQLTermNode.java,v 1.28 2007-07-03 13:41:24 mike Exp $
*/
public class CQLTermNode extends CQLNode {
private String index;
}
@Override
+ public void traverse(CQLNodeVisitor visitor) {
+ //we visit relation first to allow filtering on relation type in the visitor
+ relation.traverse(visitor);
+ visitor.onTermNode(this);
+ }
+
+ @Override
public String getResultSetName() {
if (isResultSetIndex(index))
return term;