Package com.onwbp.adaptation
Class RequestSortCriteria
java.lang.Object
com.onwbp.adaptation.RequestSortCriteria
Specifies sort criteria to be associated with a request.
-
Constructor Summary
-
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) boolean
isAscendant
(int criterionIndex) boolean
boolean
void
reset()
int
size()
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.PARENT
or 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.PARENT
or 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
-