|
spring-ldap-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ldap.filter.AbstractFilter
org.springframework.ldap.filter.CompareFilter
public abstract class CompareFilter
Abstract superclass for filters that compare values.
| Constructor Summary | |
|---|---|
CompareFilter(String attribute,
int value)
Convenience constructor for int values. |
|
CompareFilter(String attribute,
String value)
|
|
| Method Summary | |
|---|---|
StringBuffer |
encode(StringBuffer buff)
Encodes the filter to a StringBuffer. |
protected String |
encodeValue(String value)
Override to perform special encoding in subclass. |
boolean |
equals(Object o)
All filters must implement equals. |
protected abstract String |
getCompareString()
Implement this method in subclass to return a String representing the operator. |
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 CompareFilter(String attribute,
String value)
public CompareFilter(String attribute,
int value)
int values.
attribute - Name of attribute in filter.value - The value of the attribute in the filter.| Method Detail |
|---|
protected String encodeValue(String value)
value - the value to encode.
public StringBuffer encode(StringBuffer buff)
Filter
encode in interface Filterencode in class AbstractFilterbuff - The StringBuffer to encode the filter to
public boolean equals(Object o)
Filter
equals in interface Filterequals in class Objecttrue if the objects are equal.public int hashCode()
Filter
hashCode in interface FilterhashCode in class ObjectObject.hashCode()protected abstract String getCompareString()
EqualsFilter.getCompareString() would for example
return an equals sign, "=".
|
spring-ldap-core | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||