net.sf.ldaptemplate.support.filter
Class NotFilter
java.lang.Object
net.sf.ldaptemplate.support.filter.AbstractFilter
net.sf.ldaptemplate.support.filter.NotFilter
- All Implemented Interfaces:
- Filter
- public class NotFilter
- extends AbstractFilter
Decorator filter for NOT. (!filter )
Filter filter = new NotFilter(new EqualsFilter("cn", "foo");
System.out.println(filter.ecode());
would resut in: (!(cn=foo))
- Author:
- Adam Skogman
Method Summary |
java.lang.StringBuffer |
encode(java.lang.StringBuffer buff)
Prints the query with LDAP encoding to a stringbuffer |
boolean |
equals(java.lang.Object o)
Compares key and value before encoding |
int |
hashCode()
hash attribute and value |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NotFilter
public NotFilter(Filter filter)
encode
public java.lang.StringBuffer encode(java.lang.StringBuffer buff)
- Description copied from class:
AbstractFilter
- Prints the query with LDAP encoding to a stringbuffer
- Specified by:
encode
in interface Filter
- Specified by:
encode
in class AbstractFilter
- Parameters:
buff
- The stringbuffer
- Returns:
- The very same stringbuffer
- See Also:
Filter.encode(java.lang.StringBuffer)
equals
public boolean equals(java.lang.Object o)
- Compares key and value before encoding
- See Also:
Filter.equals(java.lang.Object)
hashCode
public int hashCode()
- hash attribute and value
- See Also:
Filter.hashCode()
Copyright © 2006 Jayway AB. All Rights Reserved.