|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.observation.event.filter.RegexEventFilter
public class RegexEventFilter
An EventFilter that selects only events whose affected document name matches a regular expression.
| Constructor Summary | |
|---|---|
RegexEventFilter(String filter)
Constructor initializing this event filter with a regular expression that should be matched. |
|
| Method Summary | |
|---|---|
String |
getFilter()
Provides access to the filter's criterion. |
boolean |
matches(EventFilter eventFilter)
Compares two event filters to see if they match, meaning that the "contexts" of two events are compatible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexEventFilter(String filter)
filter - the regular expression to check against document names| Method Detail |
|---|
public String getFilter()
EventFilter
getFilter in interface EventFilterEventFilter.matches(EventFilter) method to verify if a passed event filter matches
it.EventFilter.matches(EventFilter)public boolean matches(EventFilter eventFilter)
EventFilterFixedNameEventFilter matches another filter only if they both have the same
name set as the filter, while an AlwaysMatchingEventFilter matches any other event filter. A listener
that registered to receive notifications like referenceEvent and with
referenceEventFilter, will be notified of any occuring event for which
referenceEvent.matches(occuringEvent) will return true and
referenceEvent.getEventFilter().matches(occurringEvent.getEventFilter()).
matches in interface EventFiltereventFilter - the event filter to compare to the filter value
true if both event filters match. The matching algorithm is left to the filter event
implementation. For example the Regex event filter will match another filter if
that other filter matches the regex.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||