public class SuppressWithNearbyCommentFilter.Tag extends Object implements Comparable<SuppressWithNearbyCommentFilter.Tag>
Constructor and Description |
---|
SuppressWithNearbyCommentFilter.Tag(String text,
int line)
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.
|
int |
getFirstLine() |
int |
getLastLine() |
String |
getText() |
boolean |
isMatch(AuditEvent event)
Determines whether the source of an audit event
matches the text of this tag.
|
String |
toString() |
public SuppressWithNearbyCommentFilter.Tag(String text, int line) throws org.apache.commons.beanutils.ConversionException
text
- the text of the suppression.line
- the line number.org.apache.commons.beanutils.ConversionException
- if unable to parse expanded text.
on.public int getFirstLine()
public int getLastLine()
public int compareTo(SuppressWithNearbyCommentFilter.Tag other)
compareTo
in interface Comparable<SuppressWithNearbyCommentFilter.Tag>
other
- the tag to compare with this one.Comparable.compareTo(java.lang.Object)
public boolean isMatch(AuditEvent event)
event
- the AuditEvent
to check.Copyright © 2001–2015. All rights reserved.