public class NotMatcher extends AbstractHeaderMatcher
IHeaderMatcher.Builder
Constructor and Description |
---|
NotMatcher(String id,
IHeaderMatcher enclosed)
Create the matcher with the enclosed matcher and id.
|
Modifier and Type | Method and Description |
---|---|
IHeaderMatcher |
getEnclosed() |
boolean |
matches(IHeaders headers)
Attempts to match text in the IHeaders instance.
|
void |
reset()
Resets this state of this matcher to its initial state in preparation for
use with another document scan.
|
getId, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription
public NotMatcher(String id, IHeaderMatcher enclosed)
id
- the id for this matcher. May be nullenclosed
- the enclosed matcherpublic IHeaderMatcher getEnclosed()
public boolean matches(IHeaders headers)
IHeaderMatcher
headers
- the representations of the headers to checktrue
if the matcher matches the text, false
otherwise.public void reset()
IHeaderMatcher
Copyright © 2006–2024 Apache Software Foundation. All rights reserved.