Package com.onwbp.adaptation
Class RequestSortCriteria
java.lang.Object
com.onwbp.adaptation.RequestSortCriteria
Specifies sort criteria to be associated with a request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the specified node as an ascending sort criterion.Adds the specified node as an ascending sort criterion or as a descending sort criterion.getPath(int criterionIndex) booleanisAscendant(int criterionIndex) booleanbooleanvoidreset()intsize()toString()
-
Constructor Details
-
RequestSortCriteria
public RequestSortCriteria()
-
-
Method Details
-
add
Adds the specified node as an ascending sort criterion.- Returns:
- this
RequestSortCriteria - Throws:
IllegalArgumentException- if first step of aPath isPath.PARENTor null.
-
add
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:
-
isSortOnLabel
public boolean isSortOnLabel()- Since:
- 6.0.0
-
getPath
-
isAscendant
public boolean isAscendant(int criterionIndex) -
size
public int size() -
reset
public void reset() -
toString
-
toDisplayString
-