From a1fc697ceb8150ee4745f5dac91b5c1d00a092d7 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 11 Apr 2008 12:05:15 +0000 Subject: [PATCH] Add getSortIndexes() as suggested by Marcel Versteeg --- src/org/z3950/zing/cql/CQLSortNode.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/org/z3950/zing/cql/CQLSortNode.java b/src/org/z3950/zing/cql/CQLSortNode.java index bdcc7d2..6e7f21d 100644 --- a/src/org/z3950/zing/cql/CQLSortNode.java +++ b/src/org/z3950/zing/cql/CQLSortNode.java @@ -1,4 +1,4 @@ -// $Id: CQLSortNode.java,v 1.1 2007-07-03 12:55:56 mike Exp $ +// $Id: CQLSortNode.java,v 1.2 2008-04-11 12:05:15 mike Exp $ package org.z3950.zing.cql; import java.util.Properties; @@ -8,7 +8,7 @@ import java.util.Vector; /** * Represents a sort node in a CQL parse-tree. * - * @version $Id: CQLSortNode.java,v 1.1 2007-07-03 12:55:56 mike Exp $ + * @version $Id: CQLSortNode.java,v 1.2 2008-04-11 12:05:15 mike Exp $ */ public class CQLSortNode extends CQLNode { /** @@ -33,6 +33,10 @@ public class CQLSortNode extends CQLNode { keys.add(key); } + public Vector getSortIndexes() { + return keys; + } + public String toXCQL(int level, Vector prefixes, Vector sortkeys) { if (sortkeys != null) -- 1.7.10.4