Package org.apache.ivy.core.event
Class IvyEventFilter
- java.lang.Object
-
- org.apache.ivy.core.event.IvyEventFilter
-
public class IvyEventFilter extends java.lang.Object implements Filter<IvyEvent>
A filter implementation filteringIvyEvent
based upon an event name and a filter expression. The name will be matched against the event name using thePatternMatcher
used to construct this object. The filter expression is a string describing how the event should be filtered according to its attributes values. The matching between the filter values and the event attribute values is done using thePatternMatcher
used to construct this object. Here are some examples:Filtering examples expression effect type=zip accepts event with a type attribute matching zip type=zip,jar accepts event with a type attribute matching zip or jar type=src AND ext=zip accepts event with a type attribute matching src AND an ext attribute matching zip type=src OR ext=zip accepts event with a type attribute matching src OR an ext attribute matching zip NOT type=src accepts event with a type attribute NOT matching src AND OR NOT =
This means thatartifact=foo AND ext=zip OR type=src
will match event with artifact matching foo AND (ext matching zip OR type matching src)- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description IvyEventFilter(java.lang.String event, java.lang.String filterExpression, PatternMatcher matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(IvyEvent e)
-
-
-
Constructor Detail
-
IvyEventFilter
public IvyEventFilter(java.lang.String event, java.lang.String filterExpression, PatternMatcher matcher)
-
-