|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ldaptemplate.support.filter.AbstractFilter net.sf.ldaptemplate.support.filter.CompareFilter
Abstract superclass for filters to compare values, e.g. EqualsFilter.
Constructor Summary | |
CompareFilter(java.lang.String attribute,
int value)
Convenience constructor for int values. |
|
CompareFilter(java.lang.String attribute,
java.lang.String value)
|
Method Summary | |
java.lang.StringBuffer |
encode(java.lang.StringBuffer buff)
Prints the query with LDAP encoding to a stringbuffer |
protected java.lang.String |
encodeValue(java.lang.String value)
Override to perform special encoding in subclass. |
boolean |
equals(java.lang.Object o)
Compares key and value before encoding |
protected abstract java.lang.String |
getCompareString()
Implement this method in subclass to return a String representing the operator, e.g. the Equals sign, "=". |
int |
hashCode()
hash attribute and value |
Methods inherited from class net.sf.ldaptemplate.support.filter.AbstractFilter |
encode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CompareFilter(java.lang.String attribute, java.lang.String value)
public CompareFilter(java.lang.String attribute, int value)
attribute
- value
- Method Detail |
protected java.lang.String encodeValue(java.lang.String value)
value
- the value to encode.
public java.lang.StringBuffer encode(java.lang.StringBuffer buff)
AbstractFilter
encode
in interface Filter
encode
in class AbstractFilter
buff
- The stringbuffer
Filter.encode(java.lang.StringBuffer)
public boolean equals(java.lang.Object o)
Filter.equals(java.lang.Object)
public int hashCode()
Filter.hashCode()
protected abstract java.lang.String getCompareString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |