Spring LDAP Framework

org.springframework.ldap.filter
Class BinaryLogicalFilter

java.lang.Object
  extended by org.springframework.ldap.filter.AbstractFilter
      extended by org.springframework.ldap.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 Hellborg Arthursson

Field Summary
protected  List queryList
           
 
Constructor Summary
BinaryLogicalFilter()
           
 
Method Summary
 BinaryLogicalFilter append(Filter query)
          Add a query to this logical operation.
 StringBuffer encode(StringBuffer buff)
          Encodes the filter to a StringBuffer.
 boolean equals(Object obj)
          Compares each filter in turn.
protected abstract  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.filter.AbstractFilter
encode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

queryList

protected List queryList
Constructor Detail

BinaryLogicalFilter

public BinaryLogicalFilter()
Method Detail

encode

public StringBuffer encode(StringBuffer buff)
Description copied from interface: Filter
Encodes the filter to a StringBuffer.

Specified by:
encode in interface Filter
Specified by:
encode in class AbstractFilter
Parameters:
buff - The StringBuffer to encode the filter to
Returns:
The same StringBuffer as was given

getLogicalOperator

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

Returns:
the logical operator.

equals

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

Specified by:
equals in interface Filter
Overrides:
equals in class Object
Returns:
true if the objects are equal.
See Also:
Filter.equals(java.lang.Object)

hashCode

public int hashCode()
Hashes all contained data.

Specified by:
hashCode in interface Filter
Overrides:
hashCode in class Object
Returns:
the hash code according to the contract in Object.hashCode()
See Also:
Filter.hashCode()

append

public final BinaryLogicalFilter append(Filter query)
Add a query to this logical operation.

Parameters:
query - the query to add.
Returns:
This instance.

Spring LDAP Framework

Copyright © 2005-2010 The Spring LDAP Framework. All Rights Reserved.