org.springframework.ldap.support.filter
Interface Filter

All Known Implementing Classes:
AbstractFilter, AndFilter, BinaryLogicalFilter, CompareFilter, EqualsFilter, GreaterThanOrEqualsFilter, LessThanOrEqualsFilter, LikeFilter, NotFilter, OrFilter, WhitespaceWildcardsFilter

public interface Filter

Common interface for filters.

Author:
Adam Skogman

Method Summary
 java.lang.String encode()
          Encodes the filter to a string using the (@link #encode(StringBuffer) method.
 java.lang.StringBuffer encode(java.lang.StringBuffer buff)
          Prints the query with LDAP encoding to a stringbuffer
 boolean equals(java.lang.Object o)
          All filters must implement equals.
 int hashCode()
          All filters must implement hashCode()
 

Method Detail

encode

java.lang.String encode()
Encodes the filter to a string using the (@link #encode(StringBuffer) method.

Returns:
The encoded filter

encode

java.lang.StringBuffer encode(java.lang.StringBuffer buff)
Prints the query with LDAP encoding to a stringbuffer

Parameters:
buff - The stringbuffer
Returns:
The very same stringbuffer

equals

boolean equals(java.lang.Object o)
All filters must implement equals.

Overrides:
equals in class java.lang.Object
Parameters:
o -
Returns:
true if the objects are equal.

hashCode

int hashCode()
All filters must implement hashCode()

Overrides:
hashCode in class java.lang.Object
Returns:
hascode


Copyright 2002-2006. All Rights Reserved.