org.processmining.mining.dmcscanning.logutils.filter
Class EventTypeFilter

java.lang.Object
  extended by org.processmining.mining.dmcscanning.logutils.filter.EventTypeFilter
All Implemented Interfaces:
EventFilter

public class EventTypeFilter
extends java.lang.Object
implements EventFilter

Author:
Christian W. Guenther (christian at deckfour dot org)

Constructor Summary
protected EventTypeFilter()
           
protected EventTypeFilter(java.lang.String anEventType, boolean isRegex, boolean isNegated)
          constructor
 
Method Summary
static EventTypeFilter equal(java.lang.String anEventType)
          static factory method; retrieves a filter matching the complete string
static EventTypeFilter equalRegex(java.lang.String aPattern)
          static factory method; retrieves a filter matching the given regular expression
 boolean matches(AuditTrailEntry entry)
          Determines, whether a given AuditTrailEntry matches this filter's conditions
static EventTypeFilter notEqual(java.lang.String anEventType)
          static factory method; retrieves a filter matching the complete string
static EventTypeFilter notEqualRegex(java.lang.String aPattern)
          static factory method; retrieves a filter matching the given regular expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventTypeFilter

protected EventTypeFilter()

EventTypeFilter

protected EventTypeFilter(java.lang.String anEventType,
                          boolean isRegex,
                          boolean isNegated)
constructor

Parameters:
anEventType - the pattern to match
isRegex - whether the pattern is to be fully matched (false) or in fact a regular expression (true)
Method Detail

equal

public static EventTypeFilter equal(java.lang.String anEventType)
static factory method; retrieves a filter matching the complete string

Parameters:
anEventType -
Returns:

equalRegex

public static EventTypeFilter equalRegex(java.lang.String aPattern)
static factory method; retrieves a filter matching the given regular expression

Parameters:
aPattern -
Returns:

notEqual

public static EventTypeFilter notEqual(java.lang.String anEventType)
static factory method; retrieves a filter matching the complete string

Parameters:
anEventType -
Returns:

notEqualRegex

public static EventTypeFilter notEqualRegex(java.lang.String aPattern)
static factory method; retrieves a filter matching the given regular expression

Parameters:
aPattern -
Returns:

matches

public boolean matches(AuditTrailEntry entry)
Description copied from interface: EventFilter
Determines, whether a given AuditTrailEntry matches this filter's conditions

Specified by:
matches in interface EventFilter
Returns: