Package org.marketcetera.util.ws.tags
Class NonNullTagFilter
- java.lang.Object
-
- org.marketcetera.util.ws.tags.NonNullTagFilter
-
-
Field Summary
Fields Modifier and Type Field Description private I18NBoundMessagemMessage
-
Constructor Summary
Constructors Constructor Description NonNullTagFilter(I18NBoundMessage message)Creates a new filter with the given mismatch message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertMatch(Tag tag)Asserts that the given tag is acceptable to the receiver.I18NBoundMessagegetMessage()Returns the message for the exception thrown when the receiver filter rejects a tag.
-
-
-
Field Detail
-
mMessage
private final I18NBoundMessage mMessage
-
-
Constructor Detail
-
NonNullTagFilter
public NonNullTagFilter(I18NBoundMessage message)
Creates a new filter with the given mismatch message.- Parameters:
message- The message for the exception thrown when the filter rejects a tag.
-
-
Method Detail
-
getMessage
public I18NBoundMessage getMessage()
Returns the message for the exception thrown when the receiver filter rejects a tag.- Returns:
- The message.
-
assertMatch
public void assertMatch(Tag tag) throws I18NException
Description copied from interface:TagFilterAsserts that the given tag is acceptable to the receiver.- Specified by:
assertMatchin interfaceTagFilter- Throws:
I18NException- Thrown if the tag is not acceptable.
-
-