org.springframework.ldap.support.filter
Class LessThanOrEqualsFilter

java.lang.Object
  extended by org.springframework.ldap.support.filter.AbstractFilter
      extended by org.springframework.ldap.support.filter.CompareFilter
          extended by org.springframework.ldap.support.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)
 

Author:
Mattias Arthursson

Constructor Summary
LessThanOrEqualsFilter(java.lang.String attribute, int value)
           
LessThanOrEqualsFilter(java.lang.String attribute, java.lang.String value)
           
 
Method Summary
protected  java.lang.String getCompareString()
          Implement this method in subclass to return a String representing the operator.
 
Methods inherited from class org.springframework.ldap.support.filter.CompareFilter
encode, encodeValue, equals, hashCode
 
Methods inherited from class org.springframework.ldap.support.filter.AbstractFilter
encode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LessThanOrEqualsFilter

public LessThanOrEqualsFilter(java.lang.String attribute,
                              java.lang.String value)

LessThanOrEqualsFilter

public LessThanOrEqualsFilter(java.lang.String attribute,
                              int value)
Method Detail

getCompareString

protected java.lang.String getCompareString()
Description copied from class: CompareFilter
Implement this method in subclass to return a String representing the operator. The EqualsFilter.getCompareString() would for example return an equals sign, "=".

Specified by:
getCompareString in class CompareFilter
Returns:
the String to use as operator in the comparison for the specific subclass.


Copyright 2002-2006. All Rights Reserved.