FileDocCategorySizeDatePackage
SortSettings.javaAPI DocJava SE 5 API4248Fri Aug 26 14:55:40 BST 2005com.sun.org.apache.xalan.internal.xsltc.dom

SortSettings

public final class SortSettings extends Object
Class for carrying settings that are to be used for a particular set of xsl:sort elements.

Fields Summary
private AbstractTranslet
_translet
A reference to the translet object for the transformation.
private int[]
_sortOrders
The sort order (ascending or descending) for each level of xsl:sort
private int[]
_types
The type of comparison (text or number) for each level of xsl:sort
private Locale[]
_locales
The Locale for each level of xsl:sort, based on any lang attribute or the default Locale.
private Collator[]
_collators
The Collator object in effect for each level of xsl:sort
private String[]
_caseOrders
Case ordering for each level of xsl:sort.
Constructors Summary
SortSettings(AbstractTranslet translet, int[] sortOrders, int[] types, Locale[] locales, Collator[] collators, String[] caseOrders)
Create an instance of SortSettings.

param
translet {@link com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet} object for the transformation
param
sortOrders an array specifying the sort order for each sort level
param
types an array specifying the type of comparison for each sort level (text or number)
param
locales an array specifying the Locale for each sort level
param
collators an array specifying the Collation in effect for each sort level
param
caseOrders an array specifying whether upper-case, lower-case or neither is to take precedence for each sort level. The value of each element is equal to one of "upper-first", "lower-first", or "".

        _translet = translet;
        _sortOrders = sortOrders;
        _types = types;
        _locales = locales;
        _collators = collators;
        _caseOrders = caseOrders;
    
Methods Summary
java.lang.String[]getCaseOrders()

return
An array specifying the case ordering for each level of xsl:sort.

        return _caseOrders;
    
java.text.Collator[]getCollators()

return
An array containing the Collator object in effect for each level of xsl:sort

        return _collators;
    
java.util.Locale[]getLocales()

return
An array containing the Locale object in effect for each level of xsl:sort

        return _locales;
    
int[]getSortOrders()

return
An array containing the sort order (ascending or descending) for each level of xsl:sort

        return _sortOrders;
    
com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTransletgetTranslet()

return
A reference to the translet object for the transformation.

        return _translet;
    
int[]getTypes()

return
An array containing the type of comparison (text or number) to perform for each level of xsl:sort

        return _types;