Package org.springframework.ldap.filter
Class LessThanOrEqualsFilter
- java.lang.Object
-
- org.springframework.ldap.filter.AbstractFilter
-
- org.springframework.ldap.filter.CompareFilter
-
- org.springframework.ldap.filter.LessThanOrEqualsFilter
-
- All Implemented Interfaces:
Filter
public class LessThanOrEqualsFilter extends CompareFilter
A filter to compare <=. LDAP RFC does not allow < comparison. The following code:LessThanOrEqualsFilter filter = new LessThanOrEqualsFilter("cn", "Some CN"); System.out.println(filter.ecode());would result in:(cn<=Some CN)
-
-
Constructor Summary
Constructors Constructor Description LessThanOrEqualsFilter(java.lang.String attribute, int value)LessThanOrEqualsFilter(java.lang.String attribute, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetCompareString()Implement this method in subclass to return a String representing the operator.-
Methods inherited from class org.springframework.ldap.filter.CompareFilter
encode, encodeValue, equals, hashCode
-
Methods inherited from class org.springframework.ldap.filter.AbstractFilter
encode, toString
-
-
-
-
Method Detail
-
getCompareString
protected java.lang.String getCompareString()
Description copied from class:CompareFilterImplement this method in subclass to return a String representing the operator. TheEqualsFilter.getCompareString()would for example return an equals sign, "=".- Specified by:
getCompareStringin classCompareFilter- Returns:
- the String to use as operator in the comparison for the specific subclass.
-
-