1 package com.icl.saxon.sort;2 3 // Copyright © International Computers Limited 19984 // See conditions of use5 6 /**7 * A Comparer used for comparing text keys8 *9 * @author Michael H. Kay (mhkay@iclway.co.uk)10 *11 */12 13 public abstract class TextComparer extends Comparer {14 15 public final static int DEFAULT_CASE_ORDER = 0;16 public final static int LOWERCASE_FIRST = 1;17 public final static int UPPERCASE_FIRST = 2;18 19 /**20 * Set case order21 * @param caseOrder one of DEFAULT_CASE_ORDER, LOWERCASE_FIRST, or UPPERCASE_FIRST.22 * Indicates whether upper case letters precede or follow lower case letters in the ordering23 * @return either this or a different Comparer that will be used to perform the comparisons.24 * This allows the TextComparer to delegate the comparison to a Comparer dedicated to a25 * specific case order.26 */27 28 public Comparer setCaseOrder(int caseOrder) {29 return this;30 }31 32 }33