public interface Filter<T>
Modifier and Type | Method and Description |
---|---|
boolean |
accept(T candidate)
Method that is invoked to determine if a candidate instance should be accepted or not.
|
void |
initialize(org.apache.maven.plugin.logging.Log log)
Initializes this Filter, and assigns the supplied Log for use by this Filter.
|
boolean |
isInitialized() |
void initialize(org.apache.maven.plugin.logging.Log log)
log
- The non-null Log which should be used by this Filter to emit log messages.boolean isInitialized()
true
if this Filter has been properly initialized (by a call to the initialize
method).boolean accept(T candidate) throws IllegalStateException
Method that is invoked to determine if a candidate instance should be accepted or not.
Implementing classes should be prepared to handle null
candidate objects.
candidate
- The candidate that should be tested for acceptance by this Filter.true
if the candidate is accepted by this Filter and false
otherwise.IllegalStateException
- if this Filter is not initialized by a call to the
initialize method before calling this matchAtLeastOnce method.Copyright © 2005–2017 MojoHaus. All rights reserved.