SortKeypublic class SortKey extends Object A sort key and its associated sort parameters.
This class implements a sort key which is used by the LDAPv3
Control for server-side sorting of search results as defined in
RFC 2891. |
Fields Summary |
---|
private String | attrID | private boolean | reverseOrder | private String | matchingRuleID |
Constructors Summary |
---|
public SortKey(String attrID)Creates the default sort key for an attribute. Entries will be sorted
according to the specified attribute in ascending order using the
ordering matching rule defined for use with that attribute.
this.attrID = attrID;
| public SortKey(String attrID, boolean ascendingOrder, String matchingRuleID)Creates a sort key for an attribute. Entries will be sorted according to
the specified attribute in the specified sort order and using the
specified matching rule, if supplied.
this.attrID = attrID;
reverseOrder = (! ascendingOrder);
this.matchingRuleID = matchingRuleID;
|
Methods Summary |
---|
public java.lang.String | getAttributeID()Retrieves the attribute ID of the sort key.
return attrID;
| public java.lang.String | getMatchingRuleID()Retrieves the matching rule ID used to order the attribute values.
return matchingRuleID;
| public boolean | isAscending()Determines the sort order.
return (! reverseOrder);
|
|