org.ldaptive.control
Class SortKey

java.lang.Object
  extended by org.ldaptive.control.SortKey

public class SortKey
extends Object

Used by SortRequestControl to declare how sorting should occur. See RFC 3698 for the definition of matchingRuleId.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
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.
 
Method Summary
 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()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortKey

public SortKey()
Default constructor.


SortKey

public SortKey(String attrDescription)
Creates a new sort key.

Parameters:
attrDescription - attribute description

SortKey

public SortKey(String attrDescription,
               String ruleId)
Creates a new sort key.

Parameters:
attrDescription - attribute description
ruleId - matching rule id

SortKey

public SortKey(String attrDescription,
               String ruleId,
               boolean reverse)
Creates a new sort key.

Parameters:
attrDescription - attribute description
ruleId - matching rule id
reverse - reverse order
Method Detail

getAttributeDescription

public String getAttributeDescription()
Returns the attribute description.

Returns:
attribute description

setAttributeDescription

public void setAttributeDescription(String s)
Sets the attribute description.

Parameters:
s - attribute description

getMatchingRuleId

public String getMatchingRuleId()
Returns the matching rule id.

Returns:
matching rule id

setMatchingRuleId

public void setMatchingRuleId(String s)
Sets the matching rule id.

Parameters:
s - matching rule id

getReverseOrder

public boolean getReverseOrder()
Returns whether results should be in reverse sorted order.

Returns:
whether results should be in reverse sorted order

setReverseOrder

public void setReverseOrder(boolean b)
Sets whether results should be in reverse sorted order.

Parameters:
b - whether results should be in reverse sorted order

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.