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

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

public class LesserEqualThanFilter
extends java.lang.Object
implements MatchFilter

An attribute comparison filter that returns true if the value of the attribute is lesser than or equal to that of the filter

Author:
Stefanos Zachariadis

Constructor Summary
LesserEqualThanFilter()
           
 
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

LesserEqualThanFilter

public LesserEqualThanFilter()
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