org.springframework.ldap.filter
Class BinaryLogicalFilter
java.lang.Object
org.springframework.ldap.filter.AbstractFilter
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 Arthursson
Field Summary |
protected java.util.List |
queryList
|
Method Summary |
java.lang.StringBuffer |
encode(java.lang.StringBuffer buff)
Encodes the filter 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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
queryList
protected java.util.List queryList
BinaryLogicalFilter
public BinaryLogicalFilter()
encode
public java.lang.StringBuffer encode(java.lang.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 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.
- Specified by:
equals
in interface Filter
- Overrides:
equals
in class java.lang.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 java.lang.Object
- Returns:
- the hash code according to the contract in
Object.hashCode()
- See Also:
Filter.hashCode()
Copyright (c) 2005-2007. All Rights Reserved.