private static final class SuppressWithPlainTextCommentFilter.Suppression extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
columnNo
Suppression column number.
|
private java.util.regex.Pattern |
eventIdRegexp
The regexp which is used to match the event ID.
|
private java.util.regex.Pattern |
eventMessageRegexp
The regexp which is used to match the event message.
|
private java.util.regex.Pattern |
eventSourceRegexp
The regexp which is used to match the event source.
|
private int |
lineNo
Suppression line.
|
private SuppressWithPlainTextCommentFilter.SuppressionType |
suppressionType
Suppression type.
|
private java.lang.String |
text
Suppression text.
|
| Constructor and Description |
|---|
Suppression(java.lang.String text,
int lineNo,
int columnNo,
SuppressWithPlainTextCommentFilter.SuppressionType suppressionType,
SuppressWithPlainTextCommentFilter filter)
Creates new suppression instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this one.
|
int |
hashCode() |
private boolean |
isCheckMatch(AuditEvent event)
Checks whether
AuditEvent source name matches the check format. |
private boolean |
isIdMatch(AuditEvent event)
Checks whether the
AuditEvent module ID matches the ID format. |
private boolean |
isInScopeOfSuppression(AuditEvent event)
Checks whether
AuditEvent is in the scope of the suppression. |
private boolean |
isMatch(AuditEvent event)
Checks whether the suppression matches the given
AuditEvent. |
private boolean |
isMessageMatch(AuditEvent event)
Checks whether the
AuditEvent message matches the message format. |
private final java.util.regex.Pattern eventSourceRegexp
private final java.util.regex.Pattern eventMessageRegexp
private final java.util.regex.Pattern eventIdRegexp
private final java.lang.String text
private final int lineNo
private final int columnNo
private final SuppressWithPlainTextCommentFilter.SuppressionType suppressionType
Suppression(java.lang.String text, int lineNo, int columnNo, SuppressWithPlainTextCommentFilter.SuppressionType suppressionType, SuppressWithPlainTextCommentFilter filter)
text - suppression text.lineNo - suppression line number.columnNo - suppression column number.suppressionType - suppression type.filter - the SuppressWithPlainTextCommentFilter with the context.java.lang.IllegalArgumentException - if there is an error in the filter regex syntax.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprivate boolean isMatch(AuditEvent event)
AuditEvent.event - AuditEvent instance.AuditEvent.private boolean isInScopeOfSuppression(AuditEvent event)
AuditEvent is in the scope of the suppression.event - AuditEvent instance.AuditEvent is in the scope of the suppression.private boolean isCheckMatch(AuditEvent event)
AuditEvent source name matches the check format.event - AuditEvent instance.AuditEvent source name matches the check format.private boolean isIdMatch(AuditEvent event)
AuditEvent module ID matches the ID format.event - AuditEvent instance.AuditEvent module ID matches the ID format.private boolean isMessageMatch(AuditEvent event)
AuditEvent message matches the message format.event - AuditEvent instance.AuditEvent message matches the message format.Copyright © 2001-2022. All Rights Reserved.