Class SortKey
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.controls.SortKey
-
public class SortKey extends Object
Datastructure to store the Attribute name, matching rule ID of the attribute
and the sort order.- Author:
- Apache Directory Project
-
-
Field Summary
Fields Modifier and Type Field Description private StringattributeTypeDescThe name/OID of AttributeType we want to use as a key for the sortprivate StringmatchingRuleIdThe matching rule to use to order the resultprivate booleanreverseOrderA flag to set to true to get the result in reverse order.
-
Constructor Summary
Constructors Constructor Description SortKey(String attributeTypeDesc)Create a new instance of a SortKey for a give AttributeTypeSortKey(String attributeTypeDesc, String matchingRuleId)Create a new instance of a SortKey for a give AttributeTypeSortKey(String attributeTypeDesc, String matchingRuleId, boolean reverseOrder)Create a new instance of a SortKey for a give AttributeType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeTypeDesc()StringgetMatchingRuleId()booleanisReverseOrder()voidsetAttributeTypeDesc(String attributeTypeDesc)voidsetMatchingRuleId(String matchingRuleId)voidsetReverseOrder(boolean reverseOrder)StringtoString()
-
-
-
Field Detail
-
attributeTypeDesc
private String attributeTypeDesc
The name/OID of AttributeType we want to use as a key for the sort
-
matchingRuleId
private String matchingRuleId
The matching rule to use to order the result
-
reverseOrder
private boolean reverseOrder
A flag to set to true to get the result in reverse order. Default to false
-
-
Constructor Detail
-
SortKey
public SortKey(String attributeTypeDesc)
Create a new instance of a SortKey for a give AttributeType- Parameters:
attributeTypeDesc- The AttributeType's name or OID to use
-
SortKey
public SortKey(String attributeTypeDesc, String matchingRuleId)
Create a new instance of a SortKey for a give AttributeType- Parameters:
attributeTypeDesc- The AttributeType's name or OID to usematchingRuleId- The MatchingRule to use
-
-
Method Detail
-
getAttributeTypeDesc
public String getAttributeTypeDesc()
- Returns:
- the attributeType name or OID
-
setAttributeTypeDesc
public void setAttributeTypeDesc(String attributeTypeDesc)
- Parameters:
attributeTypeDesc- the attributeType to set
-
getMatchingRuleId
public String getMatchingRuleId()
- Returns:
- the matchingRuleId
-
setMatchingRuleId
public void setMatchingRuleId(String matchingRuleId)
- Parameters:
matchingRuleId- the matchingRuleId to set
-
isReverseOrder
public boolean isReverseOrder()
- Returns:
- the reverseOrder
-
setReverseOrder
public void setReverseOrder(boolean reverseOrder)
- Parameters:
reverseOrder- the reverseOrder to set
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
String.toString()
-
-