public class ExtensionPointFilter extends java.lang.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 java.util.regex.Pattern |
pattern |
Constructor and Description |
---|
ExtensionPointFilter(java.util.regex.Pattern pattern)
Create a new filter based on the given pattern.
|
ExtensionPointFilter(java.lang.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.
|
java.lang.String |
toString() |
private static final org.slf4j.Logger log
private final java.util.regex.Pattern pattern
public ExtensionPointFilter(java.util.regex.Pattern pattern)
pattern
- A pattern, null is not allowedpublic ExtensionPointFilter(java.lang.String pattern)
pattern
- A pattern that will be used in Pattern.compile(String)
, null is not allowed