public class SuppressionXpathSingleFilter extends AutomaticBean implements TreeWalkerFilter
SuppressionXpathSingleFilter suppresses audit events for
Checks violations in the specified file, class, checks, message, module id,
and xpath.
Attention: This filter only supports single suppression, and will need
multiple instances if users wants to suppress multiple violations.AutomaticBean.OutputStreamOptions| Constructor and Description |
|---|
SuppressionXpathSingleFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(TreeWalkerAuditEvent treeWalkerAuditEvent)
Determines whether or not a filtered
TreeWalkerAuditEvent is accepted. |
protected void |
finishLocalSetup()
Provides a hook to finish the part of this component's setup that
was not handled by the bean introspection.
|
void |
setChecks(java.lang.String checks)
Set the regular expression to specify the name of the check to suppress.
|
void |
setFiles(java.lang.String files)
Set the regular expression to specify names of files to suppress.
|
void |
setId(java.lang.String id)
Set the ID of the check to suppress.
|
void |
setMessage(java.lang.String message)
Set the regular expression to specify the message of the check to suppress.
|
void |
setQuery(java.lang.String query)
Set the xpath query.
|
configure, contextualize, getConfiguration, setupChildpublic SuppressionXpathSingleFilter()
public void setFiles(java.lang.String files)
files - the name of the filepublic void setChecks(java.lang.String checks)
checks - the name of the checkpublic void setMessage(java.lang.String message)
message - the message of the checkpublic void setId(java.lang.String id)
id - the ID of the checkpublic void setQuery(java.lang.String query)
query - the xpath queryprotected void finishLocalSetup()
AutomaticBeanThe default implementation does nothing.
finishLocalSetup in class AutomaticBeanpublic boolean accept(TreeWalkerAuditEvent treeWalkerAuditEvent)
TreeWalkerFilterTreeWalkerAuditEvent is accepted.accept in interface TreeWalkerFiltertreeWalkerAuditEvent - the TreeWalkerAuditEvent to filter.Copyright © 2001-2019. All Rights Reserved.