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

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

public class WfmElementFilter
extends java.lang.Object
implements EventFilter

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

Constructor Summary
protected WfmElementFilter()
           
protected WfmElementFilter(java.lang.String aWfmElement, boolean isRegex, boolean isNegated)
          constructor
 
Method Summary
static WfmElementFilter equal(java.lang.String aWfmElement)
          static factory method; retrieves a filter matching the complete string
static WfmElementFilter 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 WfmElementFilter notEqual(java.lang.String anOriginator)
          static factory method; retrieves a filter matching the complete string
static WfmElementFilter 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

WfmElementFilter

protected WfmElementFilter()

WfmElementFilter

protected WfmElementFilter(java.lang.String aWfmElement,
                           boolean isRegex,
                           boolean isNegated)
constructor

Parameters:
aWfmElement - 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 WfmElementFilter equal(java.lang.String aWfmElement)
static factory method; retrieves a filter matching the complete string

Parameters:
aWfmElement -
Returns:

equalRegex

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

Parameters:
aPattern -
Returns:

notEqual

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

Parameters:
anOriginator -
Returns:

notEqualRegex

public static WfmElementFilter 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: