net.sf.ldaptemplate.support.filter
Class GreaterThanOrEqualsFilter

java.lang.Object
  extended bynet.sf.ldaptemplate.support.filter.AbstractFilter
      extended bynet.sf.ldaptemplate.support.filter.CompareFilter
          extended bynet.sf.ldaptemplate.support.filter.GreaterThanOrEqualsFilter
All Implemented Interfaces:
Filter

public class GreaterThanOrEqualsFilter
extends CompareFilter

A filter to compare >=. LDAP RFC does not allow > comparison.

 GreaterThanOrEqualsFilter filter = new GreaterThanOrEqualsFilter("cn",
         "Some CN");
 System.out.println(filter.ecode());
 
would resut in: (cn>=Some CN)

Author:
Mattias Arthursson

Constructor Summary
GreaterThanOrEqualsFilter(java.lang.String attribute, int value)
           
GreaterThanOrEqualsFilter(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, e.g. the Equals sign, "=".
 
Methods inherited from class net.sf.ldaptemplate.support.filter.CompareFilter
encode, encodeValue, equals, hashCode
 
Methods inherited from class net.sf.ldaptemplate.support.filter.AbstractFilter
encode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GreaterThanOrEqualsFilter

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

GreaterThanOrEqualsFilter

public GreaterThanOrEqualsFilter(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, e.g. the Equals sign, "=".

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


Copyright © 2006 Jayway AB. All Rights Reserved.