com.taleo.integration.client.customstep.util.csv
Class SortCriterion

java.lang.Object
  extended by com.taleo.integration.client.customstep.util.csv.SortCriterion

public class SortCriterion
extends java.lang.Object

Class representing a sort criterion for CSV rows.

Author:
Romain Guay, Taleo Corporation

Constructor Summary
SortCriterion(int column)
          Constructor with column index (0 based).
SortCriterion(int column, boolean ascending)
          Constructor with column index (0 based) and ascending flag.
SortCriterion(int column, boolean ascending, boolean numeric)
          Constructor with column index (0 based), ascending and numeric flags.
SortCriterion(int column, boolean ascending, boolean numeric, boolean ignoreCase)
          Constructor with column index (0 based), ascending, numeric and ignoreCase flags.
 
Method Summary
 int getColumn()
          Column index.
 boolean isAscending()
          Ascending flag.
 boolean isIgnoreCase()
          IgnoreCase flag.
 boolean isNumeric()
          Numeric flag.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortCriterion

public SortCriterion(int column,
                     boolean ascending,
                     boolean numeric,
                     boolean ignoreCase)
Constructor with column index (0 based), ascending, numeric and ignoreCase flags.

Parameters:
column -
ascending -
numeric -
ignoreCase -

SortCriterion

public SortCriterion(int column,
                     boolean ascending,
                     boolean numeric)
Constructor with column index (0 based), ascending and numeric flags. Ignore case is set to true.

Parameters:
column -
ascending -
numeric -

SortCriterion

public SortCriterion(int column,
                     boolean ascending)
Constructor with column index (0 based) and ascending flag. Numeric is set to false.

Parameters:
column -
ascending -

SortCriterion

public SortCriterion(int column)
Constructor with column index (0 based). Ascending is set to true.

Parameters:
column -
Method Detail

getColumn

public int getColumn()
Column index.

Returns:

isAscending

public boolean isAscending()
Ascending flag.

Returns:

isNumeric

public boolean isNumeric()
Numeric flag.

Returns:

isIgnoreCase

public boolean isIgnoreCase()
IgnoreCase flag.

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object