net.sf.ldaptemplate.support.filter
Class AbstractFilter
java.lang.Object
net.sf.ldaptemplate.support.filter.AbstractFilter
- All Implemented Interfaces:
- Filter
- Direct Known Subclasses:
- BinaryLogicalFilter, CompareFilter, NotFilter
- public abstract class AbstractFilter
- extends java.lang.Object
- implements Filter
Convenience class that implements most of the methods in the Filter
interface.
- Author:
- Adam Skogman
Method Summary |
java.lang.String |
encode()
Encodes the filter to a string using the (@link #encode(StringBuffer)
method. |
abstract java.lang.StringBuffer |
encode(java.lang.StringBuffer buff)
Prints the query with LDAP encoding to a stringbuffer |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractFilter
protected AbstractFilter()
encode
public abstract java.lang.StringBuffer encode(java.lang.StringBuffer buff)
- Prints the query with LDAP encoding to a stringbuffer
- Specified by:
encode
in interface Filter
- Parameters:
buff
- The stringbuffer
- Returns:
- The very same stringbuffer
encode
public java.lang.String encode()
- Encodes the filter to a string using the (@link #encode(StringBuffer)
method.
- Specified by:
encode
in interface Filter
- Returns:
- The encoded filter
toString
public java.lang.String toString()
- See Also:
Object.toString()
Copyright © 2006 Jayway AB. All Rights Reserved.