Class SortOrder
- java.lang.Object
-
- org.apache.manifoldcf.crawler.interfaces.SortOrder
-
public class SortOrder extends java.lang.ObjectClass which describes specification of the sort order for a report.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSortOrder.ParseBufferstatic classSortOrder.SortSpec
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidstatic intSORT_ASCENDINGSort ascendingstatic intSORT_DESCENDINGSort descendingprotected java.util.ArrayListsortListThe sort order list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCriteria(java.lang.String columnName, int order)Add a sort criteria, at the front.voidclickColumn(java.lang.String columnName)Click a column.java.lang.StringgetColumn(int i)Return an individual sort column.intgetCount()Get the sort spec count.intgetDirection(int i)Return an individual direction.java.lang.StringtoString()Convert to string form.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
SORT_ASCENDING
public static final int SORT_ASCENDING
Sort ascending- See Also:
- Constant Field Values
-
SORT_DESCENDING
public static final int SORT_DESCENDING
Sort descending- See Also:
- Constant Field Values
-
sortList
protected java.util.ArrayList sortList
The sort order list. This is an array of SortSpec objects
-
-
Constructor Detail
-
SortOrder
public SortOrder()
Constructor.
-
SortOrder
public SortOrder(java.lang.String rep) throws ManifoldCFExceptionConstructor from string representation.- Throws:
ManifoldCFException
-
-
Method Detail
-
toString
public java.lang.String toString()
Convert to string form.- Overrides:
toStringin classjava.lang.Object
-
clickColumn
public void clickColumn(java.lang.String columnName)
Click a column.
-
addCriteria
public void addCriteria(java.lang.String columnName, int order)Add a sort criteria, at the front.
-
getCount
public int getCount()
Get the sort spec count.
-
getColumn
public java.lang.String getColumn(int i)
Return an individual sort column.
-
getDirection
public int getDirection(int i)
Return an individual direction.
-
-