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 aFiles)
Constructs a
SuppressElement for a
file name pattern. |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(AuditEvent aEvent)
Determines whether or not a filtered AuditEvent is accepted.
|
boolean |
equals(Object aObject) |
int |
hashCode() |
void |
setChecks(String aChecks)
Set the check class pattern.
|
void |
setColumns(String aColumns)
Sets the CSV values and ranges for column number filtering.
|
void |
setLines(String aLines)
Sets the CSV values and ranges for line number filtering.
|
void |
setModuleId(String aModuleId)
Set the module id for filtering.
|
String |
toString() |
public SuppressElement(String aFiles) throws PatternSyntaxException
SuppressElement
for a
file name pattern. Must either call setColumns(String)
or
setModuleId(String)
before using this object.aFiles
- regular expression for names of filtered files.PatternSyntaxException
- if there is an error.public void setChecks(String aChecks)
aChecks
- regular expression for filtered check classes.public void setModuleId(String aModuleId)
aModuleId
- the idpublic void setLines(String aLines)
aLines
- CSV values and ranges for line number filtering.public void setColumns(String aColumns)
aColumns
- CSV values and ranges for column number filtering.public boolean accept(AuditEvent aEvent)
Copyright © 2001-2013. All Rights Reserved.