public class ExtensionPointFilter extends Object implements Filter<Element>
Extensions points will pass the filter if their ID matches the given pattern.
Extensions will pass the filter if the ID of the extension point they are extending matches the given pattern.
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
log |
private Pattern |
pattern |
Constructor and Description |
---|
ExtensionPointFilter(Pattern pattern)
Create a new filter based on the given pattern.
|
ExtensionPointFilter(String pattern)
Create a new filter based on the given pattern.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Element tag)
Evaluate if the given object should pass the filter or not.
|
String |
toString() |
private static final org.slf4j.Logger log
private final Pattern pattern
public ExtensionPointFilter(Pattern pattern)
pattern
- A pattern, null is not allowedpublic ExtensionPointFilter(String pattern)
pattern
- A pattern that will be used in Pattern.compile(String)
, null is not allowed