public class EqualsTagFilter extends Object implements TagFilter
| Constructor and Description |
|---|
EqualsTagFilter(Tag target,
I18NMessage2P message)
Creates a new filter with the given target tag and mismatch
message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertMatch(Tag tag)
Asserts that the given tag is acceptable to the receiver.
|
I18NMessage2P |
getMessage()
Returns the message for the exception thrown when the receiver
filter rejects a tag.
|
Tag |
getTarget()
Returns the receiver's target tag.
|
public EqualsTagFilter(Tag target, I18NMessage2P message)
target - The target tag. It may be null.message - The message for the exception thrown when the
filter rejects a tag.public Tag getTarget()
public I18NMessage2P getMessage()
public void assertMatch(Tag tag) throws I18NException
TagFilterassertMatch in interface TagFilterI18NException - Thrown if the tag is not acceptable.Copyright © 2015. All Rights Reserved.