public class XpathFilter extends Object implements TreeWalkerFilter
TreeWalkerAuditEvent
objects based on the criteria of file, check, module id, xpathQuery.| Constructor and Description |
|---|
XpathFilter(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 XpathFilter(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 boolean accept(TreeWalkerAuditEvent event)
TreeWalkerFilterTreeWalkerAuditEvent is accepted.accept in interface TreeWalkerFilterevent - the TreeWalkerAuditEvent to filter.Copyright © 2001–2018. All rights reserved.