org.marketcetera.util.ws.tags
Class NonNullTagFilter

java.lang.Object
  extended by org.marketcetera.util.ws.tags.NonNullTagFilter
All Implemented Interfaces:
TagFilter

public class NonNullTagFilter
extends Object
implements TagFilter

A tag filter that accepts any non-null tag.

Since:
1.0.0
Version:
$Id: NonNullTagFilter.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Constructor Summary
NonNullTagFilter(I18NBoundMessage message)
          Creates a new filter with the given mismatch message.
 
Method Summary
 void assertMatch(Tag tag)
          Asserts that the given tag is acceptable to the receiver.
 I18NBoundMessage getMessage()
          Returns the message for the exception thrown when the receiver filter rejects a tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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: TagFilter
Asserts that the given tag is acceptable to the receiver.

Specified by:
assertMatch in interface TagFilter
Throws:
I18NException - Thrown if the tag is not acceptable.


Copyright © 2012. All Rights Reserved.