Class NotFilter
- java.lang.Object
-
- org.apache.directory.api.dsmlv2.request.Filter
-
- org.apache.directory.api.dsmlv2.request.ConnectorFilter
-
- org.apache.directory.api.dsmlv2.request.NotFilter
-
public class NotFilter extends ConnectorFilter
Not Filter Object to store the Not filter.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description NotFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFilter(Filter filter)
Subclass the addFilterMethod, as this is specific for a NotFilter (we cannot have more than one elements).Filter
getNotFilter()
Get the NotFiltervoid
setNotFilter(Filter notFilter)
Set the NotFilterString
toString()
Return a string compliant with RFC 2254 representing a NOT filter-
Methods inherited from class org.apache.directory.api.dsmlv2.request.ConnectorFilter
getFilterSet
-
-
-
-
Constructor Detail
-
NotFilter
public NotFilter()
-
-
Method Detail
-
addFilter
public void addFilter(Filter filter) throws DecoderException
Subclass the addFilterMethod, as this is specific for a NotFilter (we cannot have more than one elements).- Overrides:
addFilter
in classConnectorFilter
- Parameters:
filter
- The Filter to add- Throws:
DecoderException
- If the added filter is invalid
-
getNotFilter
public Filter getNotFilter()
Get the NotFilter- Returns:
- Returns the notFilter.
-
setNotFilter
public void setNotFilter(Filter notFilter) throws DecoderException
Set the NotFilter- Parameters:
notFilter
- The notFilter to set.- Throws:
DecoderException
- If the filter is invalid
-
toString
public String toString()
Return a string compliant with RFC 2254 representing a NOT filter- Overrides:
toString
in classConnectorFilter
- Returns:
- The NOT filter string
-
-