public class XpathFilterElement extends Object implements TreeWalkerFilter
TreeWalkerAuditEvent
objects based on the criteria of file, check, module id, xpathQuery.| Constructor and Description |
|---|
XpathFilterElement(Pattern files,
Pattern checks,
Pattern message,
String moduleId,
String query)
Creates a
XpathElement instance. |
XpathFilterElement(String files,
String checks,
String message,
String moduleId,
String query)
Creates a
XpathElement instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(TreeWalkerAuditEvent event)
Determines whether or not a filtered
TreeWalkerAuditEvent is accepted. |
boolean |
equals(Object other) |
int |
hashCode() |
public XpathFilterElement(String files, String checks, String message, String moduleId, String query)
XpathElement instance.files - regular expression for names of filtered fileschecks - regular expression for filtered check classesmessage - regular expression for messages.moduleId - the module idquery - the xpath querypublic XpathFilterElement(Pattern files, Pattern checks, Pattern message, String moduleId, String query)
XpathElement instance.files - regular expression for names of filtered fileschecks - regular expression for filtered check classesmessage - regular expression for messages.moduleId - the module idquery - the xpath querypublic boolean accept(TreeWalkerAuditEvent event)
TreeWalkerFilterTreeWalkerAuditEvent is accepted.accept in interface TreeWalkerFilterevent - the TreeWalkerAuditEvent to filter.Copyright © 2001–2020. All rights reserved.