|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ldap.filter.AbstractFilter org.springframework.ldap.filter.NotPresentFilter
public class NotPresentFilter
A convenience class that combines NOT
behavior with present
behavior to allow the user to check for the non-existence of a attribute. For
an attribute to be NOT present
it must not have any values set. To
filter on attributes at are present
use the PresentFilter
.
NotPresentFilter filter = new NotPresentFilter("foo"); System.out.println(filter.encode());would result in:
(!(foo=*))
Constructor Summary | |
---|---|
NotPresentFilter(String attribute)
Creates a new instance of a not present filter for a particular attribute. |
Method Summary | |
---|---|
StringBuffer |
encode(StringBuffer buff)
Encodes the filter to a StringBuffer. |
boolean |
equals(Object o)
All filters must implement equals. |
int |
hashCode()
All filters must implement hashCode. |
Methods inherited from class org.springframework.ldap.filter.AbstractFilter |
---|
encode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NotPresentFilter(String attribute)
attribute
- the attribute expected to be not-present (ie, unset, or
null).Method Detail |
---|
public StringBuffer encode(StringBuffer buff)
Filter
encode
in interface Filter
encode
in class AbstractFilter
buff
- The StringBuffer to encode the filter to
public boolean equals(Object o)
Filter
equals
in interface Filter
equals
in class Object
true
if the objects are equal.public int hashCode()
Filter
hashCode
in interface Filter
hashCode
in class Object
Object.hashCode()
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |