edu.UCL.satin.impl.arch.attribute
Class StringExactMatchFilter

java.lang.Object
  extended byedu.UCL.satin.impl.arch.attribute.StringExactMatchFilter
All Implemented Interfaces:
MatchFilter

public class StringExactMatchFilter
extends java.lang.Object
implements MatchFilter

This filter compares the String value of two attributes and returns true if they are exactly the same.

Author:
Stefanos Zachariadis

Constructor Summary
StringExactMatchFilter()
           
 
Method Summary
 boolean compare(MatchAttribute filter, GenericAttribute attr)
          Compares the value of attr with that of filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringExactMatchFilter

public StringExactMatchFilter()
Method Detail

compare

public boolean compare(MatchAttribute filter,
                       GenericAttribute attr)
Description copied from interface: MatchFilter
Compares the value of attr with that of filter. The implementor may assume that this method will only be called if both attributes have the same key.

Specified by:
compare in interface MatchFilter
Parameters:
filter - The filter attribute to which this MatchFilter is attached
attr - The attribute with which we are comparing.
Returns:
Must return true, if the values of the attributes satisfy the implementors semantics. False otherwise