|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.tags.EqualsTagFilter
public class EqualsTagFilter
A tag filter that accepts any tag that is equal to a specific target tag (which may be the null tag). The message for the exception thrown when the filter rejects a candidate tag is configurable, and receives as parameters the target and (failed) candidate tag.
| Constructor Summary | |
|---|---|
EqualsTagFilter(Tag target,
I18NMessage2P message)
Creates a new filter with the given target tag and mismatch message. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public Tag getTarget()
public I18NMessage2P getMessage()
public void assertMatch(Tag tag)
throws I18NException
TagFilter
assertMatch in interface TagFilterI18NException - Thrown if the tag is not acceptable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||