org.apache.xalan.xsltc.dom
Class SortSettings

java.lang.Object
  extended by org.apache.xalan.xsltc.dom.SortSettings

final class SortSettings
extends java.lang.Object

Class for carrying settings that are to be used for a particular set of xsl:sort elements.


Field Summary
private  java.lang.String[] _caseOrders
          Case ordering for each level of xsl:sort.
private  java.text.Collator[] _collators
          The Collator object in effect for each level of xsl:sort
private  java.util.Locale[] _locales
          The Locale for each level of xsl:sort, based on any lang attribute or the default Locale.
private  int[] _sortOrders
          The sort order (ascending or descending) for each level of xsl:sort
private  AbstractTranslet _translet
          A reference to the translet object for the transformation.
private  int[] _types
          The type of comparison (text or number) for each level of xsl:sort
 
Constructor Summary
SortSettings(AbstractTranslet translet, int[] sortOrders, int[] types, java.util.Locale[] locales, java.text.Collator[] collators, java.lang.String[] caseOrders)
          Create an instance of SortSettings.
 
Method Summary
(package private)  java.lang.String[] getCaseOrders()
           
(package private)  java.text.Collator[] getCollators()
           
(package private)  java.util.Locale[] getLocales()
           
(package private)  int[] getSortOrders()
           
(package private)  AbstractTranslet getTranslet()
           
(package private)  int[] getTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_translet

private AbstractTranslet _translet
A reference to the translet object for the transformation.


_sortOrders

private int[] _sortOrders
The sort order (ascending or descending) for each level of xsl:sort


_types

private int[] _types
The type of comparison (text or number) for each level of xsl:sort


_locales

private java.util.Locale[] _locales
The Locale for each level of xsl:sort, based on any lang attribute or the default Locale.


_collators

private java.text.Collator[] _collators
The Collator object in effect for each level of xsl:sort


_caseOrders

private java.lang.String[] _caseOrders
Case ordering for each level of xsl:sort.

Constructor Detail

SortSettings

SortSettings(AbstractTranslet translet,
             int[] sortOrders,
             int[] types,
             java.util.Locale[] locales,
             java.text.Collator[] collators,
             java.lang.String[] caseOrders)
Create an instance of SortSettings.

Parameters:
translet - AbstractTranslet object for the transformation
sortOrders - an array specifying the sort order for each sort level
types - an array specifying the type of comparison for each sort level (text or number)
locales - an array specifying the Locale for each sort level
collators - an array specifying the Collation in effect for each sort level
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 "".
Method Detail

getTranslet

AbstractTranslet getTranslet()
Returns:
A reference to the translet object for the transformation.

getSortOrders

int[] getSortOrders()
Returns:
An array containing the sort order (ascending or descending) for each level of xsl:sort

getTypes

int[] getTypes()
Returns:
An array containing the type of comparison (text or number) to perform for each level of xsl:sort

getLocales

java.util.Locale[] getLocales()
Returns:
An array containing the Locale object in effect for each level of xsl:sort

getCollators

java.text.Collator[] getCollators()
Returns:
An array containing the Collator object in effect for each level of xsl:sort

getCaseOrders

java.lang.String[] getCaseOrders()
Returns:
An array specifying the case ordering for each level of xsl:sort.