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
-
-
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()
-
-
-
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()
-
-