Package com.onwbp.adaptation
Class RequestSortCriteria
- java.lang.Object
-
- com.onwbp.adaptation.RequestSortCriteria
-
public class RequestSortCriteria extends Object
Specifies sort criteria to be associated with a request.
-
-
Constructor Summary
Constructors Constructor Description RequestSortCriteria()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestSortCriteriaadd(Path aPath)Adds the specified node as an ascending sort criterion.RequestSortCriteriaadd(Path aPath, boolean isAscendant)Adds the specified node as an ascending sort criterion or as a descending sort criterion.PathgetPath(int criterionIndex)booleanisAscendant(int criterionIndex)booleanisSortedByRelevancy()booleanisSortOnLabel()voidreset()intsize()StringtoDisplayString()StringtoString()
-
-
-
Method Detail
-
add
public RequestSortCriteria add(Path aPath) throws IllegalArgumentException
Adds the specified node as an ascending sort criterion.- Returns:
- this
RequestSortCriteria - Throws:
IllegalArgumentException- if first step of aPath isPath.PARENTor null.
-
add
public RequestSortCriteria add(Path aPath, boolean isAscendant) throws IllegalArgumentException
Adds the specified node as an ascending sort criterion or as a descending sort criterion.- Returns:
- this
RequestSortCriteria - Throws:
IllegalArgumentException- if first step of aPath isPath.PARENTor null.
-
isSortedByRelevancy
public boolean isSortedByRelevancy()
- Since:
- 6.0.0
- See Also:
Request.isSortedByRelevancy()
-
isSortOnLabel
public boolean isSortOnLabel()
- Since:
- 6.0.0
-
getPath
public Path getPath(int criterionIndex)
-
isAscendant
public boolean isAscendant(int criterionIndex)
-
size
public int size()
-
reset
public void reset()
-
toDisplayString
public String toDisplayString()
-
-