public static class SuppressWithNearbyCommentFilter.Tag extends Object implements Comparable<SuppressWithNearbyCommentFilter.Tag>
| Constructor and Description |
|---|
Tag(String text,
int line,
SuppressWithNearbyCommentFilter filter)
Constructs a tag.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SuppressWithNearbyCommentFilter.Tag other)
Compares the position of this tag in the file
with the position of another tag.
|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isMatch(AuditEvent event)
Determines whether the source of an audit event
matches the text of this tag.
|
String |
toString() |
public Tag(String text, int line, SuppressWithNearbyCommentFilter filter)
text - the text of the suppression.line - the line number.filter - the SuppressWithNearbyCommentFilter with the contextorg.apache.commons.beanutils.ConversionException - if unable to parse expanded text.public int compareTo(SuppressWithNearbyCommentFilter.Tag other)
compareTo in interface Comparable<SuppressWithNearbyCommentFilter.Tag>other - the tag to compare with this one.public boolean isMatch(AuditEvent event)
event - the AuditEvent to check.Copyright © 2001-2016. All Rights Reserved.