public class NotClause extends DocFilter
Constructor and Description |
---|
NotClause(DocFilter filter)
Create the NotClause that returns the opposite of the filter argument.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(DataRecord rec)
Return whether the DataRecord is accepted by this filter.
|
DocFilter |
getNegatedFilter()
Return the filter that is negated by this NotClause.
|
protected boolean |
matchDoc(DocData doc)
Return whether the represented document is accepted by this filter.
|
java.lang.String |
toString()
Return a string representation of this NotClause.
|
accept, filterDocuments, getTag, setTag
filterRecords
public NotClause(DocFilter filter)
filter
- the negated filterpublic boolean accept(DataRecord rec)
accept
in class DataFilter
rec
- the data record to match.public DocFilter getNegatedFilter()
protected boolean matchDoc(DocData doc)
public java.lang.String toString()
toString
in class java.lang.Object