From: mike Date: Fri, 11 Apr 2008 12:05:15 +0000 (+0000) Subject: Add getSortIndexes() as suggested by Marcel Versteeg X-Git-Tag: v1.5~36 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=a1fc697ceb8150ee4745f5dac91b5c1d00a092d7;p=cql-java-moved-to-github.git Add getSortIndexes() as suggested by Marcel Versteeg --- 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)