Package org.springframework.ldap.filter
Class BinaryLogicalFilter
- java.lang.Object
-
- org.springframework.ldap.filter.AbstractFilter
-
- org.springframework.ldap.filter.BinaryLogicalFilter
-
- All Implemented Interfaces:
Filter
public abstract class BinaryLogicalFilter extends AbstractFilter
Abstract superclass for binary logical operations, that is "AND" and "OR" operations.
-
-
Constructor Summary
Constructors Constructor Description BinaryLogicalFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BinaryLogicalFilterappend(Filter query)Add a query to this logical operation.BinaryLogicalFilterappendAll(java.util.Collection<Filter> subQueries)java.lang.StringBufferencode(java.lang.StringBuffer buff)Encodes the filter to a StringBuffer.booleanequals(java.lang.Object o)All filters must implement equals.protected abstract java.lang.StringgetLogicalOperator()Implement this in subclass to return the logical operator, for example "&".inthashCode()All filters must implement hashCode.-
Methods inherited from class org.springframework.ldap.filter.AbstractFilter
encode, toString
-
-
-
-
Method Detail
-
encode
public java.lang.StringBuffer encode(java.lang.StringBuffer buff)
Description copied from interface:FilterEncodes the filter to a StringBuffer.- 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 "&".- Returns:
- the logical operator.
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:FilterAll filters must implement equals.
-
hashCode
public int hashCode()
Description copied from interface:FilterAll filters must implement hashCode.
-
append
public final BinaryLogicalFilter append(Filter query)
Add a query to this logical operation.- Parameters:
query- the query to add.- Returns:
- This instance.
-
appendAll
public final BinaryLogicalFilter appendAll(java.util.Collection<Filter> subQueries)
-
-