|
3.0.2: 2012-01-25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.extensions.xml.ExtensionPointFilter
public class ExtensionPointFilter
Filter implementation that can be used to match extension points and extensions based on the ID of the extension point.
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.
Field Summary | |
---|---|
private Pattern |
pattern
|
Constructor Summary | |
---|---|
ExtensionPointFilter(Pattern pattern)
Create a new filter based on the given pattern. |
|
ExtensionPointFilter(String pattern)
Create a new filter based on the given pattern. |
Method Summary | |
---|---|
boolean |
evaluate(Element tag)
Evaluate if the given object should pass the filter or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Pattern pattern
Constructor Detail |
---|
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 allowedMethod Detail |
---|
public boolean evaluate(Element tag)
Filter
evaluate
in interface Filter<Element>
tag
- The object to evaluate
|
3.0.2: 2012-01-25 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |