net.sf.ldaptemplate.support.filter
Class EqualsFilter
java.lang.Object
net.sf.ldaptemplate.support.filter.AbstractFilter
net.sf.ldaptemplate.support.filter.CompareFilter
net.sf.ldaptemplate.support.filter.EqualsFilter
- All Implemented Interfaces:
- Filter
- Direct Known Subclasses:
- LikeFilter, WhitespaceWildcardsFilter
- public class EqualsFilter
- extends CompareFilter
A filter for equals. E.g.
EqualsFilter filter = new EqualsFilter("cn", "Some CN");
System.out.println(filter.ecode());
would resut in: (cn=Some CN)
- Author:
- Adam Skogman
Constructor Summary |
EqualsFilter(java.lang.String attribute,
int value)
Convenience constructor for int values. |
EqualsFilter(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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EqualsFilter
public EqualsFilter(java.lang.String attribute,
java.lang.String value)
EqualsFilter
public EqualsFilter(java.lang.String attribute,
int value)
- Convenience constructor for int values.
- Parameters:
attribute
- value
-
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.