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
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.dsmlv2.request.ConnectorFilter
filterSet
-
-
Constructor Summary
Constructors Constructor Description NotFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFilter(Filter filter)Subclass the addFilterMethod, as this is specific for a NotFilter (we cannot have more than one elements).FiltergetNotFilter()Get the NotFiltervoidsetNotFilter(Filter notFilter)Set the NotFilterStringtoString()Return a string compliant with RFC 2254 representing a NOT filter-
Methods inherited from class org.apache.directory.api.dsmlv2.request.ConnectorFilter
getFilterSet
-
-
-
-
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:
addFilterin 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:
toStringin classConnectorFilter- Returns:
- The NOT filter string
-
-