class FilterToCQL implements FilterVisitor, ExpressionVisitor {

    private StringBuffer after( PropertyIsGreaterThan filter, StringBuffer output ){
        LOGGER.finer("exporting AFTER");
        
        Object expr1 = filter.getExpression1();
        if( expr1 instanceof PropertyName){
        	PropertyName propertyName = (PropertyName) expr1;
        	propertyName.accept(this, output);
        	output.append(" AFTER ");
            filter.getExpression2().accept(this, output);        
        }else { 
        	PropertyName propertyName = (PropertyName) filter.getExpression2();
            propertyName.accept(this, output);
            output.append(" BEFORE ");
            filter.getExpression1().accept(this, output);        
        }
        return output;
        
    }

}