org.springframework.ldap.support.filter
Class BinaryLogicalFilter

java.lang.Object
  extended byorg.springframework.ldap.support.filter.AbstractFilter
      extended byorg.springframework.ldap.support.filter.BinaryLogicalFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
AndFilter, OrFilter

public abstract class BinaryLogicalFilter
extends AbstractFilter

Abstract superclass for binary logical operations, that is "and" and "or" operations.

Author:
Mattias Arthursson

Field Summary
protected  java.util.List queryList
           
 
Constructor Summary
BinaryLogicalFilter()
           
 
Method Summary
 java.lang.StringBuffer encode(java.lang.StringBuffer buff)
          Prints the query with LDAP encoding to a stringbuffer
 boolean equals(java.lang.Object obj)
          Compares each filter in turn
protected abstract  java.lang.String getLogicalOperator()
          Implement this in subclass to return the logical operator, for example &qout;&&qout;.
 int hashCode()
          Hashes all contained data
 
Methods inherited from class org.springframework.ldap.support.filter.AbstractFilter
encode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

queryList

protected java.util.List queryList
Constructor Detail

BinaryLogicalFilter

public BinaryLogicalFilter()
Method Detail

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)

getLogicalOperator

protected abstract java.lang.String getLogicalOperator()
Implement this in subclass to return the logical operator, for example &qout;&&qout;.

Returns:
the logical operator.

equals

public boolean equals(java.lang.Object obj)
Compares each filter in turn

See Also:
Filter.equals(java.lang.Object)

hashCode

public int hashCode()
Hashes all contained data

See Also:
Filter.hashCode()


Copyright � 2002-2006. All Rights Reserved.