public class SortKey extends Object
SortControl
Constructor and Description |
---|
SortKey(String attrID)
Creates the default sort key for an attribute.
|
SortKey(String attrID,
boolean ascendingOrder,
String matchingRuleID)
Creates a sort key for an attribute.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttributeID()
Retrieves the attribute ID of the sort key.
|
String |
getMatchingRuleID()
Retrieves the matching rule ID used to order the attribute values.
|
boolean |
isAscending()
Determines the sort order.
|
public SortKey(String attrID)
attrID
- The non-null ID of the attribute to be used as a sort
key.public SortKey(String attrID, boolean ascendingOrder, String matchingRuleID)
attrID
- The non-null ID of the attribute to be used as
a sort key.ascendingOrder
- If true then entries are arranged in ascending
order. Otherwise there are arranged in
descending order.matchingRuleID
- The possibly null ID of the matching rule to
use to order the attribute values. If not
specified then the ordering matching rule
defined for the sort key attribute is used.public String getAttributeID()
public boolean isAscending()
public String getMatchingRuleID()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.