public abstract class AbstractMatcherContainer extends AbstractHeaderMatcher
IHeaderMatcher.Builder
Constructor and Description |
---|
AbstractMatcherContainer(Collection<? extends IHeaderMatcher> enclosed,
String resource)
Constructs the abstract matcher container with a unique random id.
|
AbstractMatcherContainer(String id,
Collection<? extends IHeaderMatcher> enclosed,
String resource)
Constructs the abstract matcher container.
|
Modifier and Type | Method and Description |
---|---|
Collection<IHeaderMatcher> |
getEnclosed()
Retrieves the collection of matchers that comprise the children of this matcher.
|
String |
getResource()
Get the resource that was provided in the constructor.
|
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, matches
public AbstractMatcherContainer(String id, Collection<? extends IHeaderMatcher> enclosed, String resource)
id
is not set then
a unique random identifier is created. The enclosed
collection is
preserved in a new collection that retains the order of of the original
collection.id
- The id for the matcher.enclosed
- the collection of enclosed matchers.resource
- the name of the resource if this container was read from a file or URL.public AbstractMatcherContainer(Collection<? extends IHeaderMatcher> enclosed, String resource)
enclosed
collection is preserved in a new collection that retains the
order of of the original collection.enclosed
- the collection of enclosed matchers.resource
- the name of the resource if this container was read from a file or URL.public void reset()
IHeaderMatcher
public Collection<IHeaderMatcher> getEnclosed()
public String getResource()
null
if none was provided in the constructor.Copyright © 2006–2024 Apache Software Foundation. All rights reserved.