public final class SortParameters extends Object
| Constructor and Description |
|---|
SortParameters(AttributePath sortBy,
String sortOrder)
Create a new instance of sort parameters.
|
SortParameters(String sortBy,
String sortOrder)
Create a new instance of sort parameters.
|
SortParameters(String sortBy,
String sortOrder,
String defaultSchema)
Create a new instance of sort parameters.
|
| Modifier and Type | Method and Description |
|---|---|
AttributePath |
getSortBy()
Retrieve the attribute or sub-attribute whose value is used to order the
returned resources.
|
String |
getSortOrder()
Retrieve order in which the sortBy parameter is applied.
|
boolean |
isAscendingOrder()
Determine whether the sort order implies ascending or descending order.
|
public SortParameters(String sortBy, String sortOrder)
sortBy - The attribute or sub-attribute whose value is used to
order the returned resources.sortOrder - The order in which the sortBy parameter is applied. e.g.
ascending or descending, or null if no sort order
was specified.public SortParameters(String sortBy, String sortOrder, String defaultSchema)
sortBy - The attribute or sub-attribute whose value is used to
order the returned resources.sortOrder - The order in which the sortBy parameter is applied. e.g.
ascending or descending, or null if no sort order
was specified.defaultSchema - The default schema that should be assumed when parsing
attributes without the schema explicitly defined in
the URN.public SortParameters(AttributePath sortBy, String sortOrder)
sortBy - The attribute or sub-attribute whose value is used to
order the returned resources.sortOrder - The order in which the sortBy parameter is applied. e.g.
ascending or descending, or null if no sort order
was specified.public AttributePath getSortBy()
public String getSortOrder()
public boolean isAscendingOrder()
true if the sort order implies ascending order.Copyright © 2011–2016 UnboundID. All rights reserved.