Class 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 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 use
        matchingRuleId - The MatchingRule to use
      • SortKey

        public SortKey​(String attributeTypeDesc,
                       String matchingRuleId,
                       boolean reverseOrder)
        Create a new instance of a SortKey for a give AttributeType
        Parameters:
        attributeTypeDesc - The AttributeType OID to use
        matchingRuleId - The MatchingRule to use
        reverseOrder - The reverseOrder flag
    • 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