public class SuppressElement extends Object implements Filter
AuditEvent
objects based on the criteria of file, check, module id, line, and
column. It rejects an AuditEvent if the following match:
Constructor and Description |
---|
SuppressElement(String files)
Constructs a
SuppressElement for a
file name pattern. |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(AuditEvent event)
Determines whether or not a filtered AuditEvent is accepted.
|
boolean |
equals(Object object) |
int |
hashCode() |
void |
setChecks(String checks)
Set the check class pattern.
|
void |
setColumns(String columns)
Sets the CSV values and ranges for column number filtering.
|
void |
setLines(String lines)
Sets the CSV values and ranges for line number filtering.
|
void |
setModuleId(String moduleId)
Set the module id for filtering.
|
String |
toString() |
public SuppressElement(String files) throws PatternSyntaxException
SuppressElement
for a
file name pattern. Must either call setColumns(String)
or
setModuleId(String)
before using this object.files
- regular expression for names of filtered files.PatternSyntaxException
- if there is an error.public void setChecks(String checks)
checks
- regular expression for filtered check classes.public void setModuleId(String moduleId)
moduleId
- the idpublic void setLines(String lines)
lines
- CSV values and ranges for line number filtering.public void setColumns(String columns)
columns
- CSV values and ranges for column number filtering.public boolean accept(AuditEvent event)
Copyright © 2001–2015. All rights reserved.