public class SortKey extends Object
SortRequestControl
to declare how sorting should occur. See RFC 3698 for the definition of
matchingRuleId.Modifier and Type | Field and Description |
---|---|
private String |
attributeDescription
attribute description.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
private String |
matchingRuleId
matching rule id.
|
private boolean |
reverseOrder
reverse order.
|
Constructor and Description |
---|
SortKey()
Default constructor.
|
SortKey(String attrDescription)
Creates a new sort key.
|
SortKey(String attrDescription,
String ruleId)
Creates a new sort key.
|
SortKey(String attrDescription,
String ruleId,
boolean reverse)
Creates a new sort key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAttributeDescription()
Returns the attribute description.
|
String |
getMatchingRuleId()
Returns the matching rule id.
|
boolean |
getReverseOrder()
Returns whether results should be in reverse sorted order.
|
int |
hashCode() |
void |
setAttributeDescription(String s)
Sets the attribute description.
|
void |
setMatchingRuleId(String s)
Sets the matching rule id.
|
void |
setReverseOrder(boolean b)
Sets whether results should be in reverse sorted order.
|
String |
toString() |
private static final int HASH_CODE_SEED
private String attributeDescription
private String matchingRuleId
private boolean reverseOrder
public SortKey()
public SortKey(String attrDescription)
attrDescription
- attribute descriptionpublic SortKey(String attrDescription, String ruleId)
attrDescription
- attribute descriptionruleId
- matching rule idpublic String getAttributeDescription()
public void setAttributeDescription(String s)
s
- attribute descriptionpublic String getMatchingRuleId()
public void setMatchingRuleId(String s)
s
- matching rule idpublic boolean getReverseOrder()
public void setReverseOrder(boolean b)
b
- whether results should be in reverse sorted orderCopyright © 2003-2019 Virginia Tech. All Rights Reserved.