com.ibm.websphere.objectgrid.continuousquery.filter
Class NotMatchFilter
java.lang.Object
com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter<KeyType,ValueType,AttributeType,MatchType>
com.ibm.websphere.objectgrid.continuousquery.filter.CompareFilter<Object,Object,Object,String>
com.ibm.websphere.objectgrid.continuousquery.filter.NotMatchFilter
- All Implemented Interfaces:
- ContinuousQueryFilter<Object,Object,Object,String>, Serializable
public class NotMatchFilter
- extends CompareFilter<Object,Object,Object,String>
This filter passes if the attribute does not match a provided regular expression pattern.
- Since:
- 8.6
- See Also:
- Serialized Form
Constructor Summary |
NotMatchFilter()
Constructor for serialization only. |
NotMatchFilter(String attributePath,
String pattern)
Constructs a filter which passes if the attribute does not match the pattern provided |
NotMatchFilter
public NotMatchFilter()
- Constructor for serialization only.
NotMatchFilter
public NotMatchFilter(String attributePath,
String pattern)
- Constructs a filter which passes if the attribute does not match the pattern provided
- See Also:
MatchFilter.MatchFilter(String, String)
filter
public boolean filter(FilterContent content)
throws ContinuousQueryException
- Description copied from interface:
ContinuousQueryFilter
- Checks if the supplied object passes the filter.
- Parameters:
content
- A representation of the cache entry to be checked
- Returns:
- true if the object matches the filtering criteria, false otherwise
- Throws:
ContinuousQueryException
- See Also:
ContinuousQueryFilter.filter(FilterContent)
createString
public String createString()
- Description copied from class:
AbstractCQFilter
- Creates a string representation of the continuous query filter, this method is
used by AbstractCQFilter.toString().
The string will be used for identifying and comparing filters,
i.e. it will be used in AbstractCQFilter.hashCode() and AbstractCQFilter.equals(Object),
so the returned value must be in unique format among all filters
in the system.
- Specified by:
createString
in class AbstractCQFilter<Object,Object,Object,String>
- Returns:
- " notMatches
© Copyright International Business Machines Corp 2005,2012. All rights reserved.