1 7 8 package javax.naming.ldap; 9 10 20 public class SortKey { 21 22 25 private String attrID; 26 27 30 private boolean reverseOrder = false; 31 32 35 private String matchingRuleID = null; 36 37 45 public SortKey(String attrID) { 46 this.attrID = attrID; 47 } 48 49 64 public SortKey(String attrID, boolean ascendingOrder, 65 String matchingRuleID) { 66 67 this.attrID = attrID; 68 reverseOrder = (! ascendingOrder); 69 this.matchingRuleID = matchingRuleID; 70 } 71 72 77 public String getAttributeID() { 78 return attrID; 79 } 80 81 86 public boolean isAscending() { 87 return (! reverseOrder); 88 } 89 90 97 public String getMatchingRuleID() { 98 return matchingRuleID; 99 } 100 } 101 | Popular Tags |